opentelemetry.context.base_context module

class opentelemetry.context.context.Context[source]

Bases: dict, typing.Generic

class opentelemetry.context.context.RuntimeContext[source]

Bases: abc.ABC

The RuntimeContext interface provides a wrapper for the different mechanisms that are used to propagate context in Python. Implementations can be made available via entry_points and selected through environment variables.

abstract set_current(context)[source]

Sets the current Context object.

Parameters

context (Context) – The Context to set.

Return type

None

abstract get_current()[source]

Returns the current Context object.

Return type

Context