Skip to content

Commit

Permalink
chore: Update README and conditionally flush metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
joshwestbrook committed Jan 13, 2025
1 parent 8c5bd9e commit 6b012b2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def wrap_lambda(event:, context:, handler:, flush_timeout: DEFAULT_FLUSH_TIMEOUT
end

OpenTelemetry.tracer_provider.force_flush(timeout: flush_timeout)
OpenTelemetry.meter_provider.force_flush(timeout: flush_timeout)
OpenTelemetry.meter_provider.force_flush(timeout: flush_timeout) if OpenTelemetry.respond_to?(:meter_provider)

raise original_handler_error if original_handler_error

Expand Down

0 comments on commit 6b012b2

Please sign in to comment.