struct OpenTelemetry::Trace::Status

Overview

The outcome of a span. Only Error carries a description. Concurrency: immutable and safe to share.

Defined in:

api/trace/status.cr

Constant Summary

OK = new(Code::Ok)
UNSET = new(Code::Unset)

Constructors

Instance Method Summary

Constructor Detail

def self.error(description : String = "") : Status #

[View source]
def self.new(code : Code, description : String = "") #

[View source]

Instance Method Detail

def ==(other : self) #

def code : Code #

[View source]
def description : String #

[View source]
def hash(hasher) #
Description copied from struct Struct

See Object#hash(hasher)