Comments (3)
After using this for a while, i found the use of setTransaction
to be a complete semantic mismatch. I am using routes as transactions for now and turned it off. I am starting to think this option makes little sense at all, given that requests can happen concurrently.
Setting setFingerprint
has a similar issue when concurrent requests are involved, it randomly split some errors I had that were unrelated to the current queries. Again, concurrency makes the results totally unpredictable. That said, including it on errors seems sensible, perhaps the only sensible option.
I do like the conditional includes for breadcrumbs. Data volume and size do play a role here, it makes sense to surface as much as possible when errors happen and just have minimal info in other cases.
My proposal to go ahead would be to:
- turn off
setTransaction
by default, perhaps deprecate it - add
on-error
as the new default forsetFingerprint
- add
on-error
to options withinattachBreadcrumbs
, perhaps also as default for some.
from apollo-link-sentry.
Thanks for both of your efforts in improving this package.
With regards to setTransaction
, I agree that it should be disabled by default. To give a little context, when I was writing this package, the app I was writing it for had no concurrent requests. Or maybe it did, but it never happened that two requests failed. Anyway, I do still think the option is useful for the scenario in which I applied it to. We'll want to reference this discussion in the docs, once we change the default.
I think updating the options with an on-error
makes sense, but I'm not too comfortable with the notation yet. I will think about this some more tomorrow or Wednesday.
from apollo-link-sentry.
I think I'm asking for the same thing in issue #301 as this issue is asking for, right?
from apollo-link-sentry.
Related Issues (20)
- `includeError` displaying errors as `"[Array]"` HOT 10
- apollo-link-sentry doesn't seem to natively support IE11 HOT 7
- Question: Possible to only attach breadcrumbs when an error occurs? HOT 1
- Question: recommended way to limit size of breadcrumbs? HOT 1
- excludeGraphQLFetch should remove unsupported fragment definitions HOT 2
- Maintainership of this package HOT 8
- Test usage with subscriptions HOT 3
- Test usage with `apollo-link-error` HOT 2
- Missing dependencies on NextJS build
- Add sentry-trace header HOT 4
- Newest version breaks with react-native HOT 2
- Severity is undefined HOT 4
- Create-React-App warns about missing SourceMap HOT 1
- Remove peer dependencies HOT 1
- Importing apollo-link-sentry package gives 350kb of unwanted and unused code. HOT 5
- Transform function can change response for downstream links HOT 2
- Missing Typescript types for zen-observable in non-dev installation HOT 2
- Remove specific param from gql mutations HOT 1
- Enable `apollo-link-sentry` tree-shaking via ESM HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apollo-link-sentry.