lib/opentelemetry/exporter/jaeger/collector_exporter.rb in opentelemetry-exporter-jaeger-0.12.0 vs lib/opentelemetry/exporter/jaeger/collector_exporter.rb in opentelemetry-exporter-jaeger-0.13.0
- old
+ new
@@ -43,11 +43,11 @@
encoded_batches(span_data).each do |batch|
@transport.write(@serializer.serialize(batch))
end
- untraced do
+ OpenTelemetry::Common::Utilities.untraced do
@transport.flush
end
SUCCESS
rescue StandardError => e
OpenTelemetry.handle_error(exception: e, message: 'unexpected error in Jaeger::CollectorExporter#export')
@@ -70,13 +70,9 @@
URI(url)
false
rescue URI::InvalidURIError
true
- end
-
- def untraced
- OpenTelemetry::Trace.with_span(OpenTelemetry::Trace::Span.new) { yield }
end
def encoded_batches(span_data)
span_data.group_by(&:resource).map do |resource, spans|
process = Encoder.encoded_process(resource)