Skip to content

Commit

Permalink
Add record_exception
Browse files Browse the repository at this point in the history
  • Loading branch information
tammy-baylis-swi committed Feb 16, 2024
1 parent ea87363 commit 667e0f6
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,7 @@ def _instrumented_lambda_handler_call( # noqa pylint: disable=too-many-branches
except Exception as exc: # pylint: disable=W0703
exception = exc
span.set_status(Status(StatusCode.ERROR))
span.record_exception(exception)

# If the request came from an API Gateway, extract http attributes from the event
# https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/semantic_conventions/instrumentation/aws-lambda.md#api-gateway
Expand Down

0 comments on commit 667e0f6

Please sign in to comment.