-
Notifications
You must be signed in to change notification settings - Fork 180
Expand file tree
/
Copy pathIncubatingAttributes.java
More file actions
57 lines (44 loc) · 2.33 KB
/
IncubatingAttributes.java
File metadata and controls
57 lines (44 loc) · 2.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/
package io.opentelemetry.contrib.azure.resource;
import io.opentelemetry.api.common.AttributeKey;
// copied from opentelemetry-semconv-incubating
final class IncubatingAttributes {
// cloud attributes
public static final AttributeKey<String> CLOUD_PLATFORM =
AttributeKey.stringKey("cloud.platform");
public static final AttributeKey<String> CLOUD_PROVIDER =
AttributeKey.stringKey("cloud.provider");
public static final AttributeKey<String> CLOUD_REGION = AttributeKey.stringKey("cloud.region");
public static final AttributeKey<String> CLOUD_RESOURCE_ID =
AttributeKey.stringKey("cloud.resource_id");
public static final class CloudPlatformIncubatingValues {
public static final String AZURE_VM = "azure.vm";
public static final String AZURE_AKS = "azure.aks";
public static final String AZURE_FUNCTIONS = "azure.functions";
public static final String AZURE_APP_SERVICE = "azure.app_service";
public static final String AZURE_CONTAINER_APPS = "azure.container_apps";
private CloudPlatformIncubatingValues() {}
}
public static final class CloudProviderIncubatingValues {
public static final String AZURE = "azure";
private CloudProviderIncubatingValues() {}
}
// host attributes
public static final AttributeKey<String> HOST_ID = AttributeKey.stringKey("host.id");
public static final AttributeKey<String> HOST_NAME = AttributeKey.stringKey("host.name");
public static final AttributeKey<String> HOST_TYPE = AttributeKey.stringKey("host.type");
// faas attributes
public static final AttributeKey<String> FAAS_INSTANCE = AttributeKey.stringKey("faas.instance");
public static final AttributeKey<Long> FAAS_MAX_MEMORY = AttributeKey.longKey("faas.max_memory");
public static final AttributeKey<String> FAAS_NAME = AttributeKey.stringKey("faas.name");
public static final AttributeKey<String> FAAS_VERSION = AttributeKey.stringKey("faas.version");
// host attributes
static final AttributeKey<String> K8S_CLUSTER_NAME = AttributeKey.stringKey("k8s.cluster.name");
// OS attributes
public static final AttributeKey<String> OS_TYPE = AttributeKey.stringKey("os.type");
public static final AttributeKey<String> OS_VERSION = AttributeKey.stringKey("os.version");
private IncubatingAttributes() {}
}