-
Notifications
You must be signed in to change notification settings - Fork 140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
✨ Implement a developer extension #686
Conversation
f816b02
to
65e5ab0
Compare
tsconfig.json
Outdated
@@ -1,5 +1,6 @@ | |||
// This tsconfig is only used for tooling (ex: typecheck in code editors) | |||
{ | |||
"extends": "./tsconfig.base.json", | |||
"include": ["./packages/**/src/**/*.ts", "./packages/**/test/**/*.ts"] | |||
"include": ["./packages/**/src", "./packages/**/test"], | |||
"exclude": ["./packages/developer-extension"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The developer extension tsconfig is not entirely compatible with the base tsconfig, notably it doesn't support strictNullChecks
, so it needs to be kept appart from the root tsconfig.
65e5ab0
to
3bd3ad4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no docs team review needed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good, just some remarks.
packages/developer-extension/src/background/domain/flushEvents.ts
Outdated
Show resolved
Hide resolved
'https://www.datadoghq-browser-agent.com/datadog-logs.js', | ||
'https://www.datadoghq-browser-agent.com/datadog-rum.js', | ||
'https://www.datadoghq-browser-agent.com/datadog-rum-recorder.js', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What if the SDK is configured to use a different intake domain? Is it possible generate these URLs based on the actual RUM and logs configurations?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This list is not intake domains, but I agree it would be great to be able to configure bundle URLs and intake lists. I'll add a list of feature ideas somewhere.
I'm not sure how to discover such URLs based on page the RUM and Logs configurations though.
packages/developer-extension/src/background/domain/logRequests.ts
Outdated
Show resolved
Hide resolved
packages/developer-extension/src/background/domain/logRequests.ts
Outdated
Show resolved
Hide resolved
packages/developer-extension/src/background/domain/logRequests.ts
Outdated
Show resolved
Hide resolved
packages/developer-extension/src/background/domain/logRequests.ts
Outdated
Show resolved
Hide resolved
packages/developer-extension/src/background/domain/replaceBundles.ts
Outdated
Show resolved
Hide resolved
Codecov Report
@@ Coverage Diff @@
## master #686 +/- ##
==========================================
+ Coverage 80.51% 80.65% +0.13%
==========================================
Files 71 71
Lines 3732 3732
Branches 884 884
==========================================
+ Hits 3005 3010 +5
+ Misses 727 722 -5
Continue to review full report at Codecov.
|
494c9bf
to
04bdf6c
Compare
Even if it's not necessary, it makes things a bit less obscure.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great!
Motivation
When working on the Browser SDK project or its integration in websites, it may be tough to see what is actually sent to the server or use local bundles on production websites.
Changes
Implement a browser extension to address developer needs. A few features are implemented, but more could be added in the future.
Testing
Future features
I have gone over the contributing documentation.