Net enum

net.* attribute keys from the OpenTelemetry semantic-conventions attribute registry.

Inheritance
Implemented types
Available extensions

Values

netHostIp → const Net

Deprecated, use network.local.address.

Examples: 192.168.0.1

Stability: development

const Net('net.host.ip')
netHostName → const Net

Deprecated, use server.address.

Examples: example.com

Stability: development

const Net('net.host.name')
netHostPort → const Net

Deprecated, use server.port.

Examples: 8080

Stability: development

const Net('net.host.port')
netPeerIp → const Net

Deprecated, use network.peer.address.

Examples: 127.0.0.1

Stability: development

const Net('net.peer.ip')
netPeerName → const Net

Deprecated, use server.address on client spans and client.address on server spans.

Examples: example.com

Stability: development

const Net('net.peer.name')
netPeerPort → const Net

Deprecated, use server.port on client spans and client.port on server spans.

Examples: 8080

Stability: development

const Net('net.peer.port')
netProtocolName → const Net

Deprecated, use network.protocol.name.

Examples: amqp, http, mqtt

Stability: development

const Net('net.protocol.name')
netProtocolVersion → const Net

Deprecated, use network.protocol.version.

Examples: 3.1.1

Stability: development

const Net('net.protocol.version')
netSockFamily → const Net

Deprecated, use network.transport and network.type.

Stability: development

const Net('net.sock.family')
netSockHostAddr → const Net

Deprecated, use network.local.address.

Examples: /var/my.sock

Stability: development

const Net('net.sock.host.addr')
netSockHostPort → const Net

Deprecated, use network.local.port.

Examples: 8080

Stability: development

const Net('net.sock.host.port')
netSockPeerAddr → const Net

Deprecated, use network.peer.address.

Examples: 192.168.0.1

Stability: development

const Net('net.sock.peer.addr')
netSockPeerName → const Net

Deprecated, no replacement at this time.

Examples: /var/my.sock

Stability: development

const Net('net.sock.peer.name')
netSockPeerPort → const Net

Deprecated, use network.peer.port.

Examples: 65531

Stability: development

const Net('net.sock.peer.port')
netTransport → const Net

Deprecated, use network.transport.

Stability: development

const Net('net.transport')

Properties

hashCode → int
The hash code for this object.
no setterinherited
index → int
A numeric identifier for the enumerated value.
no setterinherited
key → String
The attribute key string as defined in the OpenTelemetry specification.
final
name → String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMapEntry(Object value) → MapEntry<String, Object>

Available on OTelSemantic, provided by the OTelSemanticExtension extension

Converts this semantic attribute and its value to a MapEntry.
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

values → const List<Net>
A constant List of the values in this enum, in order of their declaration.