Skip to content

Commit

Permalink
fix semantic conventions
Browse files Browse the repository at this point in the history
  • Loading branch information
zeitlinger committed Apr 25, 2024
1 parent 2d9f5b7 commit 8db984e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@

package io.opentelemetry.contrib.aws.resource;

import static io.opentelemetry.semconv.incubating.CloudIncubatingAttributes.CLOUD_PROVIDER;

import io.opentelemetry.sdk.autoconfigure.spi.ConfigProperties;
import io.opentelemetry.sdk.autoconfigure.spi.internal.ConditionalResourceProvider;
import io.opentelemetry.sdk.resources.Resource;
import io.opentelemetry.semconv.ResourceAttributes;

public abstract class CloudResourceProvider implements ConditionalResourceProvider {
@Override
public final boolean shouldApply(ConfigProperties config, Resource existing) {
return existing.getAttribute(ResourceAttributes.CLOUD_PROVIDER) == null;
return existing.getAttribute(CLOUD_PROVIDER) == null;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public GCPResourceProvider() {

@Override
public final boolean shouldApply(ConfigProperties config, Resource existing) {
return existing.getAttribute(ResourceAttributes.CLOUD_PROVIDER) == null;
return existing.getAttribute(CLOUD_PROVIDER) == null;
}

/**
Expand Down

0 comments on commit 8db984e

Please sign in to comment.