Skip to content

Commit

Permalink
Remove service_name, per configuration PR 68
Browse files Browse the repository at this point in the history
  • Loading branch information
marcalff committed Mar 4, 2024
1 parent 91fccb3 commit ecf6f1c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ namespace configuration
class AttributesConfiguration
{
public:
std::string service_name;
std::map<std::string, std::string> kv_map;
};

Expand Down
12 changes: 3 additions & 9 deletions sdk/src/configuration/configuration_factory.cc
Original file line number Diff line number Diff line change
Expand Up @@ -752,15 +752,9 @@ static std::unique_ptr<AttributesConfiguration> ParseAttributesConfiguration(

OTEL_INTERNAL_LOG_DEBUG(
"ParseAttributesConfiguration() name = " << name << ", value = " << string_value);
if (name == "service.name")
{
model->service_name = name;
}
else
{
std::pair<std::string, std::string> entry(name, string_value);
model->kv_map.insert(entry);
}

std::pair<std::string, std::string> entry(name, string_value);
model->kv_map.insert(entry);
}

return model;
Expand Down

0 comments on commit ecf6f1c

Please sign in to comment.