All Downloads are FREE. Search and download functionalities are using the official Maven repository.

datadog.trace.api.Trace Maven / Gradle / Ivy

There is a newer version: 0.48.0-sfx8
Show newest version
package datadog.trace.api;

import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

import java.lang.annotation.Retention;
import java.lang.annotation.Target;

/** Set this annotation to a method so the dd-java-agent considers it for tracing. */
@Retention(RUNTIME)
@Target(METHOD)
public @interface Trace {

  /** The operation name to set. By default it takes the method's name */
  String operationName() default "";

  /** The resource name. By default it uses the same value as the operation name */
  String resourceName() default "";
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy