Comments (2)
There is an outstanding RFC on this topic.
https://github.com/open-telemetry/oteps/blob/master/text/0005-global-init.md
This issue is sufficiently complicated that I would invite you to discuss them in the OpenTelemetry-Go SIG at our Thursday meeting (info: https://github.com/open-telemetry/community).
I am familiar with the arguments against package-global state, but we have a conflicting requirement in OTel to support "automatic" instrumentation, which supposes that a library can begin to use instrumentation without explicit dependency injection.
I've argued that support for a globally-registered SDK that is explicitly set once by the application is not the same as package-global state. For one thing, it's not mutable--it's set once at the right time during startup. If you'll ignore the testing use-case, which can be addressed separately.
We agree, too, that you are free to use explicit dependencies and not use the global state. It's permissible to run more than one SDK concurrently, but one of them may be installed as the global default.
We've heard proposals that we use a context lookup instead of a global, which would allow callers to override the default SDK based on context, but if someone uses context.Background()
we think there should be a default installed globally.
from opentelemetry-go.
stale issue.
from opentelemetry-go.
Related Issues (20)
- The codespell GitHub workflow doesn't work as expected HOT 2
- Warn users when boolean environment variable fallback happens
- Use `capitalizations-path` flag in `semconvgen` to properly capitalize semantic conventions
- Address Semantic Convention Assumptions
- baggage.New panics on members with values including 0x80 char HOT 1
- Marshall log record as JSON
- Synchronous gauges should get exposed at ongoing current timestamps, not the timestamp of the last Record() call
- Check for instantiation of generic for type inference. HOT 1
- Baggage propagation - replace invalid percent-encoded octet sequnces with replacement char HOT 5
- otlpmetrichttp exporter is sending generic error msg instead of actual collector msg in case of using loadbalancer exporter HOT 1
- Performance vs. Prometheus SDK HOT 6
- errors.Is and errors.As overhead on hot path HOT 2
- Explicit sign of dropped spans HOT 2
- Observable metrics with different attributes reported only once HOT 5
- otlpmetricgrpc.New and otlptracegrpc.New Fail to use default environment variables for endpoint HOT 4
- Add no-op processor HOT 1
- unable to export logs using otlploghttp HOT 4
- Add new configuration pattern for code that can be on the hot path HOT 1
- Enable ARM64 build in CI HOT 1
- OTLP exporters should not percent decode the key when parsing HEADERS env vars
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opentelemetry-go.