File: os_attributes.h

package info (click to toggle)
opentelemetry-cpp 1.23.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 11,372 kB
  • sloc: cpp: 96,239; sh: 1,766; makefile: 36; python: 31
file content (118 lines) | stat: -rw-r--r-- 2,338 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
/*
 * Copyright The OpenTelemetry Authors
 * SPDX-License-Identifier: Apache-2.0
 */

/*
 * DO NOT EDIT, this is an Auto-generated file from:
 * buildscripts/semantic-convention/templates/registry/semantic_attributes-h.j2
 */

#pragma once

#include "opentelemetry/common/macros.h"
#include "opentelemetry/version.h"

OPENTELEMETRY_BEGIN_NAMESPACE
namespace semconv
{
namespace os
{

/**
  Unique identifier for a particular build or compilation of the operating system.
 */
static constexpr const char *kOsBuildId = "os.build_id";

/**
  Human readable (not intended to be parsed) OS version information, like e.g. reported by @code ver
  @endcode or @code lsb_release -a @endcode commands.
 */
static constexpr const char *kOsDescription = "os.description";

/**
  Human readable operating system name.
 */
static constexpr const char *kOsName = "os.name";

/**
  The operating system type.
 */
static constexpr const char *kOsType = "os.type";

/**
  The version string of the operating system as defined in <a
  href="/docs/resource/README.md#version-attributes">Version Attributes</a>.
 */
static constexpr const char *kOsVersion = "os.version";

namespace OsTypeValues
{
/**
  Microsoft Windows
 */
static constexpr const char *kWindows = "windows";

/**
  Linux
 */
static constexpr const char *kLinux = "linux";

/**
  Apple Darwin
 */
static constexpr const char *kDarwin = "darwin";

/**
  FreeBSD
 */
static constexpr const char *kFreebsd = "freebsd";

/**
  NetBSD
 */
static constexpr const char *kNetbsd = "netbsd";

/**
  OpenBSD
 */
static constexpr const char *kOpenbsd = "openbsd";

/**
  DragonFly BSD
 */
static constexpr const char *kDragonflybsd = "dragonflybsd";

/**
  HP-UX (Hewlett Packard Unix)
 */
static constexpr const char *kHpux = "hpux";

/**
  AIX (Advanced Interactive eXecutive)
 */
static constexpr const char *kAix = "aix";

/**
  SunOS, Oracle Solaris
 */
static constexpr const char *kSolaris = "solaris";

/**
  Deprecated. Use @code zos @endcode instead.

  @deprecated
  {"note": "Replaced by @code zos @endcode.", "reason": "renamed", "renamed_to": "zos"}
 */
OPENTELEMETRY_DEPRECATED static constexpr const char *kZOs = "z_os";

/**
  IBM z/OS
 */
static constexpr const char *kZos = "zos";

}  // namespace OsTypeValues

}  // namespace os
}  // namespace semconv
OPENTELEMETRY_END_NAMESPACE