otel_attributes.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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 otel
  16. {
  17. /**
  18. The name of the instrumentation scope - (@code InstrumentationScope.Name @endcode in OTLP).
  19. */
  20. static constexpr const char *kOtelScopeName = "otel.scope.name";
  21. /**
  22. The version of the instrumentation scope - (@code InstrumentationScope.Version @endcode in OTLP).
  23. */
  24. static constexpr const char *kOtelScopeVersion = "otel.scope.version";
  25. /**
  26. Name of the code, either "OK" or "ERROR". MUST NOT be set if the status code is UNSET.
  27. */
  28. static constexpr const char *kOtelStatusCode = "otel.status_code";
  29. /**
  30. Description of the Status if it has a value, otherwise not set.
  31. */
  32. static constexpr const char *kOtelStatusDescription = "otel.status_description";
  33. namespace OtelStatusCodeValues
  34. {
  35. /**
  36. The operation has been validated by an Application developer or Operator to have completed
  37. successfully.
  38. */
  39. static constexpr const char *kOk = "OK";
  40. /**
  41. The operation contains an error.
  42. */
  43. static constexpr const char *kError = "ERROR";
  44. } // namespace OtelStatusCodeValues
  45. } // namespace otel
  46. } // namespace semconv
  47. OPENTELEMETRY_END_NAMESPACE