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
22 lines
893 B
Go
22 lines
893 B
Go
// Copyright The OpenTelemetry Authors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package traces // import "github.com/hanzoai/otel-collector/processor/o11ytransformprocessor/internal/traces"
|
|
|
|
import (
|
|
"github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl"
|
|
"github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl/contexts/ottlspan"
|
|
"github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl/contexts/ottlspanevent"
|
|
"github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl/ottlfuncs"
|
|
)
|
|
|
|
func SpanFunctions() map[string]ottl.Factory[*ottlspan.TransformContext] {
|
|
// No trace-only functions yet.
|
|
return ottlfuncs.StandardFuncs[*ottlspan.TransformContext]()
|
|
}
|
|
|
|
func SpanEventFunctions() map[string]ottl.Factory[*ottlspanevent.TransformContext] {
|
|
// No trace-only functions yet.
|
|
return ottlfuncs.StandardFuncs[*ottlspanevent.TransformContext]()
|
|
}
|