package
1.15.0
Repository: https://github.com/elastic/apm-agent-go.git
Documentation: pkg.go.dev

# Functions

ParseBoolEnv gets the value of the environment variable envKey and, if set, parses it as a boolean.
ParseDuration parses s as a duration, accepting a subset of the syntax supported by time.ParseDuration.
ParseDurationEnv gets the value of the environment variable envKey and, if set, parses it as a duration.
ParseDurationEnvOptions gets the value of the environment variable envKey and, if set, parses it as a duration.
ParseDurationOptions parses s as a duration, accepting a subset of the syntax supported by time.ParseDuration.
ParseList parses s as a list of strings, separated by sep, and with whitespace trimmed from the list items, omitting empty items.
ParseListEnv gets the value of the environment variable envKey and, if set, parses it as a list separated by sep.
ParseSize parses s as a size, in bytes.
ParseSizeEnv gets the value of the environment variable envKey and, if set, parses it as a size.
ParseWildcardPattern parses p as a wildcard pattern, returning a wildcard.Matcher.
ParseWildcardPatterns parses s as a comma-separated list of wildcard patterns, and returns wildcard.Matchers for each.
ParseWildcardPatternsEnv gets the value of the environment variable envKey and, if set, parses it as a list of wildcard patterns.

# Constants

Common power-of-two sizes.
Common power-of-two sizes.
Common power-of-two sizes.
Common power-of-two sizes.

# Structs

DurationOptions can be used to specify the minimum accepted duration unit for ParseDurationOptions.

# Type aliases

Size represents a size in bytes.