Apache Accumulo Tracing Example
April 8, 2022 ยท View on GitHub
This tutorial uses the TracingExample.java Java class to create an OpenTelemetry span in the TracingExample application and then create and read entries from Accumulo. Tracing output should show up in logs for the TracingExample class and the Accumulo client, and logs for the Accumulo server processes.
Setup
- Download the OpenTelemetry JavaAgent jar file and place it into the
/path/to/accumulo/lib/directory. - Add the property
general.opentelemetry.enabled=trueto accumulo.properties - Set the following environment variables in your environment:
JAVA_TOOL_OPTIONS="-javaagent:/path/to/accumulo/lib/opentelemetry-javaagent-1.12.1.jar"
OTEL_TRACES_EXPORTER="logging"
Run the Example
- Start Accumulo
- Run the Tracing Example:
$ ./bin/runex client.TracingExample --createtable --deletetable --create --read --table traceTest