sentry-javascript
sentry-javascript copied to clipboard
Remove Ambiguous Vue component tracking options
Problem Statement
In our Vue SDK, there are two ways how users can set the component tracking-relevant options:
Sentry.init({
// dsn...
trackComponents: true,
timeout: 1000,
hooks: ['init', 'mount', 'update']
})
Or
Sentry.init({
// dsn...
tracingOptions: {
trackComponents: true,
timeout: 1000,
hooks: ['init', 'mount', 'update']
}
})
Solution Brainstorm
We'd like to remove this ambiguity by
- [ ] 1. [Pre-v8] deprecating one of the two options (i.e. all top 3 level or the
tracingOptionsoptions)- Our current vote goes to deprecating the top-level options in favour of the
tracingOptionsobject to group component-tracking related options - However, the top level options are more prominent in our documentation and hence probably more used
- Our current vote goes to deprecating the top-level options in favour of the
- [ ] 2. [v8] removing the deprecated options and update Sentry docs accordingly