Discover Packages
github.com/jriguera/otel-helloworldprocessor/otelcol-dev/helloworldmetricsprocessor
package
module
Version:
v0.0.0-...-2f64c5c
Opens a new window with list of versions in this module.
Published: Mar 15, 2024
License: MIT
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
NewFactory returns a new factory for the HelloWorld processor.
This is a metrics only processor, alpha
func NewHelloWorldMetricsProcessor(logger *zap .Logger , cfg *Config ) *helloWorldMetricsProcessor
Constructor. This class implements component.Component
but such implementations are not really needed because we are using the processorhelper
package functions in the Factory.
type Config struct {
ExampleParameterAttr string `mapstructure:"attribute"`
}
Config represents the receiver config settings within the collector's config.yaml
Validate checks if the receiver configuration is valid
Source Files
¶
Click to show internal directories.
Click to hide internal directories.