Documentation ¶
Index ¶
- Variables
- func GetMapValue[K any](ctx context.Context, tCtx K, m pcommon.Map, keys []ottl.Key[K]) (any, error)
- func GetSliceValue[K any](ctx context.Context, tCtx K, s pcommon.Slice, keys []ottl.Key[K]) (any, error)
- func MetricPathGetSetter[K MetricContext](path ottl.Path[K]) (ottl.GetSetter[K], error)
- func ParseSpanID(spanIDStr string) (pcommon.SpanID, error)
- func ParseTraceID(traceIDStr string) (pcommon.TraceID, error)
- func ResourcePathGetSetter[K ResourceContext](path ottl.Path[K]) (ottl.GetSetter[K], error)
- func ScopePathGetSetter[K InstrumentationScopeContext](path ottl.Path[K]) (ottl.GetSetter[K], error)
- func SetMapValue[K any](ctx context.Context, tCtx K, m pcommon.Map, keys []ottl.Key[K], val any) error
- func SetSliceValue[K any](ctx context.Context, tCtx K, s pcommon.Slice, keys []ottl.Key[K], val any) error
- func SetValue(value pcommon.Value, val any) error
- func SpanPathGetSetter[K SpanContext](path ottl.Path[K]) (ottl.GetSetter[K], error)
- type InstrumentationScopeContext
- type MetricContext
- type ResourceContext
- type SpanContext
- type TestKey
- type TestPath
Constants ¶
This section is empty.
Variables ¶
View Source
var MetricSymbolTable = map[ottl.EnumSymbol]ottl.Enum{ "AGGREGATION_TEMPORALITY_UNSPECIFIED": ottl.Enum(pmetric.AggregationTemporalityUnspecified), "AGGREGATION_TEMPORALITY_DELTA": ottl.Enum(pmetric.AggregationTemporalityDelta), "AGGREGATION_TEMPORALITY_CUMULATIVE": ottl.Enum(pmetric.AggregationTemporalityCumulative), "METRIC_DATA_TYPE_NONE": ottl.Enum(pmetric.MetricTypeEmpty), "METRIC_DATA_TYPE_GAUGE": ottl.Enum(pmetric.MetricTypeGauge), "METRIC_DATA_TYPE_SUM": ottl.Enum(pmetric.MetricTypeSum), "METRIC_DATA_TYPE_HISTOGRAM": ottl.Enum(pmetric.MetricTypeHistogram), "METRIC_DATA_TYPE_EXPONENTIAL_HISTOGRAM": ottl.Enum(pmetric.MetricTypeExponentialHistogram), "METRIC_DATA_TYPE_SUMMARY": ottl.Enum(pmetric.MetricTypeSummary), }
View Source
var SpanSymbolTable = map[ottl.EnumSymbol]ottl.Enum{ "SPAN_KIND_UNSPECIFIED": ottl.Enum(ptrace.SpanKindUnspecified), "SPAN_KIND_INTERNAL": ottl.Enum(ptrace.SpanKindInternal), "SPAN_KIND_SERVER": ottl.Enum(ptrace.SpanKindServer), "SPAN_KIND_CLIENT": ottl.Enum(ptrace.SpanKindClient), "SPAN_KIND_PRODUCER": ottl.Enum(ptrace.SpanKindProducer), "SPAN_KIND_CONSUMER": ottl.Enum(ptrace.SpanKindConsumer), "STATUS_CODE_UNSET": ottl.Enum(ptrace.StatusCodeUnset), "STATUS_CODE_OK": ottl.Enum(ptrace.StatusCodeOk), "STATUS_CODE_ERROR": ottl.Enum(ptrace.StatusCodeError), }
Functions ¶
func GetMapValue ¶ added in v0.77.0
func GetSliceValue ¶ added in v0.79.0
func MetricPathGetSetter ¶
func ResourcePathGetSetter ¶
func ScopePathGetSetter ¶
func SetMapValue ¶ added in v0.77.0
func SetSliceValue ¶ added in v0.79.0
func SpanPathGetSetter ¶
Types ¶
type InstrumentationScopeContext ¶
type InstrumentationScopeContext interface {
GetInstrumentationScope() pcommon.InstrumentationScope
}
type MetricContext ¶
type ResourceContext ¶
type SpanContext ¶
Click to show internal directories.
Click to hide internal directories.