struct

OpenTelemetry::API::Context

Inherits OpenTelemetry::API::AbstractContext / Struct / Value / Object

Constructors

new(entries)
Source

Class methods

[](key)
Source
[]=(key, value)
Source
[]?(key)
Source
attach(entries)
Source
clear
Source
create_key(name)
Source
create_key
Source
current
Source
detach(token)

Restores the previous Context associated with the current Fiber. The supplied token is used to check if the call to detach is balanced with a corresponding attach call. A warning is logged if the calls are unbalanced.

Source
set_value(key, value)
Source
stack
Source
value(key)
Source
value?(key)
Source
with(key, values)

Execute a block in a new context with key set to value. Restores the previous context after the block executes.

Source
with(values)

@param [String] key The lookup key @param [Hash] values Will be merged with values of the current context and returned in a new context @param [Callable] Block to execute in a new context @yield [context, values] Yields the newly created context and values to the block

Source

Instance methods

[](key)
Source
[]=(key, value)
Source
[]?(key)
Source
entries
Source
merge(other_entries)
Source
object_id

This is assumed to be implemented as a getter with a default value of CSUUID.unique.

Source
set_value(key, value)
Source
value(key)
Source
value?(key)
Source

Nested types