Documentation ¶
Index ¶
- type ResourceAttributeConfig
- type ResourceAttributesConfig
- type ResourceBuilder
- func (rb *ResourceBuilder) Emit() pcommon.Resource
- func (rb *ResourceBuilder) SetAwsLogGroupNames(val []any)
- func (rb *ResourceBuilder) SetAwsLogStreamNames(val []any)
- func (rb *ResourceBuilder) SetCloudPlatform(val string)
- func (rb *ResourceBuilder) SetCloudProvider(val string)
- func (rb *ResourceBuilder) SetCloudRegion(val string)
- func (rb *ResourceBuilder) SetFaasInstance(val string)
- func (rb *ResourceBuilder) SetFaasMaxMemory(val string)
- func (rb *ResourceBuilder) SetFaasName(val string)
- func (rb *ResourceBuilder) SetFaasVersion(val string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ResourceAttributeConfig ¶
type ResourceAttributeConfig struct { Enabled bool `mapstructure:"enabled"` // contains filtered or unexported fields }
ResourceAttributeConfig provides common config for a particular resource attribute.
type ResourceAttributesConfig ¶
type ResourceAttributesConfig struct { AwsLogGroupNames ResourceAttributeConfig `mapstructure:"aws.log.group.names"` AwsLogStreamNames ResourceAttributeConfig `mapstructure:"aws.log.stream.names"` CloudPlatform ResourceAttributeConfig `mapstructure:"cloud.platform"` CloudProvider ResourceAttributeConfig `mapstructure:"cloud.provider"` CloudRegion ResourceAttributeConfig `mapstructure:"cloud.region"` FaasInstance ResourceAttributeConfig `mapstructure:"faas.instance"` FaasMaxMemory ResourceAttributeConfig `mapstructure:"faas.max_memory"` FaasName ResourceAttributeConfig `mapstructure:"faas.name"` FaasVersion ResourceAttributeConfig `mapstructure:"faas.version"` }
ResourceAttributesConfig provides config for resourcedetectionprocessor/lambda resource attributes.
func DefaultResourceAttributesConfig ¶
func DefaultResourceAttributesConfig() ResourceAttributesConfig
type ResourceBuilder ¶ added in v0.82.0
type ResourceBuilder struct {
// contains filtered or unexported fields
}
ResourceBuilder is a helper struct to build resources predefined in metadata.yaml. The ResourceBuilder is not thread-safe and must not to be used in multiple goroutines.
func NewResourceBuilder ¶ added in v0.82.0
func NewResourceBuilder(rac ResourceAttributesConfig) *ResourceBuilder
NewResourceBuilder creates a new ResourceBuilder. This method should be called on the start of the application.
func (*ResourceBuilder) Emit ¶ added in v0.82.0
func (rb *ResourceBuilder) Emit() pcommon.Resource
Emit returns the built resource and resets the internal builder state.
func (*ResourceBuilder) SetAwsLogGroupNames ¶ added in v0.82.0
func (rb *ResourceBuilder) SetAwsLogGroupNames(val []any)
SetAwsLogGroupNames sets provided value as "aws.log.group.names" attribute.
func (*ResourceBuilder) SetAwsLogStreamNames ¶ added in v0.82.0
func (rb *ResourceBuilder) SetAwsLogStreamNames(val []any)
SetAwsLogStreamNames sets provided value as "aws.log.stream.names" attribute.
func (*ResourceBuilder) SetCloudPlatform ¶ added in v0.82.0
func (rb *ResourceBuilder) SetCloudPlatform(val string)
SetCloudPlatform sets provided value as "cloud.platform" attribute.
func (*ResourceBuilder) SetCloudProvider ¶ added in v0.82.0
func (rb *ResourceBuilder) SetCloudProvider(val string)
SetCloudProvider sets provided value as "cloud.provider" attribute.
func (*ResourceBuilder) SetCloudRegion ¶ added in v0.82.0
func (rb *ResourceBuilder) SetCloudRegion(val string)
SetCloudRegion sets provided value as "cloud.region" attribute.
func (*ResourceBuilder) SetFaasInstance ¶ added in v0.82.0
func (rb *ResourceBuilder) SetFaasInstance(val string)
SetFaasInstance sets provided value as "faas.instance" attribute.
func (*ResourceBuilder) SetFaasMaxMemory ¶ added in v0.82.0
func (rb *ResourceBuilder) SetFaasMaxMemory(val string)
SetFaasMaxMemory sets provided value as "faas.max_memory" attribute.
func (*ResourceBuilder) SetFaasName ¶ added in v0.82.0
func (rb *ResourceBuilder) SetFaasName(val string)
SetFaasName sets provided value as "faas.name" attribute.
func (*ResourceBuilder) SetFaasVersion ¶ added in v0.82.0
func (rb *ResourceBuilder) SetFaasVersion(val string)
SetFaasVersion sets provided value as "faas.version" attribute.