Skip to content

How to set service.name and have it show up in Jaeger? #1125

Answered by wxl374
ghost asked this question in Q&A
Discussion options

You must be logged in to vote
sdk::resource::ResourceAttributes attributes = {{"service.name", "my_service_name"}};
auto resource = sdk::resource::Resource::Create(attributes);
auto provider = nostd::shared_ptr<trace::TracerProvider>(new sdk::trace::TracerProvider(std::move(processor), resource));

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ThomsonTan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant