lib/opentelemetry/exporter/jaeger/collector_exporter.rb in opentelemetry-exporter-jaeger-0.15.0 vs lib/opentelemetry/exporter/jaeger/collector_exporter.rb in opentelemetry-exporter-jaeger-0.16.0

- old
+ new

@@ -52,16 +52,26 @@ rescue StandardError => e OpenTelemetry.handle_error(exception: e, message: 'unexpected error in Jaeger::CollectorExporter#export') FAILURE end - # Called when {OpenTelemetry::SDK::Trace::Tracer#shutdown} is called, if - # this exporter is registered to a {OpenTelemetry::SDK::Trace::Tracer} + # Called when {OpenTelemetry::SDK::Trace::TracerProvider#force_flush} is called, if + # this exporter is registered to a {OpenTelemetry::SDK::Trace::TracerProvider} # object. # # @param [optional Numeric] timeout An optional timeout in seconds. + def force_flush(timeout: nil) + SUCCESS + end + + # Called when {OpenTelemetry::SDK::Trace::TracerProvider#shutdown} is called, if + # this exporter is registered to a {OpenTelemetry::SDK::Trace::TracerProvider} + # object. + # + # @param [optional Numeric] timeout An optional timeout in seconds. def shutdown(timeout: nil) @shutdown = true + SUCCESS end private def invalid_url?(url)