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 `river:"resource_attributes,block,optional"`
}
func (*Config) SetToDefault ¶
func (args *Config) SetToDefault()
SetToDefault implements river.Defaulter.
type ResourceAttributesConfig ¶
type ResourceAttributesConfig struct { AwsLogGroupNames rac.ResourceAttributeConfig `river:"aws.log.group.names,block,optional"` AwsLogStreamNames rac.ResourceAttributeConfig `river:"aws.log.stream.names,block,optional"` CloudPlatform rac.ResourceAttributeConfig `river:"cloud.platform,block,optional"` CloudProvider rac.ResourceAttributeConfig `river:"cloud.provider,block,optional"` CloudRegion rac.ResourceAttributeConfig `river:"cloud.region,block,optional"` FaasInstance rac.ResourceAttributeConfig `river:"faas.instance,block,optional"` FaasMaxMemory rac.ResourceAttributeConfig `river:"faas.max_memory,block,optional"` FaasName rac.ResourceAttributeConfig `river:"faas.name,block,optional"` FaasVersion rac.ResourceAttributeConfig `river:"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.