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
20 lines
827 B
Go
20 lines
827 B
Go
// Copyright The OpenTelemetry Authors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package common // import "github.com/hanzoai/otel-collector/processor/o11ytransformprocessor/internal/common"
|
|
|
|
import (
|
|
"github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl"
|
|
"github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl/contexts/ottlresource"
|
|
"github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl/contexts/ottlscope"
|
|
"github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl/ottlfuncs"
|
|
)
|
|
|
|
func ResourceFunctions() map[string]ottl.Factory[*ottlresource.TransformContext] {
|
|
return ottlfuncs.StandardFuncs[*ottlresource.TransformContext]()
|
|
}
|
|
|
|
func ScopeFunctions() map[string]ottl.Factory[*ottlscope.TransformContext] {
|
|
return ottlfuncs.StandardFuncs[*ottlscope.TransformContext]()
|
|
}
|