OTelSemantic class abstract

Base interface for OpenTelemetry semantic convention enums.

This abstract class provides the foundation for all semantic convention enums in the OpenTelemetry API, providing a consistent interface for accessing the attribute key.

Available extensions

Constructors

OTelSemantic.new(String key)
An abtract base class for all semantics
const

Properties

hashCode int
The hash code for this object.
no setterinherited
key String
The attribute key string as defined in the OpenTelemetry specification.
final
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
Returns the string representation of this semantic attribute.
override

Operators

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