resolver

package
v1.300048.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2024 License: MIT 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+)$`

Variables

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

Functions

func NewAttributesResolver

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

create a new attributes resolver

Types

type Deleter

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

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 interface{})

Jump to

Keyboard shortcuts

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