This project gives a way to use the datadog-apm tracing in clojure.
Add [datadog-apm-clj-wrapper "0.1.1"]
to your project.clj.
Make sure to add -javaagent:/path/to/dd-java-agent.jar
to your java -jar process,
or use it as :jvm-opts
to run locally
Datadog agent needs to be installed and configured with proper api key and apm enabled on the machine. For reference, follow https://docs.datadoghq.com/tracing/setup/java/
Set the service-name using environment variable SERVICE_NAME
To use it, all we have to do is call
(datadog-apm-clj-wrapper.core/instrument operation-name operation-as-a-fn)
(datadog-apm-clj-wrapper.core/instrument "sum-two-numbers" #(+ 4 1))
Can you improve this documentation? These fine people already did:
MShobana, Shobana M & smrinalEdit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close