Skip to content

Commit

Permalink
HPCC-31762 Jtrace reports HPCC build ver as resource attr
Browse files Browse the repository at this point in the history
Signed-off-by: Rodrigo Pastrana <[email protected]>
  • Loading branch information
rpastrana committed May 7, 2024
1 parent 7ff2de7 commit 912fc0a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion system/jlib/jtrace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 912fc0a

Please sign in to comment.