Package com.babelqueue.otel
Interface Sender
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Performs the actual transport write for
Tracing.publish(io.opentelemetry.api.trace.Tracer, java.lang.String, java.util.Map<java.lang.String, java.lang.Object>, com.babelqueue.otel.Sender). The core is codec-only, so
the producer helper builds the envelope (stamping the active trace's id into its
trace_id) and hands it to a Sender that writes it to a broker.-
Method Summary
-
Method Details
-
send
Sends one already-built envelope to its destination.- Parameters:
envelope- the envelope to publish- Throws:
Exception- to signal a failed publish (recorded on the producer span and re-thrown)
-