-
Notifications
You must be signed in to change notification settings - Fork 343
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
Add OpenTelemetryLayer to lambda_runtime layers #866
Comments
Providing that layer can be a good idea since multiple people seem to use it. OpenTelemetry and Tracing are two completely separated tracing systems. Adding both layers is not going to do what you expect. You need to use the Tracing / Open Telemetry integration for that: https://docs.rs/tracing-opentelemetry/latest/tracing_opentelemetry/ |
Both TracingLayer and OpenTelemetryLayer uses |
This issue is now closed. Comments on closed issues are hard for our team to see. |
Hi, I have started testing OpenTelemetry integration and I found the example given here really useful: https://github.com/awslabs/aws-lambda-rust-runtime/blob/main/examples/opentelemetry-tracing/src/lib.rs
I have copied the code into my project but I am wondering if it could be packaged into the distributed crate, maybe behind an opentelemetry feature flag?
I have also tried using nested layers and I would expect this to create child spans but this is not what I am observing. Is this a feature or a bug?
Given this setup I would expect the span of Tracing-layer to be a child of the OpenTelemetry-layer span:
But this is the result (function_name is customer-lookup):
The text was updated successfully, but these errors were encountered: