Skip to content

Commit

Permalink
Clarify setContext signature (#7934)
Browse files Browse the repository at this point in the history
  • Loading branch information
lforst authored Sep 25, 2023
1 parent 0e1f374 commit 5069339
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/platforms/common/enriching-events/context.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,15 @@ If you need to be able to search on custom data, [use tags](../tags) instead.

## Structured Context

The best practice to attach custom data is via structured contexts. A context must always be a dictionary or map, and its values can be arbitrary.
<PlatformSection supported={["javascript", "node"]}>
The best way to attach custom data is with a structured context. A context
must always be an object and its values can be arbitrary.
</PlatformSection>

<PlatformSection notSupported={["javascript", "node"]}>
The best way to attach custom data is with a structured context. A context
must always be an object and its values can be arbitrary.
</PlatformSection>

<PlatformSection supported={["javascript", "node"]}>

Expand Down

1 comment on commit 5069339

@vercel
Copy link

@vercel vercel bot commented on 5069339 Sep 25, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

sentry-docs – ./

sentry-docs-git-master.sentry.dev
docs.sentry.io
sentry-docs.sentry.dev

Please sign in to comment.