opentelemetry-lambda icon indicating copy to clipboard operation
opentelemetry-lambda copied to clipboard

How to configure B3 Propagator?

Open alex-vladut opened this issue 3 years ago • 5 comments

First of all, great initiative for putting this AWS Lambda Extension together 👍 Is there any option to configure the propagator to be B3 Propagator? https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/context/api-propagators.md https://github.com/openzipkin/b3-propagation

alex-vladut avatar Mar 22 '21 10:03 alex-vladut

Hey - are you using Java? Currently the agent version supports it but indeed I forgot to add the dependency to the wrapper version, will fix.

For other languages we're still working on scripts but do indent to support extension propagators to make sure interop works well - they would be used when active tracing (i.e., AWS X-Ray) is disabled for the function.

anuraaga avatar Mar 22 '21 12:03 anuraaga

Thanks a lot for your prompt answer, sounds great. We're actually JavaScript for our AWS Lambda functions.

alex-vladut avatar Mar 22 '21 13:03 alex-vladut

hey @alex-vladut, here's an example from the opentelemetry-js repo: https://github.com/open-telemetry/opentelemetry-js/blob/main/examples/tracer-web/examples/xml-http-request/index.js

With additional details here:

https://github.com/open-telemetry/opentelemetry-js/tree/main/packages/opentelemetry-propagator-b3

hope this helps!

codeboten avatar Mar 22 '21 19:03 codeboten

Thanks @alex-vladut - we'll be adding layer build scripts here for JavaScript soon, and will make sure to have the propagators available.

anuraaga avatar Mar 23 '21 04:03 anuraaga

Nice one, thanks for your help guys 👍

alex-vladut avatar Mar 23 '21 10:03 alex-vladut