From 9eecdd6886d85983269c6384a2361b465f7a8ba9 Mon Sep 17 00:00:00 2001 From: Wise-Wizard Date: Thu, 18 Jul 2024 00:59:11 +0530 Subject: [PATCH] Add resource attr Signed-off-by: Wise-Wizard --- cmd/jaeger/internal/all-in-one.yaml | 2 ++ cmd/jaeger/internal/command.go | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/cmd/jaeger/internal/all-in-one.yaml b/cmd/jaeger/internal/all-in-one.yaml index 2e1cd079d16..d2330d866ec 100644 --- a/cmd/jaeger/internal/all-in-one.yaml +++ b/cmd/jaeger/internal/all-in-one.yaml @@ -6,6 +6,8 @@ service: processors: [batch] exporters: [jaeger_storage_exporter] telemetry: + resource: + service.name: jaeger metrics: level: detailed traces: diff --git a/cmd/jaeger/internal/command.go b/cmd/jaeger/internal/command.go index ead1ab2a1f8..0ff7d689c7a 100644 --- a/cmd/jaeger/internal/command.go +++ b/cmd/jaeger/internal/command.go @@ -8,6 +8,7 @@ import ( "fmt" "log" + "github.com/jaegertracing/jaeger/pkg/version" "github.com/spf13/cobra" "go.opentelemetry.io/collector/component" "go.opentelemetry.io/collector/confmap" @@ -29,8 +30,7 @@ func Command() *cobra.Command { info := component.BuildInfo{ Command: "jaeger", Description: description, - // TODO: Set Version back to version.Get().String() once https://github.com/open-telemetry/opentelemetry-collector/issues/10644 is fixed - Version: "jaeger", + Version: version.Get().String(), } settings := otelcol.CollectorSettings{