Skip to content

Commit

Permalink
Merge pull request #18625 from rpastrana/HPCC-31762-JtraceBuildver
Browse files Browse the repository at this point in the history
HPCC-31762 Jtrace reports HPCC build ver as resource attr

Reviewed-by: Gavin Halliday <[email protected]>
Merged-by: Gavin Halliday <[email protected]>
  • Loading branch information
ghalliday authored May 9, 2024
2 parents 816fd65 + 912fc0a commit a006f6c
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 a006f6c

Please sign in to comment.