/
githubmirror
/
opentelemetry-collector-contrib
Обзор
Документация
Войти
/
githubmirror
/
opentelemetry-collector-contrib
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
processor/transformprocessor/internal/common/functions.go
19 строк
843 B
Tyler Helmuth
[pkg/ottl] Add StandardFuncs and StandardConverters to ottlfuncs (#23190)
08 июн 2023, 22:37
Не верифицирован
08 июн 2023, 22:37
8faa947
Код
Авторство
О чём код?
// Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 package common // import "github.com/open-telemetry/opentelemetry-collector-contrib/processor/transformprocessor/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]() }