This instrumentation creates spans for Statements and PreparedStatements. It also captures the corresponding SQL and additional connection info. ResultSet could be considered for future instrumentation to capture even more of the DB interaction time. This integration uses Bytebuddy instead of Byteman as the many methods to instrument would have been messy in Byteman. |
||
---|---|---|
.. | ||
async-tracing | ||
dropwizard-mongo-client | ||
rest-spark | ||
spring-boot-jdbc | ||
README.md |
README.md
Datadog Java Tracer examples
The goal of this repository is to offer you some examples about how to instrument your code using the OpenTracing API and the DD Tracer.
Here are the examples
- Dropwizard (Jax-Rs) + Mongo database + HTTP Client
- Spring-boot + MySQL JDBC database
- Instrumenting using a Java Agent
Prerequisites
In order to run the demos, you have to do something before:
- Get the latest lib of the DD-Tracer and push it to the lib directory
- Make sure you have a running Datadog Agent on the local port 8126 (default one)
- In the Datadog agent configuration, set APM to true (and restart it)
- Maven