Skip to content

Commit

Permalink
Add root span explanation
Browse files Browse the repository at this point in the history
  • Loading branch information
valerauko committed Nov 20, 2023
1 parent 4113def commit 2d872bf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ Utility function that builds Datadog headers for distributed tracing. By adding

Used to manually report caught exceptions (without relying on the automatic reporting from `with-tracing` or `defn-traced`). This can be useful for example in a Ring handler that catches all escaped exceptions are responds with a well-formed 500 error.

If you want to mark an entire request as "errored", then combine this with `root-of` to mark the root span as error.

```clj
(defn wrap-exception
[handler]
Expand Down

0 comments on commit 2d872bf

Please sign in to comment.