Documentation ¶
Index ¶
- func NewConditionSequence(conditions []*ottl.Condition[TransformContext], ...) ottl.ConditionSequence[TransformContext]
- func NewParser(functions map[string]ottl.Factory[TransformContext], ...) (ottl.Parser[TransformContext], error)
- func NewStatementSequence(statements []*ottl.Statement[TransformContext], ...) ottl.StatementSequence[TransformContext]
- type ConditionSequenceOption
- type Option
- type StatementSequenceOption
- type TransformContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewConditionSequence ¶ added in v0.91.0
func NewConditionSequence(conditions []*ottl.Condition[TransformContext], telemetrySettings component.TelemetrySettings, options ...ConditionSequenceOption) ottl.ConditionSequence[TransformContext]
func NewParser ¶
func NewParser(functions map[string]ottl.Factory[TransformContext], telemetrySettings component.TelemetrySettings, options ...Option) (ottl.Parser[TransformContext], error)
func NewStatementSequence ¶ added in v0.91.0
func NewStatementSequence(statements []*ottl.Statement[TransformContext], telemetrySettings component.TelemetrySettings, options ...StatementSequenceOption) ottl.StatementSequence[TransformContext]
Types ¶
type ConditionSequenceOption ¶ added in v0.91.0
type ConditionSequenceOption func(*ottl.ConditionSequence[TransformContext])
func WithConditionSequenceErrorMode ¶ added in v0.91.0
func WithConditionSequenceErrorMode(errorMode ottl.ErrorMode) ConditionSequenceOption
type Option ¶ added in v0.70.0
type Option func(*ottl.Parser[TransformContext])
type StatementSequenceOption ¶ added in v0.91.0
type StatementSequenceOption func(*ottl.StatementSequence[TransformContext])
func WithStatementSequenceErrorMode ¶ added in v0.91.0
func WithStatementSequenceErrorMode(errorMode ottl.ErrorMode) StatementSequenceOption
type TransformContext ¶
type TransformContext struct {
// contains filtered or unexported fields
}
func NewTransformContext ¶
func NewTransformContext(spanEvent ptrace.SpanEvent, span ptrace.Span, instrumentationScope pcommon.InstrumentationScope, resource pcommon.Resource) TransformContext
func (TransformContext) GetInstrumentationScope ¶
func (tCtx TransformContext) GetInstrumentationScope() pcommon.InstrumentationScope
func (TransformContext) GetResource ¶
func (tCtx TransformContext) GetResource() pcommon.Resource
func (TransformContext) GetSpan ¶
func (tCtx TransformContext) GetSpan() ptrace.Span
func (TransformContext) GetSpanEvent ¶
func (tCtx TransformContext) GetSpanEvent() ptrace.SpanEvent
Click to show internal directories.
Click to hide internal directories.