Class CorrelationIdentifier

java.lang.Object
datadog.trace.api.CorrelationIdentifier

public class CorrelationIdentifier extends Object
Utility class to access the active trace and span ids.

Intended for use with MDC frameworks.

  • Constructor Details

    • CorrelationIdentifier

      public CorrelationIdentifier()
  • Method Details

    • getTraceIdKey

      public static String getTraceIdKey()
      Returns:
      The trace-id key to use with datadog logs integration
    • getSpanIdKey

      public static String getSpanIdKey()
      Returns:
      The span-id key to use with datadog logs integration
    • getTraceId

      public static String getTraceId()
    • getSpanId

      public static String getSpanId()