Skip to content

Commit

Permalink
Update instrumentation/aws_lambda/lib/opentelemetry/instrumentation/a…
Browse files Browse the repository at this point in the history
…ws_lambda/handler.rb

Co-authored-by: Kayla Reopelle (she/her) <[email protected]>
  • Loading branch information
xuan-cao-swi and kaylareopelle authored Mar 24, 2024
1 parent f80067b commit 63bf9ad
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def call_wrapped(event:, context:)
ensure
if original_handler_error
span&.record_exception(original_handler_error)
span&.status = OpenTelemetry::Trace::Status.error("Original lambda handler exception: #{original_handler_error.class}. Please check if you have correct handler setting or code in lambda function.")
span&.status = OpenTelemetry::Trace::Status.error("Original lambda handler exception: #{original_handler_error.class}. Please check if you have the correct handler setting and code in your lambda function.")
end
span&.finish
OpenTelemetry.tracer_provider.force_flush(timeout: @flush_timeout)
Expand Down

0 comments on commit 63bf9ad

Please sign in to comment.