Switch it on
Install the opentelemetry plugin from the update centre, add this block to the
jenkins.yaml the controller boots from, and restart the controller. Every build becomes a
trace, with a span per stage and one for the time it waited for an executor.
unclassified:
openTelemetry:
endpoint: https://ingestion.eu.bronto.io
authentication:
otlpHeaderAuthentication:
headerName: x-bronto-api-key
headerValueId: bronto-api-key
configurationProperties: |
otel.exporter.otlp.protocol=http/protobuf
serviceName: ci-controller
credentials:
system:
domainCredentials:
- credentials:
- string:
id: bronto-api-key
secret: ${BRONTO_API_KEY}
unclassified:
openTelemetry:
endpoint: http://localhost:4318
configurationProperties: |
otel.exporter.otlp.protocol=http/protobuf
serviceName: ci-controller
This assumes a Collector listening on localhost:4318; the
Local Collector setup shows how to start one.
This uses the endpoint and auth header you saved in the setup guide.
unclassified:
openTelemetry:
endpoint: YOUR_OTLP_ENDPOINT
authentication:
otlpHeaderAuthentication:
headerName: YOUR_AUTH_HEADER
headerValueId: otlp-auth
configurationProperties: |
otel.exporter.otlp.protocol=http/protobuf
serviceName: ci-controller
credentials:
system:
domainCredentials:
- credentials:
- string:
id: otlp-auth
secret: YOUR_AUTH_VALUE