Interface InstrumentedContext

All Superinterfaces:
AccessValidator, CommandContext
All Known Implementing Classes:
MessageContextImpl

public interface InstrumentedContext extends CommandContext
A command context that is instrumented for use with metrics and tracing tooling.
Since:
1.0
Version:
1.0
API Note:
If also implementing LazyContext, this API should be available before any methods are called.
  • Method Details

    • getCommandId

      @Pure String getCommandId()
      Retrieves the ID of the invoked command.
      Returns:
      The command ID.
    • tagType

      Determines the value for the type tag.
      Returns:
      The tag.
    • addTags

      @SideEffectFree default <T> Mono<T> addTags(Mono<T> mono)
      Adds the common instrumentation tags for this context to a Mono.
      Type Parameters:
      T - The mono value type.
      Parameters:
      mono - The mono to add tags to.
      Returns:
      The mono with tags added.