struct OpenTelemetry::API::Status

Defined in:

api/status.cr

Constructors

Instance Method Summary

Instance methods inherited from struct OpenTelemetry::API::AbstractStatus

code code, code=(code : StatusCode) code=, error!(message = nil) error!, message message, message=(message : String) message=, ok!(message = nil) ok!, pb_status_code pb_status_code, to_json(json : JSON::Builder)
to_json
to_json
, to_protobuf to_protobuf, unset!(message = nil) unset!

Constructor methods inherited from struct OpenTelemetry::API::AbstractStatus

new(code = StatusCode::Unset, message = "") new

Constructor Detail

def self.new(code : OpenTelemetry::API::AbstractStatus::StatusCode = StatusCode::Unset, message : String = "") #

Instance Method Detail

def code : StatusCode #
Description copied from struct OpenTelemetry::API::AbstractStatus

This is assumed to be implemented as a property in the SDK.


def code=(code : StatusCode) #

def error!(message = nil) #

def message : String #
Description copied from struct OpenTelemetry::API::AbstractStatus

This is assumed to be implemented as a property in the SDK.


def message=(message : String) #

def ok!(message = nil) #

def pb_status_code #

def to_json(json : JSON::Builder) #

def to_json #

def to_protobuf #

def unset!(message = nil) #