{"repo":"StudistCorporation/sleepydog","free":true,"listed":false,"github":"https://github.com/StudistCorporation/sleepydog","clone":"git clone https://github.com/StudistCorporation/sleepydog.git","description":"Clojure library for tracing (possibly async) applications with Datadog.","language":"Clojure","stars":13,"topics":["async","clj","clojure","datadog","distributed-tracing","instrumentation","o11y","observability","tracing","terraform-managed"],"license":"MIT","category":"analytics","readme_excerpt":"Sleepy Dog Clojure library for tracing (possibly async) applications with Datadog. Installation Available on Clojars. Usage The public API is in the sleepy.dog namespace. defn-traced A drop-in replacement for Clojure's defn that instruments the function in question as a new Datadog span. wrap-ring-trace A ring middleware that automatically instruments server requests. with-tracing \"op-name\" A macro that instruments the given body as a span labelled as operation \"op-name\". set-resource! Sets the resource (subject) of the current span's operation. http-headers Utility function that builds Datadog headers for distributed tracing. By adding these headers to any outgoing (upstream) request, it's possible to connect traces across services. tag-span! Adds a custom tag to a span. Accepts String, Boolean, Number, or nil values. report-error! 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 and 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. Tracing Carmine You can enable tracing for the Carmine Redis library by using sleepy.dog.carmine/trace-carmine! . The traces will be reported mimicking the way how Datadog auto-instruments Jedis or the Ruby redis gem.","default_branch":null,"files":null,"tree":[],"storefront":"/r/StudistCorporation","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/StudistCorporation/sleepydog/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}