cpu_attributes.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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 cpu
  16. {
  17. /**
  18. The logical CPU number [0..n-1]
  19. */
  20. static constexpr const char *kCpuLogicalNumber = "cpu.logical_number";
  21. /**
  22. The mode of the CPU
  23. */
  24. static constexpr const char *kCpuMode = "cpu.mode";
  25. namespace CpuModeValues
  26. {
  27. /**
  28. none
  29. */
  30. static constexpr const char *kUser = "user";
  31. /**
  32. none
  33. */
  34. static constexpr const char *kSystem = "system";
  35. /**
  36. none
  37. */
  38. static constexpr const char *kNice = "nice";
  39. /**
  40. none
  41. */
  42. static constexpr const char *kIdle = "idle";
  43. /**
  44. none
  45. */
  46. static constexpr const char *kIowait = "iowait";
  47. /**
  48. none
  49. */
  50. static constexpr const char *kInterrupt = "interrupt";
  51. /**
  52. none
  53. */
  54. static constexpr const char *kSteal = "steal";
  55. /**
  56. none
  57. */
  58. static constexpr const char *kKernel = "kernel";
  59. } // namespace CpuModeValues
  60. } // namespace cpu
  61. } // namespace semconv
  62. OPENTELEMETRY_END_NAMESPACE