StatusData

org.typelevel.otel4s.sdk.trace.data.StatusData
See theStatusData companion class
object StatusData

Attributes

Companion
class
Source
StatusData.scala
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
StatusData.type

Members list

Type members

Classlikes

final case class Error(description: Option[String]) extends StatusData

Indicates an occurred error.

Indicates an occurred error.

Attributes

Source
StatusData.scala
Supertypes
trait Serializable
trait Product
trait Equals
class StatusData
class Object
trait Matchable
class Any
Show all
case object Ok extends StatusData

Indicates the successfully completed operation, validated by an application developer or operator.

Indicates the successfully completed operation, validated by an application developer or operator.

Attributes

Source
StatusData.scala
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class StatusData
class Object
trait Matchable
class Any
Show all
Self type
Ok.type
case object Unset extends StatusData

The default state.

The default state.

Attributes

Source
StatusData.scala
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class StatusData
class Object
trait Matchable
class Any
Show all
Self type
Unset.type

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
Source
Mirror.scala

The name of the type

The name of the type

Attributes

Inherited from:
Mirror
Source
Mirror.scala

Value members

Concrete methods

def apply(status: StatusCode): StatusData

Returns StatusData for the given status.

Returns StatusData for the given status.

Attributes

Source
StatusData.scala
def apply(status: StatusCode, description: String): StatusData

Creates StatusData using the given status and description.

Creates StatusData using the given status and description.

Value parameters

description

the description of the StatusData. Effective only for the Status.Error.

status

the status of the StatusData

Attributes

Source
StatusData.scala

Implicits

Implicits

implicit val statusDataHash: Hash[StatusData]

Attributes

Source
StatusData.scala
implicit val statusDataShow: Show[StatusData]

Attributes

Source
StatusData.scala