zio.blocks.telemetry.TraceFlags
See theTraceFlags companion object
final class TraceFlags(val byte: Byte) extends AnyVal
Represents OpenTelemetry trace flags - a single byte where bit 0 represents the sampled flag.
Implemented as an AnyVal for zero heap allocation when used as a field in a case class.
Value parameters
- byte
-
the underlying byte value
Attributes
- Companion
-
object
- Source
-
TraceFlags.scala
- Graph
-
- Supertypes
-
class AnyVal
trait Matchable
class Any
Members list
Checks if the sampled flag (bit 0) is set.
Returns the underlying byte value.
Converts this trace flags to a 2-character lowercase hexadecimal string.
Converts this trace flags to a 2-character lowercase hexadecimal string.
Attributes
- Source
-
TraceFlags.scala
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
-
TraceFlags.scala
Creates a new TraceFlags with the sampled flag set or cleared.
Creates a new TraceFlags with the sampled flag set or cleared.
Attributes
- Source
-
TraceFlags.scala