Package akka.javasdk.timedaction
Interface CommandContext
- All Superinterfaces:
Context
,MetadataContext
Context for action calls.
-
Method Summary
Modifier and TypeMethodDescriptionio.opentelemetry.api.trace.Tracer
Get an OpenTelemetry tracer for the current action.Methods inherited from interface akka.javasdk.MetadataContext
metadata
-
Method Details
-
getTracer
io.opentelemetry.api.trace.Tracer getTracer()Get an OpenTelemetry tracer for the current action. This will allow for building and automatic exporting of spans.- Returns:
- A tracer for the current action, if tracing is configured. Otherwise, a noops tracer.
-