-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathAzureIncubatingAttributes.java
More file actions
109 lines (86 loc) · 4 KB
/
Copy pathAzureIncubatingAttributes.java
File metadata and controls
109 lines (86 loc) · 4 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
/*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/
package io.opentelemetry.semconv.incubating;
import static io.opentelemetry.api.common.AttributeKey.doubleKey;
import static io.opentelemetry.api.common.AttributeKey.longKey;
import static io.opentelemetry.api.common.AttributeKey.stringArrayKey;
import static io.opentelemetry.api.common.AttributeKey.stringKey;
import io.opentelemetry.api.common.AttributeKey;
import java.util.List;
// DO NOT EDIT, this is an Auto-generated file from
// buildscripts/templates/registry/incubating_java/IncubatingSemanticAttributes.java.j2
@SuppressWarnings("unused")
public final class AzureIncubatingAttributes {
/** The unique identifier of the client instance. */
public static final AttributeKey<String> AZURE_CLIENT_ID = stringKey("azure.client.id");
/** Cosmos client connection mode. */
public static final AttributeKey<String> AZURE_COSMOSDB_CONNECTION_MODE =
stringKey("azure.cosmosdb.connection.mode");
/**
* Account or request <a
* href="https://learn.microsoft.com/azure/cosmos-db/consistency-levels">consistency level</a>.
*/
public static final AttributeKey<String> AZURE_COSMOSDB_CONSISTENCY_LEVEL =
stringKey("azure.cosmosdb.consistency.level");
/**
* List of regions contacted during operation in the order that they were contacted. If there is
* more than one region listed, it indicates that the operation was performed on multiple regions
* i.e. cross-regional call.
*
* <p>Notes:
*
* <p>Region name matches the format of {@code displayName} in <a
* href="https://learn.microsoft.com/rest/api/resources/subscriptions/list-locations">Azure
* Location API</a>
*/
public static final AttributeKey<List<String>> AZURE_COSMOSDB_OPERATION_CONTACTED_REGIONS =
stringArrayKey("azure.cosmosdb.operation.contacted_regions");
/** The number of request units consumed by the operation. */
public static final AttributeKey<Double> AZURE_COSMOSDB_OPERATION_REQUEST_CHARGE =
doubleKey("azure.cosmosdb.operation.request_charge");
/** Request payload size in bytes. */
public static final AttributeKey<Long> AZURE_COSMOSDB_REQUEST_BODY_SIZE =
longKey("azure.cosmosdb.request.body.size");
/** Cosmos DB sub status code. */
public static final AttributeKey<Long> AZURE_COSMOSDB_RESPONSE_SUB_STATUS_CODE =
longKey("azure.cosmosdb.response.sub_status_code");
/**
* <a
* href="https://learn.microsoft.com/azure/azure-resource-manager/management/azure-services-resource-providers">Azure
* Resource Provider Namespace</a> as recognized by the client.
*/
public static final AttributeKey<String> AZURE_RESOURCE_PROVIDER_NAMESPACE =
stringKey("azure.resource_provider.namespace");
/**
* The unique identifier of the service request. It's generated by the Azure service and returned
* with the response.
*/
public static final AttributeKey<String> AZURE_SERVICE_REQUEST_ID =
stringKey("azure.service.request.id");
// Enum definitions
/** Values for {@link #AZURE_COSMOSDB_CONNECTION_MODE}. */
public static final class AzureCosmosdbConnectionModeIncubatingValues {
/** Gateway (HTTP) connection. */
public static final String GATEWAY = "gateway";
/** Direct connection. */
public static final String DIRECT = "direct";
private AzureCosmosdbConnectionModeIncubatingValues() {}
}
/** Values for {@link #AZURE_COSMOSDB_CONSISTENCY_LEVEL}. */
public static final class AzureCosmosdbConsistencyLevelIncubatingValues {
/** Strong */
public static final String STRONG = "Strong";
/** Bounded Staleness */
public static final String BOUNDED_STALENESS = "BoundedStaleness";
/** Session */
public static final String SESSION = "Session";
/** Eventual */
public static final String EVENTUAL = "Eventual";
/** Consistent Prefix */
public static final String CONSISTENT_PREFIX = "ConsistentPrefix";
private AzureCosmosdbConsistencyLevelIncubatingValues() {}
}
private AzureIncubatingAttributes() {}
}