mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-08-02 15:02:50 +02:00
don't specify service.name so we can override it
This commit is contained in:
parent
d8272b7370
commit
b3da8d9aa1
1 changed files with 1 additions and 4 deletions
|
@ -1077,10 +1077,7 @@ class OneServiceImpl : public OneService {
|
|||
char buf[256];
|
||||
auto versionString = std::stringstream();
|
||||
versionString << ZEROTIER_ONE_VERSION_MAJOR << "." << ZEROTIER_ONE_VERSION_MINOR << "." << ZEROTIER_ONE_VERSION_REVISION;
|
||||
auto resource_attributes = sdkresource::ResourceAttributes { { "service.name", "zerotier-one" },
|
||||
{ "service.version", versionString.str() },
|
||||
{ "service.node_id", _node->identity().address().toString(buf) },
|
||||
{ "service.namespace", "com.zerotier.zerotier-one" } };
|
||||
auto resource_attributes = sdkresource::ResourceAttributes { { "service.version", versionString.str() }, { "service.node_id", _node->identity().address().toString(buf) }, { "service.namespace", "com.zerotier.zerotier-one" } };
|
||||
|
||||
auto resource = sdkresource::Resource::Create(resource_attributes);
|
||||
auto sampler = std::unique_ptr<sdktrace::Sampler>(new sdktrace::TraceIdRatioBasedSampler(_exporterSampleRate));
|
||||
|
|
Loading…
Add table
Reference in a new issue