Documentation ¶
Overview ¶
Copyright The OpenTelemetry Authors SPDX-License-Identifier: Apache-2.0
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { helper.TransformerConfig `mapstructure:",squash"` Field entry.Field `mapstructure:"field"` Keys []string `mapstructure:"keys"` }
Config is the configuration of a assign_keys operator
func NewConfig ¶
func NewConfig() *Config
NewConfig creates a new assign_keys operator config with default values
func NewConfigWithID ¶
NewConfigWithID creates a new assign_keys operator config with default values
type Transformer ¶
type Transformer struct { helper.TransformerOperator Field entry.Field Keys []string }
Transformer transforms a list in the entry field into a map. Each value is assigned a key from configuration keys
func (*Transformer) AssignKeys ¶
func (p *Transformer) AssignKeys(keys []string, values []any) map[string]any
Click to show internal directories.
Click to hide internal directories.