File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
gcp-resources/src/main/java/io/opentelemetry/contrib/gcp/resource Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 55
66package io .opentelemetry .contrib .gcp .resource ;
77
8+ import java .util .Collections ;
89import java .util .HashMap ;
910import java .util .Map ;
1011
@@ -28,7 +29,7 @@ private Map<String, String> prepareAttributes() {
2829 AttributeKeys .GCR_JOB_TASK_INDEX , this .environmentVariables .get ("CLOUD_RUN_TASK_INDEX" ));
2930 map .put (AttributeKeys .SERVERLESS_COMPUTE_INSTANCE_ID , this .metadataConfig .getInstanceId ());
3031 map .put (AttributeKeys .SERVERLESS_COMPUTE_CLOUD_REGION , this .metadataConfig .getRegionFromZone ());
31- return map ;
32+ return Collections . unmodifiableMap ( map ) ;
3233 }
3334
3435 @ Override
@@ -38,7 +39,7 @@ public GcpPlatformDetector.SupportedPlatform getSupportedPlatform() {
3839
3940 @ Override
4041 public String getProjectId () {
41- return metadataConfig .getProjectId ();
42+ return this . metadataConfig .getProjectId ();
4243 }
4344
4445 @ Override
You can’t perform that action at this time.
0 commit comments