Documentation ¶
Index ¶
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 { CloudPlatform ResourceAttributeConfig `mapstructure:"cloud.platform"` CloudProvider ResourceAttributeConfig `mapstructure:"cloud.provider"` K8sClusterName ResourceAttributeConfig `mapstructure:"k8s.cluster.name"` }
ResourceAttributesConfig provides config for resourcedetectionprocessor/eks 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) 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) SetK8sClusterName ¶ added in v0.90.0
func (rb *ResourceBuilder) SetK8sClusterName(val string)
SetK8sClusterName sets provided value as "k8s.cluster.name" attribute.