From e971e29571d8b6f4b7e7da1915bf99586a7611ed Mon Sep 17 00:00:00 2001 From: Yoofi Quansah Date: Tue, 13 Feb 2024 07:31:20 -0800 Subject: [PATCH 1/2] chore: add environment variables section for OTLP --- configuration/observability.mdx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/configuration/observability.mdx b/configuration/observability.mdx index 77e1a9bd..f2f283bd 100644 --- a/configuration/observability.mdx +++ b/configuration/observability.mdx @@ -110,3 +110,9 @@ tracing: headers: "X-Some-Header": "some-value" ``` + +#### Environment Variables + +As of [v1.38.0](https://github.com/flipt-io/flipt/releases/tag/v1.38.0), we now allow users to provide OTLP specific resource environment variables, that are part of the [OTLP spec](https://opentelemetry.io/docs/specs/otel/configuration/sdk-environment-variables/). + +There is no known exhaustive list of environment variables that the [opentelemetry-go](https://github.com/open-telemetry/opentelemetry-go) respects according to the spec, but if you search around in the repository you can see if any particular environment variables are respected. From 8cc29d867db0b0459e6bc4329087caf698c26a0f Mon Sep 17 00:00:00 2001 From: Mark Phelps <209477+markphelps@users.noreply.github.com> Date: Fri, 23 Feb 2024 18:43:38 -0500 Subject: [PATCH 2/2] chore: revamp env var section --- configuration/observability.mdx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/configuration/observability.mdx b/configuration/observability.mdx index f2f283bd..dfaf2352 100644 --- a/configuration/observability.mdx +++ b/configuration/observability.mdx @@ -113,6 +113,9 @@ tracing: #### Environment Variables -As of [v1.38.0](https://github.com/flipt-io/flipt/releases/tag/v1.38.0), we now allow users to provide OTLP specific resource environment variables, that are part of the [OTLP spec](https://opentelemetry.io/docs/specs/otel/configuration/sdk-environment-variables/). +As of [v1.38.0](https://github.com/flipt-io/flipt/releases/tag/v1.38.0), we now allow users to provide OTLP specific resource environment variables that are part of the [OTLP spec](https://opentelemetry.io/docs/specs/otel/configuration/sdk-environment-variables/). -There is no known exhaustive list of environment variables that the [opentelemetry-go](https://github.com/open-telemetry/opentelemetry-go) respects according to the spec, but if you search around in the repository you can see if any particular environment variables are respected. +The following environment variables are supported: + +- `OTEL_SERVICE_NAME` - Sets the value of the `service.name` resource attribute (default: `flipt`) +- `OTEL_RESOURCE_ATTRIBUTES` - Key-value pairs to be used as [resource attributes](https://opentelemetry.io/docs/specs/semconv/resource/#semantic-attributes-with-dedicated-environment-variable).