Documentation
¶
Overview ¶
Package resourceprocessor 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 ¶ added in v0.6.0
func NewFactory() component.ProcessorFactory
NewFactory returns a new factory for the Resource processor.
Types ¶
type Config ¶
type Config struct { configmodels.ProcessorSettings `mapstructure:",squash"` // AttributesActions specifies the list of actions to be applied on resource attributes. // The set of actions are {INSERT, UPDATE, UPSERT, DELETE, HASH, EXTRACT}. AttributesActions []attraction.ActionKeyValue `mapstructure:"attributes"` // ResourceType field is deprecated. Set "opencensus.type" key in "attributes.upsert" map instead. ResourceType string `mapstructure:"type"` // Labels field is deprecated. Use "attributes.upsert" instead. Labels map[string]string `mapstructure:"labels"` }
Config defines configuration for Resource processor.
Click to show internal directories.
Click to hide internal directories.