Skip to content

Commit

Permalink
Merge branch 'main' into enhance-otlp-sample
Browse files Browse the repository at this point in the history
  • Loading branch information
psx95 committed Apr 17, 2024
2 parents 36be9c5 + 008cf95 commit 271fa7a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
import java.net.HttpURLConnection;
import java.net.URL;
import java.nio.charset.StandardCharsets;
import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
* Retrieves Google Cloud project-id and a limited set of instance attributes from Metadata server.
Expand All @@ -36,7 +36,7 @@ final class GCPMetadataConfig {

private static final String DEFAULT_URL = "http://metadata.google.internal/computeMetadata/v1/";
private final String url;
private final Map<String, String> cachedAttributes = new HashMap<>();
private final Map<String, String> cachedAttributes = new ConcurrentHashMap<>();

private GCPMetadataConfig() {
this.url = DEFAULT_URL;
Expand Down

0 comments on commit 271fa7a

Please sign in to comment.