-
Notifications
You must be signed in to change notification settings - Fork 631
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 env variable configuration for OTLP exporter #1004
Comments
@codeboten can i help fix this? |
Looks like current OTLP exporter code doesn't cover all the cases covered in spec. These seem like can be immediately supported:
These require the cases to be implemented(for e.g. moving to trace/metric experimental API) before adding support for ENV based configuration:
Would you recommend we cover the top 3 cases and have a way to work with ENV variables, and for later cases the support can be added as they are implemented? |
I think add env var based support to existing options makes sense. Adding new the missing options can be a different stream of work. |
I agree, supporting the ones that are already present seems like a good first step. Also worth implementing the case where a general config option is set instead of
Worth noting that the current OTLP exporter calls headers metadata: https://github.com/open-telemetry/opentelemetry-python/blob/master/exporter/opentelemetry-exporter-otlp/src/opentelemetry/exporter/otlp/exporter.py#L110 |
I opened a WIP PR. Any feedback early on would be helpful :) |
Also, I think we can clarify few things in exporter spec:
wdyt? |
Sure, I think it makes sense to clarify this in the spec. I would expect the format for OTLP_HEADERS to be a list of key/value pairs like the the resource attributes env variable: https://github.com/open-telemetry/opentelemetry-specification/blob/master/specification/sdk-environment-variables.md#general-sdk-configuration |
Cool. I'll find some time soon to open a PR in spec repo to discuss more and also to finalize this current issue |
The spec describes environment variables that should be supported to configure the OTLP exporter, this feature request is to add support in the current implementation.
Spec PR:
https://github.com/open-telemetry/opentelemetry-specification/pull/699/files
The text was updated successfully, but these errors were encountered: