From bf3363cc35c77785f5e9963d1d3a767d15497bef Mon Sep 17 00:00:00 2001 From: Willie Abrams Date: Tue, 5 Mar 2024 12:07:04 -0600 Subject: [PATCH] I forgot to run format. --- sdk/src/resource/resource_detector.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sdk/src/resource/resource_detector.cc b/sdk/src/resource/resource_detector.cc index 6d74e5d3bb..161b825b83 100644 --- a/sdk/src/resource/resource_detector.cc +++ b/sdk/src/resource/resource_detector.cc @@ -15,14 +15,16 @@ namespace resource { const char *OTEL_RESOURCE_ATTRIBUTES = "OTEL_RESOURCE_ATTRIBUTES"; -const char *OTEL_SERVICE_NAME = "OTEL_SERVICE_NAME"; +const char *OTEL_SERVICE_NAME = "OTEL_SERVICE_NAME"; Resource OTELResourceDetector::Detect() noexcept { std::string attributes_str, service_name; - bool attributes_exists = opentelemetry::sdk::common::GetStringEnvironmentVariable(OTEL_RESOURCE_ATTRIBUTES, attributes_str); - bool service_name_exists = opentelemetry::sdk::common::GetStringEnvironmentVariable(OTEL_SERVICE_NAME, service_name); + bool attributes_exists = opentelemetry::sdk::common::GetStringEnvironmentVariable( + OTEL_RESOURCE_ATTRIBUTES, attributes_str); + bool service_name_exists = + opentelemetry::sdk::common::GetStringEnvironmentVariable(OTEL_SERVICE_NAME, service_name); if (!attributes_exists && !service_name_exists) {