Module: XRay::Context

Included in:
DefaultContext
Defined in:
lib/aws-xray-sdk/context/context.rb

Overview

The interface of context management for the X-Ray recorder.

Instance Method Summary collapse

Instance Method Details

#clear!Object



13
14
15
# File 'lib/aws-xray-sdk/context/context.rb', line 13

def clear!
  raise 'Not implemented'
end

#current_entityObject



9
10
11
# File 'lib/aws-xray-sdk/context/context.rb', line 9

def current_entity
  raise 'Not implemented'
end

#handle_context_missingObject



22
23
24
# File 'lib/aws-xray-sdk/context/context.rb', line 22

def handle_context_missing
  raise 'Not implemented'
end

#inject_context(entity, target_ctx: nil) ⇒ Object

Put current active entity to the new context storage.



18
19
20
# File 'lib/aws-xray-sdk/context/context.rb', line 18

def inject_context(entity, target_ctx: nil)
  raise 'Not implemented'
end

#store_entity(entity:) ⇒ Object

Parameters:

  • entity (Entity)

    The entity to be stored in the context.



5
6
7
# File 'lib/aws-xray-sdk/context/context.rb', line 5

def store_entity(entity:)
  raise 'Not implemented'
end