Documentation
¶
Overview ¶
Package traceutil provides utilities for converting OTel semantics to DD semantics.
The implementations live in pkg/trace/transform; this package re-exports them so that existing callers (e.g. pkg/trace/otel/stats) continue to work without taking a direct dependency on the parent pkg/trace module.
Index ¶
- Constants
- Variables
- func GetOTelOperationNameV2WithAccessor[A semantics.Accessor](span ptrace.Span, accessor A) string
- func GetOTelResourceV2WithAccessor[A semantics.Accessor](span ptrace.Span, accessor A) string
- func GetOTelServiceWithAccessor[A semantics.Accessor](accessor A, normalize bool) string
- func GetOTelSpanTypeWithAccessor[A semantics.Accessor](span ptrace.Span, accessor A) string
- func LookupSemanticStringWithAccessor[A semantics.Accessor](accessor A, concept semantics.Concept, shouldNormalize bool) string
Constants ¶
const DefaultOTLPServiceName = transform.DefaultOTLPServiceName
DefaultOTLPServiceName is the default service name for OTel spans when no service name is found in the resource attributes.
Variables ¶
var GetOTelAttrFromEitherMap = transform.GetOTelAttrFromEitherMap
GetOTelAttrFromEitherMap re-exports transform.GetOTelAttrFromEitherMap.
var GetOTelAttrVal = transform.GetOTelAttrVal
GetOTelAttrVal re-exports transform.GetOTelAttrVal.
var GetOTelAttrValInResAndSpanAttrs = transform.GetOTelAttrValInResAndSpanAttrs
GetOTelAttrValInResAndSpanAttrs re-exports transform.GetOTelAttrValInResAndSpanAttrs.
var GetOTelContainerTags = transform.GetOTelContainerTags
GetOTelContainerTags re-exports transform.GetOTelContainerTags.
var GetOTelOperationNameV1 = transform.GetOTelOperationNameV1
GetOTelOperationNameV1 re-exports transform.GetOTelOperationNameV1.
var GetOTelOperationNameV2 = transform.GetOTelOperationNameV2
GetOTelOperationNameV2 re-exports transform.GetOTelOperationNameV2.
var GetOTelResourceV1 = transform.GetOTelResourceV1
GetOTelResourceV1 re-exports transform.GetOTelResourceV1.
var GetOTelResourceV2 = transform.GetOTelResourceV2
GetOTelResourceV2 re-exports transform.GetOTelResourceV2.
var GetOTelService = transform.GetOTelService
GetOTelService re-exports transform.GetOTelService.
var GetOTelSpanType = transform.GetOTelSpanType
GetOTelSpanType re-exports transform.GetOTelSpanType.
var GetTopLevelOTelSpans = transform.GetTopLevelOTelSpans
GetTopLevelOTelSpans re-exports transform.GetTopLevelOTelSpans.
var IndexOTelSpans = transform.IndexOTelSpans
IndexOTelSpans re-exports transform.IndexOTelSpans.
var LookupSemanticFloat64 = transform.LookupSemanticFloat64
LookupSemanticFloat64 re-exports transform.LookupSemanticFloat64.
var LookupSemanticInt64 = transform.LookupSemanticInt64
LookupSemanticInt64 re-exports transform.LookupSemanticInt64.
var LookupSemanticString = transform.LookupSemanticString
LookupSemanticString re-exports transform.LookupSemanticString.
var LookupSemanticStringFromDualMaps = transform.LookupSemanticStringFromDualMaps
LookupSemanticStringFromDualMaps re-exports transform.LookupSemanticStringFromDualMaps.
var OTelSpanIDToUint64 = transform.OTelSpanIDToUint64
OTelSpanIDToUint64 re-exports transform.OTelSpanIDToUint64.
var OTelSpanKindName = transform.OTelSpanKindName
OTelSpanKindName re-exports transform.OTelSpanKindName.
var OTelTraceIDToUint64 = transform.OTelTraceIDToUint64
OTelTraceIDToUint64 re-exports transform.OTelTraceIDToUint64.
var ( // SignalTypeSet is the OTel attribute set for traces. SignalTypeSet = attribute.NewSet(attribute.String("signal", "traces")) )
Re-exported variables.
var SpanKind2Type = transform.SpanKind2Type
SpanKind2Type re-exports transform.SpanKind2Type.
Functions ¶
func GetOTelOperationNameV2WithAccessor ¶ added in v0.78.0
GetOTelOperationNameV2WithAccessor wraps transform.GetOTelOperationNameV2WithAccessor.
func GetOTelResourceV2WithAccessor ¶ added in v0.78.0
GetOTelResourceV2WithAccessor wraps transform.GetOTelResourceV2WithAccessor.
func GetOTelServiceWithAccessor ¶ added in v0.78.0
GetOTelServiceWithAccessor wraps transform.GetOTelServiceWithAccessor.
func GetOTelSpanTypeWithAccessor ¶ added in v0.78.0
GetOTelSpanTypeWithAccessor wraps transform.GetOTelSpanTypeWithAccessor.
Types ¶
This section is empty.