question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

options.initialScope is not supported

See original GitHub issue

Passing initialScope in the options does not work on RN or any of the JS-Hybrid SDKs as the scope’s update method sets each value individually and does not call the extended methods that send the scope down to the native layer.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
marandanetocommented, Dec 3, 2021
1reaction
pkecommented, Oct 1, 2021

I can confirm, it took me an hour to play with initial scope but it does not seem to allow me to add tags. However, Sentry.configureScope also does not allow me to add tags.

Sentry.init({
 //...,
 initialScope(scope) {
   return scope.setTag("test", true)
 }

The test tag never shows up on any issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Basic Options for JavaScript | Sentry Documentation
Learn more about how to configure the SDK. These options are set when the SDK is first initialized, passed to the init function...
Read more >
asp.net core - Unable to set scopes with ... - Stack Overflow
However, since I'm working on an API controller only, and not a web app, I want to do this instead: string[] initialScopes =...
Read more >
Initial Scope vs. Committed - Atlassian Community
I just checked today, and the "initial scope" that is reported in the velocity widget is not matching the "committed" value that is...
Read more >
Default Settings - Getting Started - Royal Apps
Even when the user tries to change options or default settings in the user interface which have been configured in the default scope,...
Read more >
Configuring Discovery Views for Primo VE
To configure discovery options (Configuration Menu > Discovery) for Primo VE ... Currently, Tags functionality is not supported in consortia ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found