opentelemetry-go-contrib icon indicating copy to clipboard operation
opentelemetry-go-contrib copied to clipboard

autoconfigure

Open hdost opened this issue 2 years ago • 4 comments

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

hdost avatar May 31 '22 11:05 hdost

We already support environment variables for configuration, as specified.

dmathieu avatar May 31 '22 11:05 dmathieu

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

hdost avatar May 31 '22 12:05 hdost

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.

Aneurysm9 avatar May 31 '22 15:05 Aneurysm9

See #2591 / #2592. I think this might cover what you are thinking.

deejgregor avatar Jul 24 '22 22:07 deejgregor