Documentation ¶
Index ¶
Constants ¶
View Source
const Name = "lambda"
Variables ¶
View Source
var DefaultArguments = Config{ ResourceAttributes: ResourceAttributesConfig{ AwsLogGroupNames: rac.ResourceAttributeConfig{Enabled: true}, AwsLogStreamNames: rac.ResourceAttributeConfig{Enabled: true}, CloudPlatform: rac.ResourceAttributeConfig{Enabled: true}, CloudProvider: rac.ResourceAttributeConfig{Enabled: true}, CloudRegion: rac.ResourceAttributeConfig{Enabled: true}, FaasInstance: rac.ResourceAttributeConfig{Enabled: true}, FaasMaxMemory: rac.ResourceAttributeConfig{Enabled: true}, FaasName: rac.ResourceAttributeConfig{Enabled: true}, FaasVersion: rac.ResourceAttributeConfig{Enabled: true}, }, }
DefaultArguments holds default settings for Config.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
ResourceAttributes ResourceAttributesConfig `alloy:"resource_attributes,block,optional"`
}
func (*Config) SetToDefault ¶
func (args *Config) SetToDefault()
SetToDefault implements syntax.Defaulter.
type ResourceAttributesConfig ¶
type ResourceAttributesConfig struct { AwsLogGroupNames rac.ResourceAttributeConfig `alloy:"aws.log.group.names,block,optional"` AwsLogStreamNames rac.ResourceAttributeConfig `alloy:"aws.log.stream.names,block,optional"` CloudPlatform rac.ResourceAttributeConfig `alloy:"cloud.platform,block,optional"` CloudProvider rac.ResourceAttributeConfig `alloy:"cloud.provider,block,optional"` CloudRegion rac.ResourceAttributeConfig `alloy:"cloud.region,block,optional"` FaasInstance rac.ResourceAttributeConfig `alloy:"faas.instance,block,optional"` FaasMaxMemory rac.ResourceAttributeConfig `alloy:"faas.max_memory,block,optional"` FaasName rac.ResourceAttributeConfig `alloy:"faas.name,block,optional"` FaasVersion rac.ResourceAttributeConfig `alloy:"faas.version,block,optional"` }
ResourceAttributesConfig provides config for lambda resource attributes.
func (ResourceAttributesConfig) Convert ¶
func (r ResourceAttributesConfig) Convert() map[string]interface{}
Click to show internal directories.
Click to hide internal directories.