Documentation
¶
Index ¶
- func NewTranslatorWithName(name string, opts ...Option) common.ComponentTranslator
- type Option
- func WithErrorMode(mode string) Option
- func WithLogContextStatements(statements []string) Option
- func WithLogResourceStatements(statements []string) Option
- func WithLogScopeStatements(statements []string) Option
- func WithMetricResourceStatements(statements []string) Option
- func WithMetricScopeStatements(statements []string) Option
- func WithScopeStatements(statements []string) Option
- func WithTraceResourceStatements(statements []string) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTranslatorWithName ¶
func NewTranslatorWithName(name string, opts ...Option) common.ComponentTranslator
Types ¶
type Option ¶ added in v1.300069.0
type Option func(*translator)
func WithErrorMode ¶ added in v1.300070.0
WithErrorMode sets the error mode for dynamic statements. Defaults to "propagate".
func WithLogContextStatements ¶ added in v1.300071.0
WithLogContextStatements sets OTTL statements to execute in the "log" context for logs.
func WithLogResourceStatements ¶ added in v1.300071.0
WithLogResourceStatements sets OTTL statements to execute in the "resource" context for logs.
func WithLogScopeStatements ¶ added in v1.300071.0
WithLogScopeStatements sets OTTL statements to execute in the "scope" context for logs only.
func WithMetricResourceStatements ¶ added in v1.300071.0
WithMetricResourceStatements sets OTTL statements to execute in the "resource" context for metrics.
func WithMetricScopeStatements ¶ added in v1.300071.0
WithMetricScopeStatements sets OTTL statements to execute in the "scope" context for metrics only.
func WithScopeStatements ¶ added in v1.300070.0
WithScopeStatements sets OTTL statements to execute in the "scope" context for all signal types.
func WithTraceResourceStatements ¶ added in v1.300071.0
WithTraceResourceStatements sets OTTL statements to execute in the "resource" context for traces.