sentry-demos / detective-scentry Goto Github PK
View Code? Open in Web Editor NEWChrome extension which "sniffs" for monitoring SDKs (Sentry, NewRelic, Rollbar, Bugsnag)
License: BSD 3-Clause "New" or "Revised" License
Chrome extension which "sniffs" for monitoring SDKs (Sentry, NewRelic, Rollbar, Bugsnag)
License: BSD 3-Clause "New" or "Revised" License
Currently we just know whether Sentry was detected. Here we can detect whether it was used for errors only or both errors+perf.
@cstavitsky has been working on this: #8
Possible bug: flaky Sentry detection on https://unrealengine.com/id/login?response_type=code&redirect_uri=&client_id=3adb22b897e24666971f9a273b1c15e8, but two others do not.
__SENTRY__
is present on that page, so we should see it
However, we don't, sometimes?
Goal would be to figure out why this is flaky.
requires performance to be detected
i.e. detect super low sample rate, like 4
applies only to hardcoded sample rate
What we currently do, what I tried:
installed Sentry using npm
configured Sentry per normal JS instructions, initializing it in content.js
received an error message: Uncaught SyntaxError: Cannot use import statement outside a module (at content.js:11:1)
in package.json, added a top-level key "type": "module" (but this did not fix the issue as stackoverflow suggested). More stackoverflowing led to more dead ends π
Another resource I looked into: adding sentry to chrome extension β this was not exactly needed since technically content.js does not run as a service worker β it gets appended to the DOM using injectScript
I also tried injecting the sentry script itself, re-using the injectScript function but passing the src as the CDN sentry link. But when I do that, then try to Sentry.init I get: Uncaught ReferenceError: Sentry is not defined.
@ndmanvar 's idea for improvement:
random idea: if there is an error (with content.js), store the error in localstorage, and then have popup.js read off of that and send up (via Sentry.captureException / captureMessage) ? (edited)
^ i.e. wrap all of content.js essentialy in a try/catch, and then do the above in catch?
Currently including dist
as code in repo
Create script for creating release + attaching dist. Update readme accordingly as well
Neil to supply pictures, let add a few more and it randomly selects a picture. we can add pictures of other pets also (:
I haven't figured out how to detect it. I don't see any populated variables re. splunk on the window
/global
DD RUM is clearly present, but the sniffer does not detect it.
Transaction sampling shows at 1000%
https://sanfrancisco-ca.county-taxes.com/public/search/gsgx_property_tax
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.