How to use tracing
This guide explains how to activate traces and export them to the OTEL collector
Aidbox supports exporting traces using the Protobuf protocol in line with the OTEL specification. This guide configures Aidbox to export traces to the OpenTelemetry collector, but the setup can also be modified to export to other traces consumers that adhere to this specification.
This way of enabling OTEL capabilities is available in Aidbox versions 2503 and later. On previous AIdbox versions it was possible to enable OTEL with Aidbox configuration project.
Prerequisites
OTEL collector should be deployed and configured to receive traces.
How to enable traces export to the OTEL collector
To enable exporting traces to the OTEL collector set the OTEL collector traces receiver endpoint to the Aidbox setting observability.otel.traces-url
How to check the OTEL collector receives traces
Set up debug
exporter and traces
pipeline in the OTEL collector configuration:
debug
exporter and traces
pipeline in the OTEL collector configuration:See Aidbox traces in the OTEL collector stdout
Open OTEL collector stdout and see the traces.
Check traces sending status
The common endpoint for checking the status of sending metrics process
Force flush OTEL traces
To force flush all the traces Aidbox has in the queue use $flush
endpoint:
Check all available Aidbox OTEL traces exporter configuration options are here:
Last updated
Was this helpful?