diff --git a/service/OneService.cpp b/service/OneService.cpp index 8dc87d012..d26bb795e 100644 --- a/service/OneService.cpp +++ b/service/OneService.cpp @@ -1080,12 +1080,6 @@ class OneServiceImpl : public OneService { versionString << ZEROTIER_ONE_VERSION_MAJOR << "." << ZEROTIER_ONE_VERSION_MINOR << "." << ZEROTIER_ONE_VERSION_REVISION; 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 recvd_attributes = resource.GetAttributes().GetAttributes(); - // If service.name is not set, we set it to "zerotier-one" - if (recvd_attributes.find("service.name") != recvd_attributes.end()) { - resource_attributes["service.name"] = "zerotier-one"; - resource = sdkresource::Resource::Create(resource_attributes); - } auto sampler = std::unique_ptr(new sdktrace::TraceIdRatioBasedSampler(_exporterSampleRate)); auto tracer_context = std::make_unique(std::move(processors), resource, std::move(sampler));