mirror of
https://github.com/hanzoai/otel-collector.git
synced 2026-10-30 18:26:25 +00:00
- Go module: github.com/SigNoz/signoz-otel-collector → github.com/hanzoai/otel-collector - All signoz-prefixed packages → o11y-prefixed - Docker: signoz/* → ghcr.io/hanzoai/otel-collector - ClickHouse exporter → Hanzo Datastore - Env vars: SIGNOZ_* → HANZO_* - Directory renames for all processor/receiver/exporter packages
19 lines
698 B
Go
19 lines
698 B
Go
// Stanza operators registry dedicated to O11y logs pipelines
|
|
|
|
package o11ylogspipelinestanzaoperator
|
|
|
|
import "github.com/open-telemetry/opentelemetry-collector-contrib/pkg/stanza/operator"
|
|
|
|
var O11yStanzaOperatorsRegistry = operator.NewRegistry()
|
|
|
|
// Register will register an operator in the default registry
|
|
func Register(operatorType string, newBuilder func() operator.Builder) {
|
|
O11yStanzaOperatorsRegistry.Register(operatorType, newBuilder)
|
|
}
|
|
|
|
// Lookup looks up a given operator type.Its second return value will
|
|
// be false if no builder is registered for that type.
|
|
func Lookup(configType string) (func() operator.Builder, bool) {
|
|
return O11yStanzaOperatorsRegistry.Lookup(configType)
|
|
}
|