-
Notifications
You must be signed in to change notification settings - Fork 764
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
SDK configuration from ENV Variable #1453
Comments
Given this is not a MUST, we can add this after-ga. |
I would like to discuss the potential API and behavior changes that are expected as part of this issue. I see two "types" of configuration that can be done via environmental variables. The first one is about configuring a specific component like Zipkin Exporter configuration. The logic here can be simply encapsulated into existing packages like https://www.nuget.org/packages/OpenTelemetry.Exporter.Zipkin/. No API changes needed. The second one is harder as it is about enabling components e.g. Exporter selection. I think this type of setting may even need some at least high-level design to make sure we have something that covers public static TracerProviderBuilder RegisterZipkinExporterEnvVar(TracerProviderBuilder builder) {
return builder.RegisterExporter("zipkin", () => builder.AddZipkinExporter());
} Also, it may be worth creating a convenience NuGet package with a method like |
Line 199 in 6b7f2dd
Does it mean that we cannot limit them and support *_LIMIT env vars? |
By @reyang from Slack thread: Environmental variables handling:
|
Am I right in understanding that as of |
That's the updated link for the environment variables. I'm not sure we have plans in place to start supporting the full list right @alanwest ? |
Howdy, I'm also wondering about OTEL_TRACES_EXPORTER support. Is that in the plans? |
not in the immediate plan. supporting that would likely need to create a distro or meta package and is not explored yet. |
Spec has documented a list of ENV variable names from which SDK should read config, if SDK chose to support ENV var based config.
https://github.com/open-telemetry/opentelemetry-specification/blob/master/specification/sdk-environment-variables.md
The text was updated successfully, but these errors were encountered: