Emit FaaS exceptions as logs under the opt-in preview#18892
Merged
Conversation
cf030ad to
5d8e625
Compare
5d8e625 to
27e39b6
Compare
Contributor
There was a problem hiding this comment.
Pull request overview
Updates AWS Lambda (FaaS) instrumentation to customize exception log emission under the otel.semconv.exception.signal.preview=logs opt-in, aligning Lambda exception logs with a FaaS-specific event name/severity.
Changes:
- Add a small incubator helper (
FaasExceptionEventExtractors) that configures the exception log event name/severity for FaaS invocations. - Wire the helper into AWS Lambda core and events-common instrumenter builders so the exception signal is configured consistently.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| instrumentation/aws-lambda/aws-lambda-events-common-2.2/library/src/main/java/io/opentelemetry/instrumentation/awslambdaevents/common/v2_2/internal/AwsLambdaEventsInstrumenterFactory.java | Applies the FaaS exception log event extractor to the events-common Lambda instrumenter builder. |
| instrumentation/aws-lambda/aws-lambda-core-1.0/library/src/main/java/io/opentelemetry/instrumentation/awslambdacore/v1_0/internal/AwsLambdaFunctionInstrumenterFactory.java | Applies the FaaS exception log event extractor to the core Lambda instrumenter builder. |
| instrumentation-api-incubator/src/main/java/io/opentelemetry/instrumentation/api/incubator/semconv/faas/FaasExceptionEventExtractors.java | Introduces a reusable helper to set the exception log event name (faas.invocation.exception) and severity (ERROR). |
27e39b6 to
eae016b
Compare
30752f4 to
9427f79
Compare
a2d4a3f to
0cac209
Compare
aec8d59 to
ee3b121
Compare
laurit
approved these changes
Jun 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Under
otel.semconv.exception.signal.preview=logs(introduced in #16259), FaaS instrumentations now emit their exceptions as log records instead of span events.Part of follow-up work after #16259.