opentelemetry-go-contrib
opentelemetry-go-contrib copied to clipboard
autoconfigure
Problem Statement
There exists https://github.com/open-telemetry/opentelemetry-java/tree/main/sdk-extensions/autoconfigure for Java. Is this something that would be of interest in golang? Would it potentially go into go-contrib?
Proposed Solution
Implement autoconfig
Alternatives
Don't do it.
Prior Art
Already linked Java
We already support environment variables for configuration, as specified.
The functionality I'm specifically interested in is Exporter Selection This does not appear to be implemented https://sourcegraph.com/search?q=context:global+repo:%5Egithub%5C.com/open-telemetry/opentelemetry-go+OTEL_TRACES_EXPORTER&patternType=literal
We have discussed using a registry method similar to that proposed in https://github.com/open-telemetry/opentelemetry-go-contrib/pull/2258 for exporters as well. There are some issues to resolve regarding registration order and safety and we expect that any initial implementation will live in the contrib repo to give it room to explore the solution space.
See #2591 / #2592. I think this might cover what you are thinking.