class Aws::Telemetry::OTelContextManager

used to return the current context within a trace.
OpenTelemetry-based {ContextManagerBase}, manages context and

def attach(context)

Returns:
  • (Object) - token A token to be used when detaching

Parameters:
  • context (Context) -- The new context
def attach(context)
  OpenTelemetry::Context.attach(context)
end

def current

Returns:
  • (Context) -
def current
  OpenTelemetry::Context.current
end

def detach(token)

Returns:
  • (Boolean) - `True` if the calls matched, `False` otherwise

Parameters:
  • token (Object) -- The token provided by matching the call to attach
def detach(token)
  OpenTelemetry::Context.detach(token)
end