resolver

package
v0.113.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AttributeEnvironmentDefault = "default"

	AttributePlatformGeneric = "Generic"
	AttributePlatformEC2     = "AWS::EC2"
	AttributePlatformEKS     = "AWS::EKS"
	AttributePlatformECS     = "AWS::ECS"
	AttributePlatformK8S     = "K8s"
)
View Source
const IP_PORT_PATTERN = `^(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}):(\d+)$` //nolint: revive

Variables

DefaultInheritedAttributes is an allow-list that also renames attributes from the resource detection processor

Functions

This section is empty.

Types

type AttributesResolver

type AttributesResolver struct {
	// contains filtered or unexported fields
}

func NewAttributesResolver

func NewAttributesResolver(resolvers []appsignalsconfig.Resolver, logger *zap.Logger) *AttributesResolver

create a new attributes resolver

func (*AttributesResolver) Process

func (r *AttributesResolver) Process(attributes, resourceAttributes pcommon.Map, _ bool) error

Process the attributes

func (*AttributesResolver) Stop

func (r *AttributesResolver) Stop(ctx context.Context) error

type Deleter

type Deleter interface {
	DeleteWithDelay(m *sync.Map, key any)
}

Deleter represents a type that can delete a key from a map after a certain delay.

type TimedDeleter

type TimedDeleter struct {
	Delay time.Duration
}

TimedDeleter deletes a key after a specified delay.

func (*TimedDeleter) DeleteWithDelay

func (td *TimedDeleter) DeleteWithDelay(m *sync.Map, key any)

Jump to

Keyboard shortcuts

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