Package akka.javasdk.consumer
Interface MessageContext
- All Superinterfaces:
Context
,MetadataContext
Context for an incoming message.
-
Method Summary
Modifier and TypeMethodDescriptionThe origin subject of theCloudEvent
.io.opentelemetry.api.trace.Tracer
Get an OpenTelemetry tracer for the current message.Methods inherited from interface akka.javasdk.MetadataContext
metadata
-
Method Details
-
eventSubject
The origin subject of theCloudEvent
. 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.
-