cassandra_attributes.h 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  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 cassandra
  16. {
  17. /**
  18. The consistency level of the query. Based on consistency values from <a
  19. href="https://docs.datastax.com/en/cassandra-oss/3.0/cassandra/dml/dmlConfigConsistency.html">CQL</a>.
  20. */
  21. static constexpr const char *kCassandraConsistencyLevel = "cassandra.consistency.level";
  22. /**
  23. The data center of the coordinating node for a query.
  24. */
  25. static constexpr const char *kCassandraCoordinatorDc = "cassandra.coordinator.dc";
  26. /**
  27. The ID of the coordinating node for a query.
  28. */
  29. static constexpr const char *kCassandraCoordinatorId = "cassandra.coordinator.id";
  30. /**
  31. The fetch size used for paging, i.e. how many rows will be returned at once.
  32. */
  33. static constexpr const char *kCassandraPageSize = "cassandra.page.size";
  34. /**
  35. Whether or not the query is idempotent.
  36. */
  37. static constexpr const char *kCassandraQueryIdempotent = "cassandra.query.idempotent";
  38. /**
  39. The number of times a query was speculatively executed. Not set or @code 0 @endcode if the query
  40. was not executed speculatively.
  41. */
  42. static constexpr const char *kCassandraSpeculativeExecutionCount =
  43. "cassandra.speculative_execution.count";
  44. namespace CassandraConsistencyLevelValues
  45. {
  46. /**
  47. none
  48. */
  49. static constexpr const char *kAll = "all";
  50. /**
  51. none
  52. */
  53. static constexpr const char *kEachQuorum = "each_quorum";
  54. /**
  55. none
  56. */
  57. static constexpr const char *kQuorum = "quorum";
  58. /**
  59. none
  60. */
  61. static constexpr const char *kLocalQuorum = "local_quorum";
  62. /**
  63. none
  64. */
  65. static constexpr const char *kOne = "one";
  66. /**
  67. none
  68. */
  69. static constexpr const char *kTwo = "two";
  70. /**
  71. none
  72. */
  73. static constexpr const char *kThree = "three";
  74. /**
  75. none
  76. */
  77. static constexpr const char *kLocalOne = "local_one";
  78. /**
  79. none
  80. */
  81. static constexpr const char *kAny = "any";
  82. /**
  83. none
  84. */
  85. static constexpr const char *kSerial = "serial";
  86. /**
  87. none
  88. */
  89. static constexpr const char *kLocalSerial = "local_serial";
  90. } // namespace CassandraConsistencyLevelValues
  91. } // namespace cassandra
  92. } // namespace semconv
  93. OPENTELEMETRY_END_NAMESPACE