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.
- Download the OpenTelemetry JavaAgent jar file and place it into the
/path/to/accumulo/lib/
directory. - Add the property
general.opentelemetry.enabled=true
to 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"
- Start Accumulo
- Run the Tracing Example:
$ ./bin/runex client.TracingExample --createtable --deletetable --create --read --table traceTest