blob: 54ba378f233e17ac6dffa58787c16dd03e9fd365 (
plain) (
blame)
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
|
/*
* 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 network
{
/**
Local address of the network connection - IP address or Unix domain socket name.
*/
static constexpr const char *kNetworkLocalAddress = "network.local.address";
/**
Local port number of the network connection.
*/
static constexpr const char *kNetworkLocalPort = "network.local.port";
/**
Peer address of the network connection - IP address or Unix domain socket name.
*/
static constexpr const char *kNetworkPeerAddress = "network.peer.address";
/**
Peer port number of the network connection.
*/
static constexpr const char *kNetworkPeerPort = "network.peer.port";
/**
<a href="https://wikipedia.org/wiki/Application_layer">OSI application layer</a> or non-OSI
equivalent. <p> The value SHOULD be normalized to lowercase.
*/
static constexpr const char *kNetworkProtocolName = "network.protocol.name";
/**
The actual version of the protocol used for network communication.
<p>
If protocol version is subject to negotiation (for example using <a
href="https://www.rfc-editor.org/rfc/rfc7301.html">ALPN</a>), this attribute SHOULD be set to the
negotiated version. If the actual protocol version is not known, this attribute SHOULD NOT be set.
*/
static constexpr const char *kNetworkProtocolVersion = "network.protocol.version";
/**
<a href="https://wikipedia.org/wiki/Transport_layer">OSI transport layer</a> or <a
href="https://wikipedia.org/wiki/Inter-process_communication">inter-process communication
method</a>. <p> The value SHOULD be normalized to lowercase. <p> Consider always setting the
transport when setting a port number, since a port number is ambiguous without knowing the
transport. For example different processes could be listening on TCP port 12345 and UDP port
12345.
*/
static constexpr const char *kNetworkTransport = "network.transport";
/**
<a href="https://wikipedia.org/wiki/Network_layer">OSI network layer</a> or non-OSI equivalent.
<p>
The value SHOULD be normalized to lowercase.
*/
static constexpr const char *kNetworkType = "network.type";
namespace NetworkTransportValues
{
/**
TCP
*/
static constexpr const char *kTcp = "tcp";
/**
UDP
*/
static constexpr const char *kUdp = "udp";
/**
Named or anonymous pipe.
*/
static constexpr const char *kPipe = "pipe";
/**
Unix domain socket
*/
static constexpr const char *kUnix = "unix";
/**
QUIC
*/
static constexpr const char *kQuic = "quic";
} // namespace NetworkTransportValues
namespace NetworkTypeValues
{
/**
IPv4
*/
static constexpr const char *kIpv4 = "ipv4";
/**
IPv6
*/
static constexpr const char *kIpv6 = "ipv6";
} // namespace NetworkTypeValues
} // namespace network
} // namespace semconv
OPENTELEMETRY_END_NAMESPACE
|