Method: Aws::Xray.current_context

Defined in:
lib/aws/xray.rb

.current_contextAws::Xray::Context

Return current tracing context set to current thread.

Returns:

Raises:

  • (Aws::Xray::NotSetError)

    when the current context is not yet set. Call this method after start tracing with ‘Aws::Xray.trace`.



67
68
69
# File 'lib/aws/xray.rb', line 67

def current_context
  Context.current
end