Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Mateusz Rzeszutek committed Sep 13, 2022
1 parent b69dfe3 commit 991e8f2
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ public Resource createResource(ConfigProperties config) {

@Override
public boolean shouldApply(ConfigProperties config, Resource resource) {
// we're skipping this provider if the service name was manually set by the user -- no need to
// waste time trying to compute the service name if it's going to be overriden anyway
String serviceName = config.getString("otel.service.name");
Map<String, String> resourceAttributes = config.getMap("otel.resource.attributes");
return serviceName == null
Expand Down

0 comments on commit 991e8f2

Please sign in to comment.