mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-11 05:39:10 +00:00
4914b6c26c
Signed-off-by: Aviv Guiser <avivguiser@gmail.com> Co-authored-by: Sebastian Poxhofer <secustor@users.noreply.github.com>
46 lines
2 KiB
Markdown
46 lines
2 KiB
Markdown
---
|
|
title: OpenTelemetry
|
|
description: How to use OpenTelemetry with Renovate
|
|
---
|
|
|
|
# OpenTelemetry and Renovate
|
|
|
|
<!-- prettier-ignore -->
|
|
!!! warning "This feature is flagged as experimental"
|
|
Experimental features might be changed or even removed at any time.
|
|
|
|
Renovate partially supports OpenTelemetry, the emerging monitoring standard.
|
|
|
|
OpenTelemetry has three types of observability data:
|
|
|
|
- traces
|
|
- metrics
|
|
- logs
|
|
|
|
## Limitations
|
|
|
|
While OTLP support traces, metrics, and logs, Renovate only supports traces.
|
|
This means Renovate does not support other observability data like: stats on caching, error events, number of found updates, and so on.
|
|
|
|
Renovate uses [`@opentelemetry/exporter-trace-otlp-http`](https://www.npmjs.com/package/@opentelemetry/exporter-trace-otlp-http) under the hood.
|
|
This means that Renovate sends traces via [OTLP/HTTP](https://opentelemetry.io/docs/reference/specification/protocol/otlp/#otlphttp) in JSON-encoded protobuf format only.
|
|
|
|
## Usage
|
|
|
|
To activate the instrumentation, you must set the `OTEL_EXPORTER_OTLP_ENDPOINT` environment variable.
|
|
This variable controls the endpoint for the telemetry data.
|
|
Once this endpoint is set, you can use all environment variables listed in the [OpenTelemetry specification](https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/configuration/sdk-environment-variables.md).
|
|
You can also set the following environment variables:
|
|
|
|
- `OTEL_SERVICE_NAME`: to control the service name that will be emitted in traces, defaults to `renovate`
|
|
- `OTEL_SERVICE_NAMESPACE`: to control the service namespace that will be emitted in traces, defaults to `renovatebot.com`
|
|
- `OTEL_SERVICE_VERSION`: to control the service version that will be emitted in traces, defaults to using the release version of Renovate
|
|
|
|
## Debugging
|
|
|
|
To help you debug, you can print the telemetry to the console.
|
|
Use the environment variable `RENOVATE_TRACING_CONSOLE_EXPORTER`.
|
|
|
|
## Examples
|
|
|
|
An example with a local OpenTelemetry setup can be found on the [OpenTelemetry examples](examples/opentelemetry.md) page.
|