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

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

There is a newer version: 1.42.2
Show newest version
package datadog.trace.api;

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

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

/**
 * Set this annotation to a test method so the dd-java-agent does not consider it for tracing. This
 * annotation must be only used in test framework instrumentation tests to avoid self-tracing of the
 * test itself.
 */
@Retention(RUNTIME)
@Target({TYPE, METHOD})
public @interface DisableTestTrace {

  /** The reason of why test trace has been disable for that test. */
  String reason() default "";
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy