Interface MessageContext

All Superinterfaces:
Context, MetadataContext

public interface MessageContext extends MetadataContext
Context for an incoming message.
  • Method Details

    • eventSubject

      Optional<String> eventSubject()
      The origin subject of the CloudEvent. For example, the entity id when the event was emitted from an entity.
    • getTracer

      io.opentelemetry.api.trace.Tracer getTracer()
      Get an OpenTelemetry tracer for the current message. This will allow for building and automatic exporting of spans.
      Returns:
      A tracer for the current message, if tracing is configured. Otherwise, a noops tracer.