Method: Sentry::Scope#set_context

Defined in:
lib/sentry/scope.rb

#set_context(key, value) ⇒ Hash

Adds a new key-value pair to current contexts.

Parameters:

  • key (String, Symbol)
  • value (Object)

Returns:

  • (Hash)
[View source]

225
226
227
228
# File 'lib/sentry/scope.rb', line 225

def set_context(key, value)
  check_argument_type!(value, Hash)
  set_contexts(key => value)
end