Package datadog.trace.api
Annotation Type Trace
Set this annotation to a method so the dd-java-agent considers it for tracing.
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionbooleanSet whether to measure a trace.booleanSet whether to start a new trace.The operation name to set.The resource name.
-
Element Details
-
operationName
String operationNameThe operation name to set. By default it takes the method's name- Default:
""
-
resourceName
String resourceNameThe resource name. By default it uses the same value as the operation name- Default:
""
-
measured
boolean measuredSet whether to measure a trace. By default traces are not measured.- Default:
false
-
noParent
boolean noParentSet whether to start a new trace. By default it continues the current trace.- Default:
false
-