lib/opentelemetry/instrumentation/registry.rb in opentelemetry-api-0.11.0 vs lib/opentelemetry/instrumentation/registry.rb in opentelemetry-api-0.12.0
- old
+ new
@@ -77,11 +77,10 @@
OpenTelemetry.logger.info "Instrumentation: #{instrumentation.name} was successfully installed"
else
OpenTelemetry.logger.warn "Instrumentation: #{instrumentation.name} failed to install"
end
rescue => e # rubocop:disable Style/RescueStandardError
- OpenTelemetry.logger.warn "Instrumentation: #{instrumentation.name} unhandled exception " \
- "during install #{e}: #{e.backtrace}"
+ OpenTelemetry.handle_error(exception: e, message: "Instrumentation: #{instrumentation.name} unhandled exception during install: #{e.backtrace}")
end
end
end
end