Skip to content

[OpenTracing] Fix symbol propagation#507

Merged
delner merged 2 commits into
feature/opentracingfrom
bugfix/opentracing_fix_symbol_propagation
Aug 10, 2018
Merged

[OpenTracing] Fix symbol propagation#507
delner merged 2 commits into
feature/opentracingfrom
bugfix/opentracing_fix_symbol_propagation

Conversation

@delner

@delner delner commented Aug 9, 2018

Copy link
Copy Markdown
Contributor

While testing our Opentracer adapter with ruby-rack-tracer, we ran into an edge case where when the Rack::Env contains a symbol key, then propagation in our Opentracer adapter raises an error undefined method 'start_with?' for :"ot-baggage-account_name":Symbol.

This pull request coerces symbols to strings when attempting to do this kind of propagation.

@delner delner added bug Involves a bug core Involves Datadog core libraries labels Aug 9, 2018
@delner delner self-assigned this Aug 9, 2018
@delner
delner merged this pull request into feature/opentracing Aug 10, 2018
@delner
delner deleted the bugfix/opentracing_fix_symbol_propagation branch August 10, 2018 14:19
delner added a commit that referenced this pull request Aug 17, 2018
* Fixed: Rack headers as symbols incompatible with OpenTracer propagation.

* Fixed: Text map baggage as symbols incompatible with OpenTracer propagation.
@delner delner added this to the 0.16.0 milestone Aug 23, 2018
delner added a commit that referenced this pull request Sep 13, 2018
* Fixed: Rack headers as symbols incompatible with OpenTracer propagation.

* Fixed: Text map baggage as symbols incompatible with OpenTracer propagation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Involves a bug core Involves Datadog core libraries

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants