Help us shape the future of Go! Take the 2026 Go Developer Survey

transformprocessor

package
v1.300074.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 30, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

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

func WithErrorMode(mode string) Option

WithErrorMode sets the error mode for dynamic statements. Defaults to "propagate".

func WithLogContextStatements added in v1.300071.0

func WithLogContextStatements(statements []string) Option

WithLogContextStatements sets OTTL statements to execute in the "log" context for logs.

func WithLogResourceStatements added in v1.300071.0

func WithLogResourceStatements(statements []string) Option

WithLogResourceStatements sets OTTL statements to execute in the "resource" context for logs.

func WithLogScopeStatements added in v1.300071.0

func WithLogScopeStatements(statements []string) Option

WithLogScopeStatements sets OTTL statements to execute in the "scope" context for logs only.

func WithMetricResourceStatements added in v1.300071.0

func WithMetricResourceStatements(statements []string) Option

WithMetricResourceStatements sets OTTL statements to execute in the "resource" context for metrics.

func WithMetricScopeStatements added in v1.300071.0

func WithMetricScopeStatements(statements []string) Option

WithMetricScopeStatements sets OTTL statements to execute in the "scope" context for metrics only.

func WithScopeStatements added in v1.300070.0

func WithScopeStatements(statements []string) Option

WithScopeStatements sets OTTL statements to execute in the "scope" context for all signal types.

func WithTraceResourceStatements added in v1.300071.0

func WithTraceResourceStatements(statements []string) Option

WithTraceResourceStatements sets OTTL statements to execute in the "resource" context for traces.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL