Package 

Enum TraceContextInjection

  • All Implemented Interfaces:
    java.io.Serializable , kotlin.Comparable

    
    public enum TraceContextInjection
    extends Enum<TraceContextInjection>
                        

    Defines whether the trace context should be injected into all requests or only sampled ones.

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      SAMPLED

      Injects trace context only into sampled requests. For example if the request trace is sampled out neither the trace context or the sampling priority will be injected into the request headers leaving the server side to make the sampling decision. This will mean that if the server side sampling rate is higher than the client side sampling rate there will be a chance that a trace will be created down the stream.

      ALL

      Injects trace context into all requests irrespective of the sampling decision. For example if the request trace is sampled out, the trace context will still be injected in your request headers but the sampling priority will be 0. This will mean that the client will dictate the sampling priority on the server side and no trace will be created no matter the sampling rate at the server side.

    • Method Summary

      Modifier and Type Method Description
      final String getName()
      final Integer getOrdinal()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait