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 = "") #

[View source]

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.


[View source]
def code=(code : StatusCode) #

[View source]
def error!(message = nil) #

[View source]
def message : String #
Description copied from struct OpenTelemetry::API::AbstractStatus

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


[View source]
def message=(message : String) #

[View source]
def ok!(message = nil) #

[View source]
def pb_status_code #

[View source]
def to_json(json : JSON::Builder) #

[View source]
def to_json #

[View source]
def to_protobuf #

[View source]
def unset!(message = nil) #

[View source]