Skip to contents

Various constants related OpenTelemetry tracing.

Usage

invalid_trace_id

invalid_span_id

span_kinds

span_status_codes

Value

Not applicable.

Details

invalid_trace_id

invalid_trace_id is a string scalar, an invalid trace id. If there is no active span, then get_active_span_context() returns a span context that has an invalid trace id.

invalid_span_id

invalid_span_id is a string scalar, an invalid span id. If there is no active span, then get_active_span_context() returns a span context that has an invalid span id.

span_kinds

span_kinds is a character vector listing all possible span kinds. See the OpenTelemetry specification for when to use which.

span_status_codes

span_status_codes is a character vector listing all possible span status codes. You can set the status code of a a span with the set_status() method of otel_span objects. If not set explicitly, and the span is ended automatically (by start_local_active_span(), local_active_span() or with_active_span()) during handling an error, then otel sets the status automatically to "error". Otherwise the status stays "unset".

Examples

invalid_trace_id
#> [1] "00000000000000000000000000000000"
invalid_span_id
#> [1] "0000000000000000"
span_kinds
#>    default                                             
#> "internal"   "server"   "client" "producer" "consumer" 
span_status_codes
#> default                 
#> "unset"    "ok" "error"