-
Notifications
You must be signed in to change notification settings - Fork 896
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
Configuring propagators by environment variable #680
Comments
Note that a major open point here is that we currently don't really support more than one propagator at a time, see #496. I also think that it should be possible to configure extractors and injectors separately (it's likely you want to be able to read different formats but still write only W3C, for example). This is also not well-supported by the propagator API currently, however. |
Not all languages support separated injectors/extractors (Java doesn't, for example). But the case you mention on reading different formats but write only W3C could be supported in a |
Also, observe that this should support canonical formats for other signals, such as |
True, the MultiTracePropagator could simply have separate lists of propagators for Inject/Extract. |
I'm interested in this issue, so I will take this on me. |
Do we still consider this to be a must-have for GA? |
Changing this to P1 after talking to the Java Instrumentation Maintainers. |
|
@carlosalberto I don't think this is the issue that I thought it was. We don't need custom propagators in Java Instrumentation for GA. |
But this PR is not only about custom propagators, right? It includes built-in ones. |
Background
This is issue is similar to #679, but deals with propagator configuration and has some additional considerations.
#666 allows configuration of propagators via and environment variable where the value is a comma delimited string. In order for this to work, there must a way to instantiate or look up a propagator using a string. Since this is an extension point, users will need a way to register custom propagators. Having a propagator registry is one way to accomplish this. There are likely other strategies that will work. Please discuss in the comments if you have other ideas.
Environment Variable Name
This is the currently proposed name and format
tracecontext
,b3
,b3,tracecontext
tracecontext
Note: We will need to define a canonical name for each propagator. Is lower snakecase a reasonable choice for built in propagators, or should we choose something else?
Open Questions
What should be done in case of failure?
The text was updated successfully, but these errors were encountered: