Interface CommandContext

All Superinterfaces:
Context, MetadataContext

public interface CommandContext extends MetadataContext
Context for action calls.
  • Method Summary

    Modifier and Type
    Method
    Description
    io.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.