Versions in this module Expand all Collapse all v1 v1.67.1 Dec 18, 2024 v1.67.0 Dec 18, 2024 Changes in this version + const AttributesField + const BodyField + const DatapointValueField + const MetricNameField + const ResourceField + const SeverityEnumField + const SeverityNumberField + const SpanDurationField + const SpanKindField + const SpanStatusCodeField + const SpanStatusMessageField + const TimestampField + func NewOTTLDatapointStatement(statementStr string, set component.TelemetrySettings) (*ottl.Statement[ottldatapoint.TransformContext], error) + func NewOTTLLogRecordStatement(statementStr string, set component.TelemetrySettings) (*ottl.Statement[ottllog.TransformContext], error) + func NewOTTLMetricStatement(statementStr string, set component.TelemetrySettings) (*ottl.Statement[ottlmetric.TransformContext], error) + func NewOTTLSpanStatement(statementStr string, set component.TelemetrySettings) (*ottl.Statement[ottlspan.TransformContext], error) + type Datapoint = map[string]any + type DatapointResourceGroup struct + Datapoints []Datapoint + Resource map[string]any + func ConvertToDatapointResourceGroup(metrics pmetric.Metrics) []DatapointResourceGroup + type Expression struct + func CreateBoolExpression(str string) (*Expression, error) + func CreateExpression(str string, opts ...expr.Option) (*Expression, error) + func CreateValueExpression(str string) (*Expression, error) + func (e *Expression) Evaluate(env map[string]any) (any, error) + func (e *Expression) ExtractFloat(record Record) (float64, error) + func (e *Expression) ExtractInt(record Record) (int64, error) + func (e *Expression) Match(env map[string]any) (bool, error) + func (e *Expression) MatchRecord(record Record) bool + type ExpressionMap struct + func CreateExpressionMap(strMap map[string]string) (*ExpressionMap, error) + func (e *ExpressionMap) Extract(record Record) map[string]any + type OTTLAttributeMap struct + func MakeOTTLAttributeMap[T any](m map[string]string, set component.TelemetrySettings, ...) (*OTTLAttributeMap[T], error) + func (t OTTLAttributeMap[T]) ExtractAttributes(ctx context.Context, tCtx T) map[string]any + type OTTLCondition struct + func NewOTTLDatapointCondition(condition string, set component.TelemetrySettings) (*OTTLCondition[ottldatapoint.TransformContext], error) + func NewOTTLLogRecordCondition(condition string, set component.TelemetrySettings) (*OTTLCondition[ottllog.TransformContext], error) + func NewOTTLMetricCondition(condition string, set component.TelemetrySettings) (*OTTLCondition[ottlmetric.TransformContext], error) + func NewOTTLSpanCondition(condition string, set component.TelemetrySettings) (*OTTLCondition[ottlspan.TransformContext], error) + func (e OTTLCondition[T]) Match(ctx context.Context, tCtx T) (bool, error) + type OTTLExpression struct + func NewOTTLDatapointExpression(expression string, set component.TelemetrySettings) (*OTTLExpression[ottldatapoint.TransformContext], error) + func NewOTTLLogRecordExpression(expression string, set component.TelemetrySettings) (*OTTLExpression[ottllog.TransformContext], error) + func NewOTTLMetricExpression(expression string, set component.TelemetrySettings) (*OTTLExpression[ottlmetric.TransformContext], error) + func NewOTTLSpanExpression(expression string, set component.TelemetrySettings) (*OTTLExpression[ottlspan.TransformContext], error) + func (e OTTLExpression[T]) Execute(ctx context.Context, tCtx T) (any, error) + type Record = map[string]any + func ConvertToRecord(log plog.LogRecord, resource map[string]any) Record + func ConvertToRecords(logs plog.Logs) []Record + type ResourceGroup struct + Records []Record + Resource map[string]any + func ConvertToResourceGroups(logs plog.Logs) []ResourceGroup + type Span = map[string]any + type SpanResourceGroup struct + Resource map[string]any + Spans []Span + func ConvertToSpanResourceGroups(traces ptrace.Traces) []SpanResourceGroup