Documentation ¶
Overview ¶
package resourcedetectionprocessor implements a processor for specifying resource labels to be added to OpenCensus trace data and metrics data.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFactory ¶
func NewFactory() component.ProcessorFactory
NewFactory creates a new factory for ResourceDetection processor.
Types ¶
type Config ¶
type Config struct { config.ProcessorSettings `mapstructure:",squash"` // squash ensures fields are correctly decoded in embedded struct // Detectors is an ordered list of named detectors that should be // run to attempt to detect resource information. Detectors []string `mapstructure:"detectors"` // Timeout specifies the maximum amount of time that we will wait // before assuming a detector has failed. Defaults to 5s. Timeout time.Duration `mapstructure:"timeout"` // Override indicates whether any existing resource attributes // should be overridden or preserved. Defaults to true. Override bool `mapstructure:"override"` // DetectorConfig is a list of settings specific to all detectors DetectorConfig DetectorConfig `mapstructure:",squash"` }
Config defines configuration for Resource processor.
type DetectorConfig ¶ added in v0.18.0
type DetectorConfig struct { // EC2Config contains user-specified configurations for the EC2 detector EC2Config ec2.Config `mapstructure:"ec2"` // SystemConfig contains user-specified configurations for the System detector SystemConfig system.Config `mapstructure:"system"` }
DetectorConfig contains user-specified configurations unique to all individual detectors
func (*DetectorConfig) GetConfigFromType ¶ added in v0.18.0
func (d *DetectorConfig) GetConfigFromType(detectorType internal.DetectorType) internal.DetectorConfig
Directories ¶
Path | Synopsis |
---|---|
Package internal contains an interface for detecting resource information, and a provider to merge the resources returned by a slice of custom detectors.
|
Package internal contains an interface for detecting resource information, and a provider to merge the resources returned by a slice of custom detectors. |
env
Package env provides a detector that loads resource information from the OTEL_RESOURCE environment variable.
|
Package env provides a detector that loads resource information from the OTEL_RESOURCE environment variable. |
gcp/gce
Package gce provides a detector that loads resource information from the GCE metatdata
|
Package gce provides a detector that loads resource information from the GCE metatdata |
Click to show internal directories.
Click to hide internal directories.