telemetry_attributes.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  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 telemetry
  16. {
  17. /**
  18. The language of the telemetry SDK.
  19. */
  20. static constexpr const char *kTelemetrySdkLanguage = "telemetry.sdk.language";
  21. /**
  22. The name of the telemetry SDK as defined above.
  23. <p>
  24. The OpenTelemetry SDK MUST set the @code telemetry.sdk.name @endcode attribute to @code
  25. opentelemetry @endcode. If another SDK, like a fork or a vendor-provided implementation, is used,
  26. this SDK MUST set the
  27. @code telemetry.sdk.name @endcode attribute to the fully-qualified class or module name of this
  28. SDK's main entry point or another suitable identifier depending on the language. The identifier
  29. @code opentelemetry @endcode is reserved and MUST NOT be used in this case. All custom identifiers
  30. SHOULD be stable across different versions of an implementation.
  31. */
  32. static constexpr const char *kTelemetrySdkName = "telemetry.sdk.name";
  33. /**
  34. The version string of the telemetry SDK.
  35. */
  36. static constexpr const char *kTelemetrySdkVersion = "telemetry.sdk.version";
  37. namespace TelemetrySdkLanguageValues
  38. {
  39. /**
  40. none
  41. */
  42. static constexpr const char *kCpp = "cpp";
  43. /**
  44. none
  45. */
  46. static constexpr const char *kDotnet = "dotnet";
  47. /**
  48. none
  49. */
  50. static constexpr const char *kErlang = "erlang";
  51. /**
  52. none
  53. */
  54. static constexpr const char *kGo = "go";
  55. /**
  56. none
  57. */
  58. static constexpr const char *kJava = "java";
  59. /**
  60. none
  61. */
  62. static constexpr const char *kNodejs = "nodejs";
  63. /**
  64. none
  65. */
  66. static constexpr const char *kPhp = "php";
  67. /**
  68. none
  69. */
  70. static constexpr const char *kPython = "python";
  71. /**
  72. none
  73. */
  74. static constexpr const char *kRuby = "ruby";
  75. /**
  76. none
  77. */
  78. static constexpr const char *kRust = "rust";
  79. /**
  80. none
  81. */
  82. static constexpr const char *kSwift = "swift";
  83. /**
  84. none
  85. */
  86. static constexpr const char *kWebjs = "webjs";
  87. } // namespace TelemetrySdkLanguageValues
  88. } // namespace telemetry
  89. } // namespace semconv
  90. OPENTELEMETRY_END_NAMESPACE