-
Notifications
You must be signed in to change notification settings - Fork 249
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
Configurator improvements #438
Comments
Currently a user has to do the following to set up custom propagation (B3 in this case): require 'opentelemetry-sdk'
require 'opentelemetry-propagator-b3'
OpenTelemetry::SDK.configure do |c|
c.http_extractors = [OpenTelemetry::Propagator::B3::Single.rack_extractor, OpenTelemetry::Propagator::B3::Multi.rack_extractor]
c.http_injectors = [OpenTelemetry::Propagator::B3::Single.rack_injector]
c.text_map_extractors = [OpenTelemetry::Propagator::B3::Single.text_map_extractor, OpenTelemetry::Propagator::B3::Multi.text_map_extractor]
c.text_map_injectors = [OpenTelemetry::Propagator::B3::Single.text_map_injector]
end on gitter @genebean suggested having:
That specific approach might be challenging due to b3 being in a separate package, but we should be able to come up with something reasonable for supported propagation formats. |
I'm starting to think we may benefit from having a separate |
We should keep that option on the table, but for configuring propagation generally, I think it'd be sufficient to have a propagators option that takes a comma delimited string of well known propagator names. For example, We can build this on top of the individual |
@mwlang what do you think about this as an approach for #412? If the b3 gem is present we could expose three b3 configurations: |
@mwear I missed this comment from days ago. I definitely agree with adding a propagators option and I will wire it up as you described for b3. Thanks for linking the b3-requirements section. One thing I wanted to raise here before I got too far along, unless there's a strong desire to build a solution that's easily extensible, I am planning to centralize the logic for validating and wiring up propagators in one central place in the configurator. Does that work? |
See also #321. |
Closing as the SIG is happy with the configurator and improvements it has received since this was opened. Feel free to open issues for any future improvements that come up. |
The configurator was introduced to simplify SDK setup, which used to be fairly cumbersome. It was a step in the right direction, but could use some attention and improvements before GA. This issue is to discuss and track desired changes.
The text was updated successfully, but these errors were encountered: