From 912fc0a905510c691dd9b46dd438b43cd6b79444 Mon Sep 17 00:00:00 2001 From: Rodrigo Pastrana Date: Mon, 6 May 2024 20:58:25 -0400 Subject: [PATCH] HPCC-31762 Jtrace reports HPCC build ver as resource attr Signed-off-by: Rodrigo Pastrana --- system/jlib/jtrace.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/system/jlib/jtrace.cpp b/system/jlib/jtrace.cpp index a4a7a1310a5..d166ad06eaa 100644 --- a/system/jlib/jtrace.cpp +++ b/system/jlib/jtrace.cpp @@ -1330,7 +1330,11 @@ void CTraceManager::initTracerProviderAndGlobalInternals(const IPropertyTree * t processors.push_back(opentelemetry::sdk::trace::SimpleSpanProcessorFactory::Create(std::move(exporter))); } - opentelemetry::sdk::resource::ResourceAttributes resourceAtts = {{"service.name", moduleName.get()}}; + opentelemetry::sdk::resource::ResourceAttributes resourceAtts = + { + {"service.name", moduleName.get()}, + {"service.version", hpccBuildInfo.buildVersion} + }; auto jtraceResource = opentelemetry::sdk::resource::Resource::Create(resourceAtts); // Default is an always-on sampler.