Class DefaultLogHandler

java.lang.Object
datadog.opentracing.DefaultLogHandler
All Implemented Interfaces:
LogHandler

public class DefaultLogHandler extends Object implements LogHandler
The default implementation of the LogHandler.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    log(long timestampMicroseconds, String event, datadog.trace.bootstrap.instrumentation.api.AgentSpan span)
    Handles the log implementation in the Span.
    void
    log(long timestampMicroseconds, Map<String,?> fields, datadog.trace.bootstrap.instrumentation.api.AgentSpan span)
    Handles the log implementation in the Span.
    void
    log(String event, datadog.trace.bootstrap.instrumentation.api.AgentSpan span)
    Handles the log implementation in the Span..
    void
    log(Map<String,?> fields, datadog.trace.bootstrap.instrumentation.api.AgentSpan span)
    Handles the log implementation in the Span.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DefaultLogHandler

      public DefaultLogHandler()
  • Method Details

    • log

      public void log(Map<String,?> fields, datadog.trace.bootstrap.instrumentation.api.AgentSpan span)
      Description copied from interface: LogHandler
      Handles the log implementation in the Span.
      Specified by:
      log in interface LogHandler
      Parameters:
      fields - key:value log fields. Tracer implementations should support String, numeric, and boolean values; some may also support arbitrary Objects.
      span - from which the call was made
    • log

      public void log(long timestampMicroseconds, Map<String,?> fields, datadog.trace.bootstrap.instrumentation.api.AgentSpan span)
      Description copied from interface: LogHandler
      Handles the log implementation in the Span.
      Specified by:
      log in interface LogHandler
      Parameters:
      timestampMicroseconds - The explicit timestamp for the log record. Must be greater than or equal to the Span's start timestamp.
      fields - key:value log fields. Tracer implementations should support String, numeric, and
      span - from which the call was made
    • log

      public void log(String event, datadog.trace.bootstrap.instrumentation.api.AgentSpan span)
      Description copied from interface: LogHandler
      Handles the log implementation in the Span..
      Specified by:
      log in interface LogHandler
      Parameters:
      event - the event value; often a stable identifier for a moment in the Span lifecycle
      span - from which the call was made
    • log

      public void log(long timestampMicroseconds, String event, datadog.trace.bootstrap.instrumentation.api.AgentSpan span)
      Description copied from interface: LogHandler
      Handles the log implementation in the Span.
      Specified by:
      log in interface LogHandler
      Parameters:
      timestampMicroseconds - The explicit timestamp for the log record. Must be greater than or equal to the Span's start timestamp.
      event - the event value; often a stable identifier for a moment in the Span lifecycle
      span - from which the call was made