Class DataDogOpenTracingSpanBuilderProvider
java.lang.Object
io.temporal.opentracing.internal.ActionTypeAndNameSpanBuilderProvider
io.temporal.opentracing.provider.DataDogOpenTracingSpanBuilderProvider
- All Implemented Interfaces:
SpanBuilderProvider
This implementation of
SpanBuilderProvider names and tags the OpenTracing spans in a way
that is compatible with DataDog's APM tooling.
Spans are named with the operation type default prefixes from SpanOperationType.getDefaultPrefix() (e.g. "StartActivity") and set a tag with key
"resource.name" and the value is the name of the activity or workflow or child workflow. See here
for the datadog standard tag names.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetSpanName(SpanCreationContext context) Uses just the operation type as the name, e.g.getSpanTags(SpanCreationContext context) Includes the default tags but also usesSpanCreationContext.getActionName()as a tag with the key "resource.name"Methods inherited from class io.temporal.opentracing.internal.ActionTypeAndNameSpanBuilderProvider
createSpanBuilder
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
DataDogOpenTracingSpanBuilderProvider
public DataDogOpenTracingSpanBuilderProvider()
-
-
Method Details
-
getSpanName
Uses just the operation type as the name, e.g. "StartActivity"- Overrides:
getSpanNamein classActionTypeAndNameSpanBuilderProvider- Parameters:
context- Span creation context- Returns:
- The span name
-
getSpanTags
Includes the default tags but also usesSpanCreationContext.getActionName()as a tag with the key "resource.name"- Overrides:
getSpanTagsin classActionTypeAndNameSpanBuilderProvider- Parameters:
context- The span creation context- Returns:
- The map of tags for the span
-