Skip to content

feat(boto3): Add trace propagation through Lambda Invoke #8071

Closed

Description

@pabloDeputter

Inject trace propagation context for the following operations:

  • Invoke, InvokeWithResponseStream: add sentry-trace and baggage to ClientContext.custom.
  • AwsLambdaIntegration: continue them from context.client_context.custom as the parent.

Additional logic:

  • Skip when either is true: caller already set them OR 2. above 3,538 encoded bytes threshold.
  • Skip InvocationType=Event / DryRun: Lambda doesn't deliver ClientContext to async invocations.

Depends on #8069

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions