Docs
Launch GraphOS Studio

Zipkin exporter

Configure the Zipkin exporter for tracing


Enable and configure the

exporter for tracing in the .

For general tracing configuration, refer to

.

Zipkin configuration

The Apollo Router can be configured to export tracing data for Zipkin to either the default collector address or a URL:

router.yaml
telemetry:
exporters:
tracing:
zipkin:
enabled: true
# Optional endpoint, either 'default' or a URL (Defaults to http://127.0.0.1:9411/api/v2/span)
endpoint: "http://${env.ZIPKIN_HOST}:9411/api/v2/spans}"

enabled

Flag to enable the Zipkin exporter.

Set to true to enable the Zipkin exporter. Defaults to false.

endpoint

The Zipkin endpoint address. Defaults to

batch_processor

All exporters support configuration of a batch span processor with batch_processor.

You must tune your batch_processor configuration if you see any of the following messages in your logs:

  • OpenTelemetry trace error occurred: cannot send span to the batch span processor because the channel is full

  • OpenTelemetry metrics error occurred: cannot send span to the batch span processor because the channel is full

The exact settings depend on the bandwidth available for you to send data to your application peformance monitor (APM) and the bandwidth configuration of your APM. Expect to tune these settings over time as your application changes.

An example configuration using Zipkin with batch_processor:

telemetry:
exporters:
tracing:
zipkin:
batch_processor:
max_export_batch_size: 512
max_concurrent_exports: 1
max_export_timeout: 30s
max_queue_size: 2048
scheduled_delay: 5s

batch_processor configuration reference

AttributeDefaultDescription
scheduled_delay5sThe delay in seconds from receiving the first span to sending the batch.
max_concurrent_exports1The maximum number of overlapping export requests.
max_export_batch_size512The number of spans to include in a batch. May be limited by maximum message size limits.
max_export_timeout30sThe timeout in seconds for sending spans before dropping the data.
max_queue_size5The maximum number of spans to be buffered before dropping span data.

Zipkin configuration reference

AttributeDefaultDescription
enabledfalseEnable the Zipkin exporter.
endpointhttp://127.0.0.1:9411/api/v2/spanThe endpoint to send spans to.
batch_processorThe batch processor settings.
Previous
OTLP
Next
Spans
Edit on GitHubEditForumsDiscord

© 2024 Apollo Graph Inc.

Privacy Policy

Company