Annotation Type Trace


@Retention(RUNTIME) @Target(METHOD) public @interface Trace
Set this annotation to a method so the dd-java-agent considers it for tracing.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    Set whether to measure a trace.
    boolean
    Set whether to start a new trace.
    The operation name to set.
    The resource name.
  • Element Details

    • operationName

      String operationName
      The operation name to set. By default it takes the method's name
      Default:
      ""
    • resourceName

      String resourceName
      The resource name. By default it uses the same value as the operation name
      Default:
      ""
    • measured

      boolean measured
      Set whether to measure a trace. By default traces are not measured.
      Default:
      false
    • noParent

      boolean noParent
      Set whether to start a new trace. By default it continues the current trace.
      Default:
      false