Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explain how to set baggage and sentry-trace meta tags on Remix. #5377

Merged
merged 2 commits into from
Aug 5, 2022

Conversation

onurtemizkan
Copy link
Collaborator

Documents the updates of getsentry/sentry-javascript#5509

@vercel
Copy link

vercel bot commented Aug 3, 2022

@onurtemizkan is attempting to deploy a commit to the Sentry Team on Vercel.

A member of the Team first needs to authorize it.

@@ -30,6 +30,23 @@ For traces that begin in your backend, you can connect the automatically-generat
</html>
```

<PlatformSection supported={["javascript.remix"]} notSupported={["javascript"]}>

Remix SDK attaches `sentry-trace` and `baggage` values from your `root` loader. You need to use [`meta`](https://remix.run/docs/en/v1/api/conventions#meta) function to attach the data from your `loader` as `<meta>` tags. The following code snippet shows how to do this:
Copy link
Member

Choose a reason for hiding this comment

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

We’ll need to add a note about minimum SDK version here?

@AbhiPrasad AbhiPrasad merged commit 6b85758 into getsentry:master Aug 5, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Aug 21, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants