Class SenderContext<C>

java.lang.Object
io.micrometer.observation.Observation.Context
io.micrometer.observation.transport.SenderContext<C>
Type Parameters:
C - type of the carrier object
All Implemented Interfaces:
Observation.ContextView
Direct Known Subclasses:
RequestReplySenderContext

public class SenderContext<C> extends Observation.Context
Context used when sending data over the wire in a fire and forget fashion.
Since:
1.10.0
  • Constructor Details

  • Method Details

    • getCarrier

      @Nullable public C getCarrier()
    • setCarrier

      public void setCarrier(C carrier)
    • getSetter

      public Propagator.Setter<C> getSetter()
    • getKind

      public Kind getKind()
    • getRemoteServiceName

      @Nullable public String getRemoteServiceName()
      Return optional name for the service that will be called.
      Returns:
      optional name for the service that will be called
    • setRemoteServiceName

      public void setRemoteServiceName(@Nullable String remoteServiceName)
      Set optional name for the service that will be called.
      Parameters:
      remoteServiceName - name of the service that will be called
    • getRemoteServiceAddress

      @Nullable public String getRemoteServiceAddress()
      Return optional address for the service that will be called.
      Returns:
      optional address for the service that will be called
    • setRemoteServiceAddress

      public void setRemoteServiceAddress(@Nullable String remoteServiceAddress)
      Set optional service address for the service that will be called.
      Parameters:
      remoteServiceAddress - service address for the service that will be called