Skip to content
This repository was archived by the owner on Aug 14, 2024. It is now read-only.

Add clarification on set_context types #1090

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/docs/sdk/unified-api/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ Sentry.configureScope(scope =>

- `scope.set_tags(tags)`: Sets an object with key/value pairs, convenience function instead of multiple `set_tag` calls.

- `scope.set_context(key, value)`: Sets the context key to a value, overwriting a potential previous value. Removing a key is SDK-defined, either with a `remove_context` function or by passing nothing as data. The types are sdk specified.
- `scope.set_context(key, value)`: Sets the context key to a value, overwriting a potential previous value. The key must be a string, the value must be a hash or dictionary with strings for keys. Removing a key is SDK-defined, either with a `remove_context` function or by passing nothing as data. The types are sdk specified.

- `scope.set_level(level)`: Sets the level of all events sent within this scope.

Expand Down