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.

@FunctionalInterface public interface Sender
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

    Modifier and Type
    Method
    Description
    void
    send(Envelope envelope)
    Sends one already-built envelope to its destination.
  • Method Details

    • send

      void send(Envelope envelope) throws Exception
      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)