File: host_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 (159 lines) | stat: -rw-r--r-- 4,138 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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
/*
 * 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 host
{

/**
  The CPU architecture the host system is running on.
 */
static constexpr const char *kHostArch = "host.arch";

/**
  The amount of level 2 memory cache available to the processor (in Bytes).
 */
static constexpr const char *kHostCpuCacheL2Size = "host.cpu.cache.l2.size";

/**
  Family or generation of the CPU.
 */
static constexpr const char *kHostCpuFamily = "host.cpu.family";

/**
  Model identifier. It provides more granular information about the CPU, distinguishing it from
  other CPUs within the same family.
 */
static constexpr const char *kHostCpuModelId = "host.cpu.model.id";

/**
  Model designation of the processor.
 */
static constexpr const char *kHostCpuModelName = "host.cpu.model.name";

/**
  Stepping or core revisions.
 */
static constexpr const char *kHostCpuStepping = "host.cpu.stepping";

/**
  Processor manufacturer identifier. A maximum 12-character string.
  <p>
  <a href="https://wiki.osdev.org/CPUID">CPUID</a> command returns the vendor ID string in EBX, EDX
  and ECX registers. Writing these to memory in this order results in a 12-character string.
 */
static constexpr const char *kHostCpuVendorId = "host.cpu.vendor.id";

/**
  Unique host ID. For Cloud, this must be the instance_id assigned by the cloud provider. For
  non-containerized systems, this should be the @code machine-id @endcode. See the table below for
  the sources to use to determine the @code machine-id @endcode based on operating system.
 */
static constexpr const char *kHostId = "host.id";

/**
  VM image ID or host OS image ID. For Cloud, this value is from the provider.
 */
static constexpr const char *kHostImageId = "host.image.id";

/**
  Name of the VM image or OS install the host was instantiated from.
 */
static constexpr const char *kHostImageName = "host.image.name";

/**
  The version string of the VM image or host OS as defined in <a
  href="/docs/resource/README.md#version-attributes">Version Attributes</a>.
 */
static constexpr const char *kHostImageVersion = "host.image.version";

/**
  Available IP addresses of the host, excluding loopback interfaces.
  <p>
  IPv4 Addresses MUST be specified in dotted-quad notation. IPv6 addresses MUST be specified in the
  <a href="https://www.rfc-editor.org/rfc/rfc5952.html">RFC 5952</a> format.
 */
static constexpr const char *kHostIp = "host.ip";

/**
  Available MAC addresses of the host, excluding loopback interfaces.
  <p>
  MAC Addresses MUST be represented in <a
  href="https://standards.ieee.org/wp-content/uploads/import/documents/tutorials/eui.pdf">IEEE RA
  hexadecimal form</a>: as hyphen-separated octets in uppercase hexadecimal form from most to least
  significant.
 */
static constexpr const char *kHostMac = "host.mac";

/**
  Name of the host. On Unix systems, it may contain what the hostname command returns, or the fully
  qualified hostname, or another name specified by the user.
 */
static constexpr const char *kHostName = "host.name";

/**
  Type of host. For Cloud, this must be the machine type.
 */
static constexpr const char *kHostType = "host.type";

namespace HostArchValues
{
/**
  AMD64
 */
static constexpr const char *kAmd64 = "amd64";

/**
  ARM32
 */
static constexpr const char *kArm32 = "arm32";

/**
  ARM64
 */
static constexpr const char *kArm64 = "arm64";

/**
  Itanium
 */
static constexpr const char *kIa64 = "ia64";

/**
  32-bit PowerPC
 */
static constexpr const char *kPpc32 = "ppc32";

/**
  64-bit PowerPC
 */
static constexpr const char *kPpc64 = "ppc64";

/**
  IBM z/Architecture
 */
static constexpr const char *kS390x = "s390x";

/**
  32-bit x86
 */
static constexpr const char *kX86 = "x86";

}  // namespace HostArchValues

}  // namespace host
}  // namespace semconv
OPENTELEMETRY_END_NAMESPACE