From 91034de074a8619654318126d793e7243bff59ff Mon Sep 17 00:00:00 2001 From: santosh Date: Mon, 25 Jan 2021 18:19:11 +0530 Subject: [PATCH] #2047 - Fix error in templatizer/main.go - Pass textTemplateBuilder to GetMappingAsString Signed-off-by: santosh --- cmd/templatizer/main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/templatizer/main.go b/cmd/templatizer/main.go index 87bf5017395a..770e59a70a6c 100644 --- a/cmd/templatizer/main.go +++ b/cmd/templatizer/main.go @@ -16,6 +16,7 @@ package main import ( "fmt" + "github.com/jaegertracing/jaeger/pkg/es" "os" "github.com/spf13/cobra" @@ -40,7 +41,7 @@ func main() { logger.Fatal("please pass either 'jaeger-service' or 'jaeger-span' as argument") } - parsedMapping, err := renderer.GetMappingAsString(&options) + parsedMapping, err := renderer.GetMappingAsString(es.TextTemplateBuilder{},&options) if err != nil { logger.Fatal(err.Error()) }