lib/opentelemetry/instrumentation/sidekiq/instrumentation.rb in opentelemetry-instrumentation-sidekiq-0.19.1 vs lib/opentelemetry/instrumentation/sidekiq/instrumentation.rb in opentelemetry-instrumentation-sidekiq-0.20.0

- old
+ new

@@ -55,9 +55,13 @@ config.on(:startup) do ::Sidekiq::Processor.prepend(Patches::Processor) ::Sidekiq::Launcher.prepend(Patches::Launcher) ::Sidekiq::Scheduled::Poller.prepend(Patches::Poller) end + + config.on(:shutdown) do + OpenTelemetry.tracer_provider.shutdown + end end end def add_client_middleware ::Sidekiq.configure_client do |config|