You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ These three things help you instrument Java applications:
17
17
18
18
**Note:** dd-java-agent is considered experimental. Some integrations may not activate in all cases. Additional manual instrumentation using the [Opentracing API](https://github.com/opentracing/opentracing-java) is strongly encouraged.
19
19
20
-
**[Datadog Tracer](https://github.com/DataDog/dd-trace-java/tree/master/dd-trace)**: an OpenTracing-compatible library that lets you trace any piece of your Java code, not just whole methods.
20
+
**[Datadog Tracer](https://github.com/DataDog/dd-trace-java/tree/master/dd-trace-ot)**: an OpenTracing-compatible library that lets you trace any piece of your Java code, not just whole methods.
21
21
22
22
**[Datadog APM Agent](https://github.com/DataDog/datadog-trace-agent)**: a (non-Java) service that runs on your application servers, accepting trace data from the Datadog Java Agent and/or Datadog Tracer and sending it to Datadog. (The APM Agent is not part of this repo; it's the same Agent to which all Datadog tracers—Go, Python, etc—send data)
23
23
@@ -91,20 +91,20 @@ The Java Agent lets you add a `@Trace` annotation to any method to measure its e
91
91
92
92
#### Setup
93
93
94
-
Add the `dd-trace-annotations` dependency to your project. For Maven, add this to pom.xml:
94
+
Add the `dd-trace-api` dependency to your project. For Maven, add this to pom.xml:
The Java Agent lets you use `@Trace` not just for `com.example.myproject`, but also for any application whose name _begins_ like that, e.g. `com.example.myproject.foobar`. If you're tempted to list something like `["com", "io"]` to avoid having to fuss with this configuration as you add new projects, be careful; providing `@Trace`-ability to too many applications could hurt your package's build time.
@@ -133,7 +133,7 @@ When you don't pass an `operationName`, the Java Agent sets it to the method nam
133
133
134
134
### Manual Instrumentation
135
135
136
-
You can use the Datadog Tracer (`dd-trace`) library to measure execution times for specific pieces of code. This lets you trace your application more precisely than you can with the Java Agent alone.
136
+
You can use the Datadog Tracer (`dd-trace-ot`) library to measure execution times for specific pieces of code. This lets you trace your application more precisely than you can with the Java Agent alone.
137
137
138
138
#### Setup
139
139
@@ -157,7 +157,7 @@ For Maven, add this to pom.xml:
157
157
<!-- Datadog Tracer (only needed if you do not use dd-java-agent) -->
Configure your application using environment variables or system properties as discussed in the [config](#configuration) section.
174
174
175
175
#### Examples
176
176
177
-
Rather than referencing classes directly from `dd-trace` (other than registering `DDTracer`), we strongly suggest using the [OpenTracing API](https://github.com/opentracing/opentracing-java).
177
+
Rather than referencing classes directly from `dd-trace-ot` (other than registering `DDTracer`), we strongly suggest using the [OpenTracing API](https://github.com/opentracing/opentracing-java).
178
178
[Additional documentation on the api](docs/opentracing-api.md) is also available.
- Browse the [example applications](dd-trace-examples) in this repository to see Java tracing in action
245
+
- Browse the [example applications](examples) in this repository to see Java tracing in action
246
246
- Read [OpenTracing's documentation](https://github.com/opentracing/opentracing-java); feel free to use the Trace Java API to customize your instrumentation.
247
247
- Brush up on [Datadog APM Terminology](https://docs.datadoghq.com/tracing/terminology/)
248
248
- Read the [Datadog APM FAQ](https://docs.datadoghq.com/tracing/faq/)
Copy file name to clipboardExpand all lines: dd-java-agent-ittests/src/test/groovy/datadog/trace/agent/integration/httpclient/ApacheHttpClientTest.groovy
0 commit comments