Skip to content

Conversation

@timekone
Copy link
Contributor

@timekone timekone commented Mar 22, 2021

This is how the set-user scope example looks right now:

import 'package:sentry/sentry.dart';

Sentry.configureScope(
  (scope) => scope.user = User(id: 1234, email: 'jane.doe@example.com'),
);

But User.id is a String, so there are missing quotation marks around 1234.
How it should look:

import 'package:sentry/sentry.dart';

Sentry.configureScope(
  (scope) => scope.user = User(id: "1234", email: 'jane.doe@example.com'),
);

#3244 may be related.

Add missing quotation marks. User.id is a String.
@vercel
Copy link

vercel bot commented Mar 22, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/sentry/sentry-docs/5NjQyoHpQYTsVrj1t84YSxnVUYn5
✅ Preview: https://sentry-docs-git-fork-timekone-timekone-patch-1.sentry.dev

@marandaneto
Copy link
Contributor

@timekone good catch, also fixed on #3244 thanks for that

@marandaneto marandaneto merged commit 1a97eec into getsentry:master Mar 24, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Apr 9, 2021
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