Class TraceableTcpTransportChannel

java.lang.Object
org.opensearch.transport.BaseTcpTransportChannel
org.opensearch.telemetry.tracing.channels.TraceableTcpTransportChannel
All Implemented Interfaces:
TransportChannel

public class TraceableTcpTransportChannel extends BaseTcpTransportChannel
Tracer wrapped TransportChannel
  • Constructor Details

    • TraceableTcpTransportChannel

      public TraceableTcpTransportChannel(TcpTransportChannel delegate, org.opensearch.telemetry.tracing.Span span, org.opensearch.telemetry.tracing.Tracer tracer)
      Constructor.
      Parameters:
      delegate - delegate
      span - span
      tracer - tracer
  • Method Details

    • create

      public static TransportChannel create(TcpTransportChannel delegate, org.opensearch.telemetry.tracing.Span span, org.opensearch.telemetry.tracing.Tracer tracer)
      Factory method.
      Parameters:
      delegate - delegate
      span - span
      tracer - tracer
      Returns:
      transport channel
    • getProfileName

      public String getProfileName()
    • getChannelType

      public String getChannelType()
    • sendResponse

      public void sendResponse(org.opensearch.core.transport.TransportResponse response) throws IOException
      Throws:
      IOException
    • sendResponse

      public void sendResponse(Exception exception) throws IOException
      Throws:
      IOException
    • getVersion

      public org.opensearch.Version getVersion()
      Description copied from interface: TransportChannel
      Returns the version of the other party that this channel will send a response to.
    • get

      public <T> Optional<T> get(String name, Class<T> clazz)
      Description copied from interface: TransportChannel
      Returns the contextual property associated with this specific transport channel (the implementation of how such properties are managed depends on the particular transport engine).
      Parameters:
      name - the name of the property
      clazz - the expected type of the property
      Returns:
      the value of the property.