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

- old
+ new

@@ -41,16 +41,26 @@ @client.emitBatch(batch) end 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 batcher