-
Notifications
You must be signed in to change notification settings - Fork 587
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support OTEL_EXPORTER_OTLP_{TRACES,METRICS}_PROTOCOL
in autoexport
#5807
Labels
enhancement
New feature or request
exporter: autoexport
good first issue
Good for newcomers
help wanted
Extra attention is needed
Milestone
Comments
MrAlias
added
enhancement
New feature or request
exporter: autoexport
good first issue
Good for newcomers
help wanted
Extra attention is needed
labels
Jun 26, 2024
Hi @MrAlias, you could assign me on this one! |
thomasgouveia
added a commit
to thomasgouveia/opentelemetry-go-contrib
that referenced
this issue
Jun 27, 2024
…,METRICS,LOGS}_PROTOCOL env var (open-telemetry#5807) This commit adds support for signal-specific environment variables to configure the OTLP protocol used with the exporter. As stated in the [specification](https://github.com/open-telemetry/opentelemetry-specification/blob/v1.34.0/specification/protocol/exporter.md#configuration-options), you can now use the following environment variables to configure signal-specific protocols: - `OTEL_EXPORTER_OTLP_TRACES_PROTOCOL` - `OTEL_EXPORTER_OTLP_LOGS_PROTOCOL` - `OTEL_EXPORTER_OTLP_METRICS_PROTOCOL` The package will first attempt to load the protocol for a signal from the corresponding environment variable. If it is not set or is empty, it will try to determine the protocol from `OTEL_EXPORTER_OTLP_PROTOCOL`. If this is also not defined or is empty, it will fall back to `http/protobuf`. Signed-off-by: thomasgouveia <[email protected]>
thomasgouveia
added a commit
to thomasgouveia/opentelemetry-go-contrib
that referenced
this issue
Jun 27, 2024
…,METRICS,LOGS}_PROTOCOL env var (open-telemetry#5807) This commit adds support for signal-specific environment variables to configure the OTLP protocol used with the exporter. As stated in the [specification](https://github.com/open-telemetry/opentelemetry-specification/blob/v1.34.0/specification/protocol/exporter.md#configuration-options), you can now use the following environment variables to configure signal-specific protocols: - `OTEL_EXPORTER_OTLP_TRACES_PROTOCOL` - `OTEL_EXPORTER_OTLP_LOGS_PROTOCOL` - `OTEL_EXPORTER_OTLP_METRICS_PROTOCOL` The package will first attempt to load the protocol for a signal from the corresponding environment variable. If it is not set or is empty, it will try to determine the protocol from `OTEL_EXPORTER_OTLP_PROTOCOL`. If this is also not defined or is empty, it will fall back to `http/protobuf`. Signed-off-by: thomasgouveia <[email protected]>
thomasgouveia
added a commit
to thomasgouveia/opentelemetry-go-contrib
that referenced
this issue
Jun 27, 2024
…,METRICS,LOGS}_PROTOCOL env var (open-telemetry#5807) This commit adds support for signal-specific environment variables to configure the OTLP protocol used with the exporter. As stated in the [specification](https://github.com/open-telemetry/opentelemetry-specification/blob/v1.34.0/specification/protocol/exporter.md#configuration-options), you can now use the following environment variables to configure signal-specific protocols: - `OTEL_EXPORTER_OTLP_TRACES_PROTOCOL` - `OTEL_EXPORTER_OTLP_LOGS_PROTOCOL` - `OTEL_EXPORTER_OTLP_METRICS_PROTOCOL` The package will first attempt to load the protocol for a signal from the corresponding environment variable. If it is not set or is empty, it will try to determine the protocol from `OTEL_EXPORTER_OTLP_PROTOCOL`. If this is also not defined or is empty, it will fall back to `http/protobuf`. Signed-off-by: thomasgouveia <[email protected]>
thomasgouveia
added a commit
to thomasgouveia/opentelemetry-go-contrib
that referenced
this issue
Jun 27, 2024
…,METRICS,LOGS}_PROTOCOL env var (open-telemetry#5807) This commit adds support for signal-specific environment variables to configure the OTLP protocol used with the exporter. As stated in the [specification](https://github.com/open-telemetry/opentelemetry-specification/blob/v1.34.0/specification/protocol/exporter.md#configuration-options), you can now use the following environment variables to configure signal-specific protocols: - `OTEL_EXPORTER_OTLP_TRACES_PROTOCOL` - `OTEL_EXPORTER_OTLP_LOGS_PROTOCOL` - `OTEL_EXPORTER_OTLP_METRICS_PROTOCOL` The package will first attempt to load the protocol for a signal from the corresponding environment variable. If it is not set or is empty, it will try to determine the protocol from `OTEL_EXPORTER_OTLP_PROTOCOL`. If this is also not defined or is empty, it will fall back to `http/protobuf`. Signed-off-by: thomasgouveia <[email protected]>
thomasgouveia
added a commit
to thomasgouveia/opentelemetry-go-contrib
that referenced
this issue
Jun 27, 2024
…,METRICS,LOGS}_PROTOCOL env var (open-telemetry#5807) This commit adds support for signal-specific environment variables to configure the OTLP protocol used with the exporter. As stated in the [specification](https://github.com/open-telemetry/opentelemetry-specification/blob/v1.34.0/specification/protocol/exporter.md#configuration-options), you can now use the following environment variables to configure signal-specific protocols: - `OTEL_EXPORTER_OTLP_TRACES_PROTOCOL` - `OTEL_EXPORTER_OTLP_LOGS_PROTOCOL` - `OTEL_EXPORTER_OTLP_METRICS_PROTOCOL` The package will first attempt to load the protocol for a signal from the corresponding environment variable. If it is not set or is empty, it will try to determine the protocol from `OTEL_EXPORTER_OTLP_PROTOCOL`. If this is also not defined or is empty, it will fall back to `http/protobuf`. Signed-off-by: thomasgouveia <[email protected]>
thomasgouveia
added a commit
to thomasgouveia/opentelemetry-go-contrib
that referenced
this issue
Jun 28, 2024
…,METRICS,LOGS}_PROTOCOL env var (open-telemetry#5807) This commit adds support for signal-specific environment variables to configure the OTLP protocol used with the exporter. As stated in the [specification](https://github.com/open-telemetry/opentelemetry-specification/blob/v1.34.0/specification/protocol/exporter.md#configuration-options), you can now use the following environment variables to configure signal-specific protocols: - `OTEL_EXPORTER_OTLP_TRACES_PROTOCOL` - `OTEL_EXPORTER_OTLP_LOGS_PROTOCOL` - `OTEL_EXPORTER_OTLP_METRICS_PROTOCOL` The package will first attempt to load the protocol for a signal from the corresponding environment variable. If it is not set or is empty, it will try to determine the protocol from `OTEL_EXPORTER_OTLP_PROTOCOL`. If this is also not defined or is empty, it will fall back to `http/protobuf`. Signed-off-by: thomasgouveia <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
enhancement
New feature or request
exporter: autoexport
good first issue
Good for newcomers
help wanted
Extra attention is needed
Currently the proto configuration is only interpreted from
OTEL_EXPORTER_OTLP_PROTOCOL
:opentelemetry-go-contrib/exporters/autoexport/spans.go
Line 68 in 962040e
The specification states:
We should support the signal specification configurations for the protocol.
Related: https://cloud-native.slack.com/archives/C01NPAXACKT/p1719416293839069
The text was updated successfully, but these errors were encountered: