Giter Site home page Giter Site logo

sentry-demos / detective-scentry Goto Github PK

View Code? Open in Web Editor NEW
6.0 6.0 1.0 11.55 MB

Chrome extension which "sniffs" for monitoring SDKs (Sentry, NewRelic, Rollbar, Bugsnag)

License: BSD 3-Clause "New" or "Revised" License

TypeScript 92.09% JavaScript 3.86% CSS 4.05%

detective-scentry's People

Contributors

cstavitsky avatar ndmanvar avatar sgsharma avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

cstavitsky

detective-scentry's Issues

Datadog logo to Datadog RUM logo

Can we add a DD_RUM logo? i.e. show that its the DD_RUM offering rather than just DD?
image

THis is just so folks start differentiating between DD rum and infra monitoring

Inconsistently detects Sentry on Unreal

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

Screen Shot 2022-07-06 at 2 22 27 PM

However, we don't, sometimes?

Screen Shot 2022-07-06 at 2 23 50 PM

But we also do sometimes:
Screen Shot 2022-07-06 at 2 23 05 PM

  • @ndmanvar was able to see it
  • @cstavitsky was able to see it once, but not several other times upon reloading the page
  • Richard was not able to see it

Goal would be to figure out why this is flaky.

[lower priority] __SENTRY__ detected, but details not detected

Screenshot 2023-02-27 at 1 41 11 PM

I don't know that this is possible: this is all we see when we check for SENTRY . There doesn’t seem to be any metadata that we can dig into to find out from the SDK perspective that I’m aware of. However, opening this issue in case it ends up being something we can figure out

Screen Shot 2023-01-31 at 10 14 49 AM

Improve Sentry instrumentation

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?

Rotate pictures of Santo

Neil to supply pictures, let add a few more and it randomly selects a picture. we can add pictures of other pets also (:

Detect SPLUNK RUM

I haven't figured out how to detect it. I don't see any populated variables re. splunk on the window/global

[priority] Detect hostname of DSN

  • If Sentry is used, detect the hostname of the DSN. Are they sending to sentry.io or some other domain? This can help distinguish self-serve vs. SaaS customers.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.