From fb9660aaa87511ad9966dbc96f26090d503556b6 Mon Sep 17 00:00:00 2001 From: Dominik Rosiek Date: Fri, 5 Mar 2021 15:41:22 +0100 Subject: [PATCH] internal: stanza: add transformers required by k8s container parser Signed-off-by: Dominik Rosiek --- internal/stanza/register.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/internal/stanza/register.go b/internal/stanza/register.go index e153a3586959..0edf02c4637e 100644 --- a/internal/stanza/register.go +++ b/internal/stanza/register.go @@ -20,4 +20,9 @@ import ( _ "github.com/open-telemetry/opentelemetry-log-collection/operator/builtin/parser/regex" _ "github.com/open-telemetry/opentelemetry-log-collection/operator/builtin/parser/severity" _ "github.com/open-telemetry/opentelemetry-log-collection/operator/builtin/parser/time" + + // Register transformers for stanza-based log receivers + _ "github.com/open-telemetry/opentelemetry-log-collection/operator/builtin/transformer/metadata" + _ "github.com/open-telemetry/opentelemetry-log-collection/operator/builtin/transformer/restructure" + _ "github.com/open-telemetry/opentelemetry-log-collection/operator/builtin/transformer/router" )