os_attributes.h 2.1 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 os
  16. {
  17. /**
  18. Unique identifier for a particular build or compilation of the operating system.
  19. */
  20. static constexpr const char *kOsBuildId = "os.build_id";
  21. /**
  22. Human readable (not intended to be parsed) OS version information, like e.g. reported by @code ver
  23. @endcode or @code lsb_release -a @endcode commands.
  24. */
  25. static constexpr const char *kOsDescription = "os.description";
  26. /**
  27. Human readable operating system name.
  28. */
  29. static constexpr const char *kOsName = "os.name";
  30. /**
  31. The operating system type.
  32. */
  33. static constexpr const char *kOsType = "os.type";
  34. /**
  35. The version string of the operating system as defined in <a
  36. href="/docs/resource/README.md#version-attributes">Version Attributes</a>.
  37. */
  38. static constexpr const char *kOsVersion = "os.version";
  39. namespace OsTypeValues
  40. {
  41. /**
  42. Microsoft Windows
  43. */
  44. static constexpr const char *kWindows = "windows";
  45. /**
  46. Linux
  47. */
  48. static constexpr const char *kLinux = "linux";
  49. /**
  50. Apple Darwin
  51. */
  52. static constexpr const char *kDarwin = "darwin";
  53. /**
  54. FreeBSD
  55. */
  56. static constexpr const char *kFreebsd = "freebsd";
  57. /**
  58. NetBSD
  59. */
  60. static constexpr const char *kNetbsd = "netbsd";
  61. /**
  62. OpenBSD
  63. */
  64. static constexpr const char *kOpenbsd = "openbsd";
  65. /**
  66. DragonFly BSD
  67. */
  68. static constexpr const char *kDragonflybsd = "dragonflybsd";
  69. /**
  70. HP-UX (Hewlett Packard Unix)
  71. */
  72. static constexpr const char *kHpux = "hpux";
  73. /**
  74. AIX (Advanced Interactive eXecutive)
  75. */
  76. static constexpr const char *kAix = "aix";
  77. /**
  78. SunOS, Oracle Solaris
  79. */
  80. static constexpr const char *kSolaris = "solaris";
  81. /**
  82. IBM z/OS
  83. */
  84. static constexpr const char *kZOs = "z_os";
  85. } // namespace OsTypeValues
  86. } // namespace os
  87. } // namespace semconv
  88. OPENTELEMETRY_END_NAMESPACE