-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathAzureIncubatingAttributes.java
More file actions
94 lines (73 loc) · 3.48 KB
/
Copy pathAzureIncubatingAttributes.java
File metadata and controls
94 lines (73 loc) · 3.48 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
/*
* 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/subscription/subscriptions/list-locations?view=rest-subscription-2021-10-01&tabs=HTTP#location">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");
// 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() {}
}