Skip to content

Adding a Custom Context Propagator #1355

Discussion options

You must be logged in to vote

We don't have a way to automatically "register" a new third party propagator and then make it available by way of environment variable, unfortunately. I think if you came up with a clean way to implement that, we may be open to a PR that implemented the functionality - although I think the SIG might want to discuss a little about that first (here, or in the meeting, etc).

Right now the way you would do this is by setting up the SDK programatically. That would look something like:

      my_propagator = My::Custom::Thing.new
      OpenTelemetry::SDK.configure do |c|
        # set up your SDK however you like
        # c.use_all(instrumentation_config)
        # c.resource = resource
        #…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@paychex-ssmithrand
Comment options

@ahayworth
Comment options

Answer selected by plantfansam
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants