File: azure_attributes.h

package info (click to toggle)
opentelemetry-cpp 1.23.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 11,372 kB
  • sloc: cpp: 96,239; sh: 1,766; makefile: 36; python: 31
file content (123 lines) | stat: -rw-r--r-- 3,280 bytes parent folder | download
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
/*
 * Copyright The OpenTelemetry Authors
 * SPDX-License-Identifier: Apache-2.0
 */

/*
 * DO NOT EDIT, this is an Auto-generated file from:
 * buildscripts/semantic-convention/templates/registry/semantic_attributes-h.j2
 */

#pragma once

#include "opentelemetry/common/macros.h"
#include "opentelemetry/version.h"

OPENTELEMETRY_BEGIN_NAMESPACE
namespace semconv
{
namespace azure
{

/**
  The unique identifier of the client instance.
 */
static constexpr const char *kAzureClientId = "azure.client.id";

/**
  Cosmos client connection mode.
 */
static constexpr const char *kAzureCosmosdbConnectionMode = "azure.cosmosdb.connection.mode";

/**
  Account or request <a
  href="https://learn.microsoft.com/azure/cosmos-db/consistency-levels">consistency level</a>.
 */
static constexpr const char *kAzureCosmosdbConsistencyLevel = "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> Region name matches the format of @code displayName @endcode 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>
 */
static constexpr const char *kAzureCosmosdbOperationContactedRegions =
    "azure.cosmosdb.operation.contacted_regions";

/**
  The number of request units consumed by the operation.
 */
static constexpr const char *kAzureCosmosdbOperationRequestCharge =
    "azure.cosmosdb.operation.request_charge";

/**
  Request payload size in bytes.
 */
static constexpr const char *kAzureCosmosdbRequestBodySize = "azure.cosmosdb.request.body.size";

/**
  Cosmos DB sub status code.
 */
static constexpr const char *kAzureCosmosdbResponseSubStatusCode =
    "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.
 */
static constexpr const char *kAzureResourceProviderNamespace = "azure.resource_provider.namespace";

/**
  The unique identifier of the service request. It's generated by the Azure service and returned
  with the response.
 */
static constexpr const char *kAzureServiceRequestId = "azure.service.request.id";

namespace AzureCosmosdbConnectionModeValues
{
/**
  Gateway (HTTP) connection.
 */
static constexpr const char *kGateway = "gateway";

/**
  Direct connection.
 */
static constexpr const char *kDirect = "direct";

}  // namespace AzureCosmosdbConnectionModeValues

namespace AzureCosmosdbConsistencyLevelValues
{
/**
  Strong
 */
static constexpr const char *kStrong = "Strong";

/**
  Bounded Staleness
 */
static constexpr const char *kBoundedStaleness = "BoundedStaleness";

/**
  Session
 */
static constexpr const char *kSession = "Session";

/**
  Eventual
 */
static constexpr const char *kEventual = "Eventual";

/**
  Consistent Prefix
 */
static constexpr const char *kConsistentPrefix = "ConsistentPrefix";

}  // namespace AzureCosmosdbConsistencyLevelValues

}  // namespace azure
}  // namespace semconv
OPENTELEMETRY_END_NAMESPACE