File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
gcp-resources/src/main/java/io/opentelemetry/contrib/gcp/resource Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 62
62
import java .util .logging .Logger ;
63
63
64
64
@ SuppressWarnings ("MemberName" )
65
- public class GCPResourceProvider implements ConditionalResourceProvider {
65
+ public final class GCPResourceProvider implements ConditionalResourceProvider {
66
66
67
67
private static final Logger LOGGER = Logger .getLogger (GCPResourceProvider .class .getSimpleName ());
68
+
68
69
private final GCPPlatformDetector detector ;
69
70
70
71
// for testing only
Original file line number Diff line number Diff line change 13
13
*/
14
14
class IncubatingAttributes {
15
15
16
- private IncubatingAttributes () {}
17
-
18
16
public static final AttributeKey <String > CLOUD_ACCOUNT_ID =
19
17
AttributeKey .stringKey ("cloud.account.id" );
20
18
public static final AttributeKey <String > CLOUD_AVAILABILITY_ZONE =
@@ -26,14 +24,15 @@ private IncubatingAttributes() {}
26
24
public static final AttributeKey <String > CLOUD_REGION = AttributeKey .stringKey ("cloud.region" );
27
25
28
26
public static final class CloudPlatformIncubatingValues {
29
- private CloudPlatformIncubatingValues () {}
30
27
31
28
public static final String GCP_COMPUTE_ENGINE = "gcp_compute_engine" ;
32
29
public static final String GCP_CLOUD_RUN = "gcp_cloud_run" ;
33
30
public static final String GCP_KUBERNETES_ENGINE = "gcp_kubernetes_engine" ;
34
31
public static final String GCP_CLOUD_FUNCTIONS = "gcp_cloud_functions" ;
35
32
public static final String GCP_APP_ENGINE = "gcp_app_engine" ;
36
33
public static final String GCP = "gcp" ;
34
+
35
+ private CloudPlatformIncubatingValues () {}
37
36
}
38
37
39
38
public static final AttributeKey <String > FAAS_INSTANCE = AttributeKey .stringKey ("faas.instance" );
@@ -56,4 +55,6 @@ private CloudPlatformIncubatingValues() {}
56
55
57
56
public static final AttributeKey <String > K8S_CLUSTER_NAME =
58
57
AttributeKey .stringKey ("k8s.cluster.name" );
58
+
59
+ private IncubatingAttributes () {}
59
60
}
You can’t perform that action at this time.
0 commit comments