opentelemetry-lambda
opentelemetry-lambda copied to clipboard
How to configure B3 Propagator?
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
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.
Thanks a lot for your prompt answer, sounds great. We're actually JavaScript for our AWS Lambda functions.
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!
Thanks @alex-vladut - we'll be adding layer build scripts here for JavaScript soon, and will make sure to have the propagators available.
Nice one, thanks for your help guys 👍