Skip to content

feat: add OpenTelemetry tracing support - #2607

Draft
David-DAM wants to merge 18 commits into
aws-powertools:mainfrom
David-DAM:feature/opentelemetry-tracing
Draft

feat: add OpenTelemetry tracing support#2607
David-DAM wants to merge 18 commits into
aws-powertools:mainfrom
David-DAM:feature/opentelemetry-tracing

Conversation

@David-DAM

Copy link
Copy Markdown
Contributor

Issue number: Closes #1943

Description of changes:

  • Added OpenTelemetry tracing support
  • Added module powertools-tracing-opentelemetry

Checklist

Breaking change checklist

RFC issue #:

  • Migration process documented
  • Implement warnings (if it can live side by side)

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

…ce context handling.

- Refactor `TracingOpenTelemetryAspect` to support span links via extracted trace context.
- Add `TraceContextPropagationMode` with `PARENT` and `LINK` options, configurable via environment variable.
- Implement `ExtractedTraceContext` to encapsulate parent/linked contexts.
- Update context extractors (SNS, SQS, S3, DynamoDB, Kinesis, API Gateway) to return `ExtractedTraceContext`.
- Enhance span creation to include multiple links where applicable.
- Deprecate and remove certain tests for unsupported scenarios.
…ance `TracingOpenTelemetry` for additional span operations, and update dependencies.
…t and headers, refactor initialization logic, and introduce `LoggingSpanExporter` for improved debugging.
…r`, refactor tracer provider initialization for improved SDK management.
…acingOpenTelemetryAspect` to ensure flushing spans, and introduce reusable default instance.
…ry`, context extractors, and related classes and methods.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1 participant