Can anyone please provide a concrete and working Rust example of sending traces (ideally spans from tracing library) into AWS X-Ray from an AWS Lambda function?
I’ve tried different scenarios and libraries without a “clean” outcome as, the only way I’ve been able to push traces to X-Ray has been coding the bits myself. But the desirable outcome would be to just instrument the bits of code using, for example, the tracing macros (#[tracing::instrument]
).
Crates used (and failed with):
- https://docs.rs/opentelemetry/latest/opentelemetry/
- https://docs.rs/xray-lite/latest/xray_lite/
- https://docs.rs/xray-lite-aws-sdk/latest/xray_lite_aws_sdk/
- https://docs.rs/aws-sdk-xray/latest/aws_sdk_xray/
Thanks!