-
Notifications
You must be signed in to change notification settings - Fork 449
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade semantic conventions to 1.30 (#3258)
- Loading branch information
Showing
33 changed files
with
2,534 additions
and
158 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
110 changes: 110 additions & 0 deletions
110
api/include/opentelemetry/semconv/incubating/azure_attributes.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,110 @@ | ||
/* | ||
* 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"; | ||
|
||
namespace AzureCosmosdbConnectionModeValues | ||
{ | ||
/** | ||
* Gateway (HTTP) connection. | ||
*/ | ||
static constexpr const char *kGateway = "gateway"; | ||
|
||
/** | ||
* Direct connection. | ||
*/ | ||
static constexpr const char *kDirect = "direct"; | ||
|
||
} // namespace AzureCosmosdbConnectionModeValues | ||
|
||
namespace AzureCosmosdbConsistencyLevelValues | ||
{ | ||
/** | ||
* none | ||
*/ | ||
static constexpr const char *kStrong = "Strong"; | ||
|
||
/** | ||
* none | ||
*/ | ||
static constexpr const char *kBoundedStaleness = "BoundedStaleness"; | ||
|
||
/** | ||
* none | ||
*/ | ||
static constexpr const char *kSession = "Session"; | ||
|
||
/** | ||
* none | ||
*/ | ||
static constexpr const char *kEventual = "Eventual"; | ||
|
||
/** | ||
* none | ||
*/ | ||
static constexpr const char *kConsistentPrefix = "ConsistentPrefix"; | ||
|
||
} // namespace AzureCosmosdbConsistencyLevelValues | ||
|
||
} // namespace azure | ||
} // namespace semconv | ||
OPENTELEMETRY_END_NAMESPACE |
97 changes: 97 additions & 0 deletions
97
api/include/opentelemetry/semconv/incubating/azure_metrics.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
/* | ||
* 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_metrics-h.j2 | ||
*/ | ||
|
||
#pragma once | ||
|
||
#include "opentelemetry/common/macros.h" | ||
#include "opentelemetry/metrics/meter.h" | ||
#include "opentelemetry/version.h" | ||
|
||
OPENTELEMETRY_BEGIN_NAMESPACE | ||
namespace semconv | ||
{ | ||
namespace azure | ||
{ | ||
|
||
/** | ||
* Number of active client instances | ||
* <p> | ||
* updowncounter | ||
*/ | ||
static constexpr const char *kMetricAzureCosmosdbClientActiveInstanceCount = | ||
"azure.cosmosdb.client.active_instance.count"; | ||
static constexpr const char *descrMetricAzureCosmosdbClientActiveInstanceCount = | ||
"Number of active client instances"; | ||
static constexpr const char *unitMetricAzureCosmosdbClientActiveInstanceCount = "{instance}"; | ||
|
||
static inline nostd::unique_ptr<metrics::UpDownCounter<int64_t>> | ||
CreateSyncInt64MetricAzureCosmosdbClientActiveInstanceCount(metrics::Meter *meter) | ||
{ | ||
return meter->CreateInt64UpDownCounter(kMetricAzureCosmosdbClientActiveInstanceCount, | ||
descrMetricAzureCosmosdbClientActiveInstanceCount, | ||
unitMetricAzureCosmosdbClientActiveInstanceCount); | ||
} | ||
|
||
static inline nostd::unique_ptr<metrics::UpDownCounter<double>> | ||
CreateSyncDoubleMetricAzureCosmosdbClientActiveInstanceCount(metrics::Meter *meter) | ||
{ | ||
return meter->CreateDoubleUpDownCounter(kMetricAzureCosmosdbClientActiveInstanceCount, | ||
descrMetricAzureCosmosdbClientActiveInstanceCount, | ||
unitMetricAzureCosmosdbClientActiveInstanceCount); | ||
} | ||
|
||
static inline nostd::shared_ptr<metrics::ObservableInstrument> | ||
CreateAsyncInt64MetricAzureCosmosdbClientActiveInstanceCount(metrics::Meter *meter) | ||
{ | ||
return meter->CreateInt64ObservableUpDownCounter( | ||
kMetricAzureCosmosdbClientActiveInstanceCount, | ||
descrMetricAzureCosmosdbClientActiveInstanceCount, | ||
unitMetricAzureCosmosdbClientActiveInstanceCount); | ||
} | ||
|
||
static inline nostd::shared_ptr<metrics::ObservableInstrument> | ||
CreateAsyncDoubleMetricAzureCosmosdbClientActiveInstanceCount(metrics::Meter *meter) | ||
{ | ||
return meter->CreateDoubleObservableUpDownCounter( | ||
kMetricAzureCosmosdbClientActiveInstanceCount, | ||
descrMetricAzureCosmosdbClientActiveInstanceCount, | ||
unitMetricAzureCosmosdbClientActiveInstanceCount); | ||
} | ||
|
||
/** | ||
* <a href="https://learn.microsoft.com/azure/cosmos-db/request-units">Request units</a> consumed by | ||
* the operation <p> histogram | ||
*/ | ||
static constexpr const char *kMetricAzureCosmosdbClientOperationRequestCharge = | ||
"azure.cosmosdb.client.operation.request_charge"; | ||
static constexpr const char *descrMetricAzureCosmosdbClientOperationRequestCharge = | ||
"[Request units](https://learn.microsoft.com/azure/cosmos-db/request-units) consumed by the " | ||
"operation"; | ||
static constexpr const char *unitMetricAzureCosmosdbClientOperationRequestCharge = "{request_unit}"; | ||
|
||
static inline nostd::unique_ptr<metrics::Histogram<uint64_t>> | ||
CreateSyncInt64MetricAzureCosmosdbClientOperationRequestCharge(metrics::Meter *meter) | ||
{ | ||
return meter->CreateUInt64Histogram(kMetricAzureCosmosdbClientOperationRequestCharge, | ||
descrMetricAzureCosmosdbClientOperationRequestCharge, | ||
unitMetricAzureCosmosdbClientOperationRequestCharge); | ||
} | ||
|
||
static inline nostd::unique_ptr<metrics::Histogram<double>> | ||
CreateSyncDoubleMetricAzureCosmosdbClientOperationRequestCharge(metrics::Meter *meter) | ||
{ | ||
return meter->CreateDoubleHistogram(kMetricAzureCosmosdbClientOperationRequestCharge, | ||
descrMetricAzureCosmosdbClientOperationRequestCharge, | ||
unitMetricAzureCosmosdbClientOperationRequestCharge); | ||
} | ||
|
||
} // namespace azure | ||
} // namespace semconv | ||
OPENTELEMETRY_END_NAMESPACE |
116 changes: 116 additions & 0 deletions
116
api/include/opentelemetry/semconv/incubating/cassandra_attributes.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
/* | ||
* 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 cassandra | ||
{ | ||
|
||
/** | ||
* The consistency level of the query. Based on consistency values from <a | ||
* href="https://docs.datastax.com/en/cassandra-oss/3.0/cassandra/dml/dmlConfigConsistency.html">CQL</a>. | ||
*/ | ||
static constexpr const char *kCassandraConsistencyLevel = "cassandra.consistency.level"; | ||
|
||
/** | ||
* The data center of the coordinating node for a query. | ||
*/ | ||
static constexpr const char *kCassandraCoordinatorDc = "cassandra.coordinator.dc"; | ||
|
||
/** | ||
* The ID of the coordinating node for a query. | ||
*/ | ||
static constexpr const char *kCassandraCoordinatorId = "cassandra.coordinator.id"; | ||
|
||
/** | ||
* The fetch size used for paging, i.e. how many rows will be returned at once. | ||
*/ | ||
static constexpr const char *kCassandraPageSize = "cassandra.page.size"; | ||
|
||
/** | ||
* Whether or not the query is idempotent. | ||
*/ | ||
static constexpr const char *kCassandraQueryIdempotent = "cassandra.query.idempotent"; | ||
|
||
/** | ||
* The number of times a query was speculatively executed. Not set or @code 0 @endcode if the query | ||
* was not executed speculatively. | ||
*/ | ||
static constexpr const char *kCassandraSpeculativeExecutionCount = | ||
"cassandra.speculative_execution.count"; | ||
|
||
namespace CassandraConsistencyLevelValues | ||
{ | ||
/** | ||
* none | ||
*/ | ||
static constexpr const char *kAll = "all"; | ||
|
||
/** | ||
* none | ||
*/ | ||
static constexpr const char *kEachQuorum = "each_quorum"; | ||
|
||
/** | ||
* none | ||
*/ | ||
static constexpr const char *kQuorum = "quorum"; | ||
|
||
/** | ||
* none | ||
*/ | ||
static constexpr const char *kLocalQuorum = "local_quorum"; | ||
|
||
/** | ||
* none | ||
*/ | ||
static constexpr const char *kOne = "one"; | ||
|
||
/** | ||
* none | ||
*/ | ||
static constexpr const char *kTwo = "two"; | ||
|
||
/** | ||
* none | ||
*/ | ||
static constexpr const char *kThree = "three"; | ||
|
||
/** | ||
* none | ||
*/ | ||
static constexpr const char *kLocalOne = "local_one"; | ||
|
||
/** | ||
* none | ||
*/ | ||
static constexpr const char *kAny = "any"; | ||
|
||
/** | ||
* none | ||
*/ | ||
static constexpr const char *kSerial = "serial"; | ||
|
||
/** | ||
* none | ||
*/ | ||
static constexpr const char *kLocalSerial = "local_serial"; | ||
|
||
} // namespace CassandraConsistencyLevelValues | ||
|
||
} // namespace cassandra | ||
} // namespace semconv | ||
OPENTELEMETRY_END_NAMESPACE |
Oops, something went wrong.