class Aws::Telemetry::ContextManagerBase
Base for all ‘ContextManager` classes.
Public Instance Methods
attach(context)
click to toggle source
Associates a Context with the caller’s current execution unit. Returns a token to be used with the matching call to detach.
@param [Object] context The new context @return [Object] token A token to be used when detaching
# File lib/aws-sdk-core/telemetry/base.rb, line 162 def attach(context) raise NotImplementedError end
current()
click to toggle source
Returns current context.
@return [Context]
# File lib/aws-sdk-core/telemetry/base.rb, line 153 def current raise NotImplementedError end
detach(token)
click to toggle source
Restore the previous Context associated with the current execution unit to the value it had before attaching a specified Context.
@param [Object] token The token provided by matching the call to attach @return [Boolean] ‘True` if the calls matched, `False` otherwise
# File lib/aws-sdk-core/telemetry/base.rb, line 172 def detach(token) raise NotImplementedError end