-
Notifications
You must be signed in to change notification settings - Fork 115
Update tracing blog post #453
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
7a07134
4b88f58
e4ec9cd
41f90f9
5be20d6
cefa67e
71b7506
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -118,6 +118,8 @@ general.opentelemetry.enabled=true | |
| general.opentelemetry.enabled=true | ||
| ``` | ||
|
|
||
| **Note:** These instructions are for configuring OpenTelemetry and Jaeger with Accumulo 2.1.0. As of Accumulo 2.1.4, the version of OpenTelemetry has been updated and the instructions have changed. See the [Note for Recent Accumulo Versions](#note-for-recent-accumulo-versions-april-2025) section at the end of this post for current configuration information. | ||
|
|
||
| 5. Configure the OpenTelemetry JavaAgent in accumulo-env.sh by uncommenting the following and updating the path to the java agent jar: | ||
| ``` | ||
| ## Optionally setup OpenTelemetry SDK AutoConfigure | ||
|
|
@@ -149,3 +151,27 @@ docker run -d --rm --name jaeger \ | |
| 8. View traces in Jaeger UI at http://localhost:16686. You can select the service name on the left panel and click `Find Traces` to view the trace information. If everything is working correctly, then you should see something like the image below. | ||
|
|
||
|  | ||
|
|
||
| ## Note for Recent Accumulo Versions (April 2025) | ||
|
|
||
| **Note:** This section replaces steps 5 and 6 in the [Tracing Example](#tracing-example) above. Follow steps 1-4 from the original instructions, then use the updated configuration below instead of steps 5-6, and continue with steps 7-8 to view traces in Jaeger. | ||
|
||
|
|
||
| We've found that the original Jaeger exporter configuration no longer works well with newer versions of OpenTelemetry and Jaeger. Instead, use the OTLP exporter which has become the standard protocol for trace data: | ||
|
|
||
| 1. Update your configuration to use OTLP instead of Jaeger: | ||
| ```bash | ||
| JAVA_OPTS=('-Dotel.traces.exporter=otlp' '-Dotel.exporter.otlp.endpoint=http://localhost:4317' '-Dotel.metrics.exporter=none' '-Dotel.logs.exporter=none' "${JAVA_OPTS[@]}") | ||
| ``` | ||
| 2. Run Jaeger with OTLP support: | ||
| ```bash | ||
| docker run --rm --name jaeger \ | ||
| -p 16686:16686 \ | ||
| -p 4317:4317 \ | ||
| -p 4318:4318 \ | ||
| -p 5778:5778 \ | ||
| -p 9411:9411 \ | ||
| jaegertracing/jaeger:2.3.0 | ||
| ``` | ||
|
|
||
| This reflects how the OpenTelemetry ecosystem has converged on OTLP as the standard protocol for transmitting trace data. | ||
| These updated instructions have been tested against Accumulo 2.1.4 and 4.0 versions. | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The blog post was for the 2.1.0 release. It looks like the addition here updates / replaces items 5 and 6 above. I'm thinking that we should put a note in items 5 and 6 that says something like:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea. Added in 4b88f58.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.