metricsdecorator

package
v1.300045.1 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: MIT

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContextStatement

type ContextStatement struct {
	Context    string   `mapstructure:"context"`
	Statements []string `mapstructure:"statements"`
}

ContextStatement follows the yaml structure defined by otel's transform processor: https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/processor/transformprocessor/internal/common/config.go#L45-L48)

type Option added in v1.300041.0

type Option func(any)

func WithConfigKey added in v1.300041.0

func WithConfigKey(configKey string) Option

func WithIgnorePlugins added in v1.300041.0

func WithIgnorePlugins(ignorePlugins ...string) Option

func WithIndex added in v1.300041.0

func WithIndex(index int) Option

func WithName added in v1.300041.0

func WithName(name string) Option

type Translator added in v1.300041.0

type Translator interface {
	common.Translator[component.Config]
	// IsSet determines whether the config has the fields needed for the translator.
	IsSet(conf *confmap.Conf) bool
}

func NewTranslator

func NewTranslator(opts ...Option) Translator

Jump to

Keyboard shortcuts

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