SpanId

zio.blocks.telemetry.SpanId
See theSpanId companion object
final class SpanId(val value: Long) extends AnyVal

Represents an OpenTelemetry SpanId - a 64-bit identifier for a span.

Implemented as an AnyVal for zero heap allocation when used as a field in a case class.

Value parameters

value

the span ID as a 64-bit long

Attributes

Companion
object
Source
SpanId.scala
Graph
Supertypes
class AnyVal
trait Matchable
class Any

Members list

Value members

Concrete methods

def isValid: Boolean

Checks if this span ID is valid (not zero).

Checks if this span ID is valid (not zero).

Attributes

Source
SpanId.scala
def toByteArray: Array[Byte]

Converts this span ID to an 8-byte big-endian array.

Converts this span ID to an 8-byte big-endian array.

Attributes

Source
SpanId.scala
def toHex: String

Converts this span ID to a 16-character lowercase hexadecimal string.

Converts this span ID to a 16-character lowercase hexadecimal string.

Attributes

Source
SpanId.scala
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any
Source
SpanId.scala

Concrete fields

val value: Long

Attributes

Source
SpanId.scala