azure_attributes.h 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. /*
  2. * Copyright The OpenTelemetry Authors
  3. * SPDX-License-Identifier: Apache-2.0
  4. */
  5. /*
  6. * DO NOT EDIT, this is an Auto-generated file from:
  7. * buildscripts/semantic-convention/templates/registry/semantic_attributes-h.j2
  8. */
  9. #pragma once
  10. #include "opentelemetry/common/macros.h"
  11. #include "opentelemetry/version.h"
  12. OPENTELEMETRY_BEGIN_NAMESPACE
  13. namespace semconv
  14. {
  15. namespace azure
  16. {
  17. /**
  18. The unique identifier of the client instance.
  19. */
  20. static constexpr const char *kAzureClientId = "azure.client.id";
  21. /**
  22. Cosmos client connection mode.
  23. */
  24. static constexpr const char *kAzureCosmosdbConnectionMode = "azure.cosmosdb.connection.mode";
  25. /**
  26. Account or request <a
  27. href="https://learn.microsoft.com/azure/cosmos-db/consistency-levels">consistency level</a>.
  28. */
  29. static constexpr const char *kAzureCosmosdbConsistencyLevel = "azure.cosmosdb.consistency.level";
  30. /**
  31. List of regions contacted during operation in the order that they were contacted. If there is more
  32. than one region listed, it indicates that the operation was performed on multiple regions i.e.
  33. cross-regional call. <p> Region name matches the format of @code displayName @endcode in <a
  34. href="https://learn.microsoft.com/rest/api/subscription/subscriptions/list-locations?view=rest-subscription-2021-10-01&tabs=HTTP#location">Azure
  35. Location API</a>
  36. */
  37. static constexpr const char *kAzureCosmosdbOperationContactedRegions =
  38. "azure.cosmosdb.operation.contacted_regions";
  39. /**
  40. The number of request units consumed by the operation.
  41. */
  42. static constexpr const char *kAzureCosmosdbOperationRequestCharge =
  43. "azure.cosmosdb.operation.request_charge";
  44. /**
  45. Request payload size in bytes.
  46. */
  47. static constexpr const char *kAzureCosmosdbRequestBodySize = "azure.cosmosdb.request.body.size";
  48. /**
  49. Cosmos DB sub status code.
  50. */
  51. static constexpr const char *kAzureCosmosdbResponseSubStatusCode =
  52. "azure.cosmosdb.response.sub_status_code";
  53. namespace AzureCosmosdbConnectionModeValues
  54. {
  55. /**
  56. Gateway (HTTP) connection.
  57. */
  58. static constexpr const char *kGateway = "gateway";
  59. /**
  60. Direct connection.
  61. */
  62. static constexpr const char *kDirect = "direct";
  63. } // namespace AzureCosmosdbConnectionModeValues
  64. namespace AzureCosmosdbConsistencyLevelValues
  65. {
  66. /**
  67. none
  68. */
  69. static constexpr const char *kStrong = "Strong";
  70. /**
  71. none
  72. */
  73. static constexpr const char *kBoundedStaleness = "BoundedStaleness";
  74. /**
  75. none
  76. */
  77. static constexpr const char *kSession = "Session";
  78. /**
  79. none
  80. */
  81. static constexpr const char *kEventual = "Eventual";
  82. /**
  83. none
  84. */
  85. static constexpr const char *kConsistentPrefix = "ConsistentPrefix";
  86. } // namespace AzureCosmosdbConsistencyLevelValues
  87. } // namespace azure
  88. } // namespace semconv
  89. OPENTELEMETRY_END_NAMESPACE