Skip to content

Emit AWS SDK exceptions as logs under the opt-in preview#18894

Merged
laurit merged 3 commits into
open-telemetry:mainfrom
trask:trask/aws-exception-events
Jun 10, 2026
Merged

Emit AWS SDK exceptions as logs under the opt-in preview#18894
laurit merged 3 commits into
open-telemetry:mainfrom
trask:trask/aws-exception-events

Conversation

@trask

@trask trask commented Jun 3, 2026

Copy link
Copy Markdown
Member

Under otel.semconv.exception.signal.preview=logs (introduced in #16259), AWS SDK instrumentations now emit their exceptions as log records instead of span events.

Part of follow-up work after #16259.

@trask trask force-pushed the trask/aws-exception-events branch from f4aff56 to 3d353a5 Compare June 3, 2026 20:10
@trask trask changed the title Add AWS SDK exception event extractor wiring Wire AWS SDK exception events across semconv domains Jun 3, 2026
@trask trask changed the title Wire AWS SDK exception events across semconv domains Emit AWS SDK exceptions as logs under the opt-in preview Jun 3, 2026
@trask trask force-pushed the trask/aws-exception-events branch 3 times, most recently from fb7de31 to 855a351 Compare June 4, 2026 00:41
@trask trask force-pushed the trask/aws-exception-events branch 6 times, most recently from 3b502ce to 0bd2856 Compare June 5, 2026 16:54
@trask trask force-pushed the trask/aws-exception-events branch from 0bd2856 to b8aad6c Compare June 9, 2026 17:49
@trask trask requested a review from Copilot June 9, 2026 17:50

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the AWS SDK v1.11 and v2.2 instrumentations to configure semantic-convention exception emission so that, when otel.semconv.exception.signal.preview=logs is enabled, exceptions can be emitted as log records (with appropriate event names/severity) instead of span events.

Changes:

  • Configure RPC client exception log event naming/severity for the core AWS SDK client instrumenters.
  • Configure messaging exception log event naming/severity for SQS receive/process/send instrumenters.
  • Configure DB and GenAI exception log event naming/severity for DynamoDB and Bedrock Runtime instrumenters, and thread the exception customizer through the shared instrumenter factory helpers.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
instrumentation/aws-sdk/aws-sdk-2.2/library/src/main/java/io/opentelemetry/instrumentation/awssdk/v2_2/internal/AwsSdkInstrumenterFactory.java Adds exception-event customizers (RPC/messaging/DB/GenAI) and wires them into instrumenter construction for AWS SDK v2.
instrumentation/aws-sdk/aws-sdk-1.11/library/src/main/java/io/opentelemetry/instrumentation/awssdk/v1_11/internal/AwsSdkInstrumenterFactory.java Adds exception-event customizers (RPC/messaging/DB) and wires them into instrumenter construction for AWS SDK v1.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated no new comments.

@trask trask marked this pull request as ready for review June 9, 2026 18:39
@trask trask requested a review from a team as a code owner June 9, 2026 18:39
@laurit laurit merged commit b30602f into open-telemetry:main Jun 10, 2026
95 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants