Skip to content

Commit

Permalink
Tracing docs (#371)
Browse files Browse the repository at this point in the history
  • Loading branch information
KirillPamPam authored Dec 22, 2023
1 parent 364bbbe commit e79df25
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/06-monitoring.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -177,3 +177,15 @@ ETHEREUM AVAILABLE
local-eth-1 OK with lag=0
local-eth-2 OK with lag=0
----

== Tracing

Dshackle provides an option to send spans to the DRPC tracing system to see the detailed path of a request and investigate some problems.

By default, this feature is turned off. To turn it on set the env variable `ENABLE_COLLECT_SPANS` to `true`.

Dshackle sends spans for a request:

- which has completed with an error

- which has at least one long span. Threshold to assume that a span is long is 1000 milliseconds by default, and you can control this value by passing the env variable `LONG_SPAN_THRESHOLD` in milliseconds. If you pass 0 it means that spans for all requests will be sent to the tracing system.

0 comments on commit e79df25

Please sign in to comment.