Skip to content
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

Initialization of global variables #74

Closed
wants to merge 15 commits into from

Conversation

jmacd
Copy link
Contributor

@jmacd jmacd commented Dec 20, 2019

This PR replaces #45, since the content has been largely rewritten.

This now refers to a prototype in Go: open-telemetry/opentelemetry-go#392

text/0074-global-init.md Outdated Show resolved Hide resolved
instances to become functional once the corresponding implementation
is initialized. The default instances returned by the global getters
for Tracer provider, Meter provider, and Propagators must "forward" to
the real SDK implementation once it is installed.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@jkwatson
Copy link
Contributor

Note: a PR for Java which implements the changes I think would be required for this OTEP: open-telemetry/opentelemetry-java#724

lizthegrey pushed a commit to open-telemetry/opentelemetry-go that referenced this pull request Jan 2, 2020
* Global trace forwarding implementation according to open-telemetry/oteps#74
huikang pushed a commit to huikang/opentelemetry-go that referenced this pull request Jan 3, 2020
* Global trace forwarding implementation according to open-telemetry/oteps#74
@jmacd
Copy link
Contributor Author

jmacd commented Jan 21, 2020

I've updated this OTEP stating that languages have an option to implement both SPI and explicit initialization, as long as it's consistent and satisfies the rules.

@jmacd
Copy link
Contributor Author

jmacd commented Jun 23, 2020

The behavior described in this PR is implemented in OTel-Go. I suspect other languages will need the same approach to global SDK behavior, but with the work already done in OTel-Go, I see no need to keep this PR.

@jmacd jmacd closed this Jun 23, 2020
shbieng added a commit to shbieng/opentelemetry-go that referenced this pull request Aug 26, 2022
* Global trace forwarding implementation according to open-telemetry/oteps#74
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants