-
Notifications
You must be signed in to change notification settings - Fork 6
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
[plugin] RUM plugin #78
Merged
Merged
Changes from all commits
Commits
Show all changes
60 commits
Select commit
Hold shift + click to select a range
30871ce
Add sourcemaps plugin
yoannmoinet fb56bc8
Automation
yoannmoinet e824eef
Update when we inject git data
yoannmoinet 263640f
Update packages/plugins/rum/src/sourcemaps/files.ts
yoannmoinet 19e3862
Add intake override and test it
yoannmoinet 38bc7d7
Merge remote-tracking branch 'origin/master' into yoann/rum-plugin
yoannmoinet e69c1b8
Run integrity
yoannmoinet 8d90ef3
Update endPoint usage
yoannmoinet 9271c7c
Update how we compute the body
yoannmoinet a9ce05f
Remove form-data dependency
yoannmoinet afb82ea
Add type to File
yoannmoinet 65eea4a
Install nock
yoannmoinet 12508da
Fix bail calls
yoannmoinet 7d6f49d
Use a mock server instead of mocking fetch
yoannmoinet 5766384
Update licenses
yoannmoinet 07af3f4
Update API's url in tests
yoannmoinet 19fd428
Mock more requests
yoannmoinet d98411a
Fix unplugin
yoannmoinet b1ceafe
Update licenses
yoannmoinet 1b54c59
Do not ignore patches
yoannmoinet f36076c
Fix types name
yoannmoinet f4c6b67
Fix unplugin patch
yoannmoinet 78d4c25
Add an 'info' level to log
yoannmoinet 794287b
Fix bundling issue with module.exports overrides
yoannmoinet 7b75f29
Add more logs
yoannmoinet 62e986b
Update types
yoannmoinet 08ad0d4
Better log for missing tracked files
yoannmoinet 9412e71
Update esbuild webpack rollup
yoannmoinet 62511af
Refactor tests for telemetry
yoannmoinet b7ac51c
Update tsconfig for better esm support
yoannmoinet 6b38aa0
Fix @dd/tools exports
yoannmoinet 7a0a011
Move test constants
yoannmoinet f7aa680
Update prefix type
yoannmoinet 0ca8c30
Add outputFiles to globalContext
yoannmoinet 14d5160
Fix telemetry tests
yoannmoinet 94439e3
Add webpack4 support to outputFiles context
yoannmoinet e7e87c3
Run tests with webpack4 as well
yoannmoinet 7bc1843
Fix rollupConfig.mjs import
yoannmoinet 5b2192e
Add outputDir to context for webpack and esbuild
yoannmoinet b8a4b48
Update test
yoannmoinet 5fc71c0
Fix outputFiles global context as it was not filled in time for webpack
yoannmoinet 8fe118c
Make jest silent
yoannmoinet 22db40c
Run all bundlers
yoannmoinet 35aa4a6
Use context instead of basePath for sourcemaps
yoannmoinet 54ab14b
Clean builds before running bundlers
yoannmoinet b61d5b5
Update tests
yoannmoinet 48bf921
Fix lock
yoannmoinet 92f7158
Remove comment
yoannmoinet b99b3c9
Update scripts for loops
yoannmoinet f86c49e
Change error log
yoannmoinet 0a37000
Update test with context to actually reflect context's mutable object
yoannmoinet 69bcdc5
Add test:noisy
yoannmoinet 08b9010
Webpack 4 is hanging, delay the resolution
yoannmoinet 8865781
Remove .only
yoannmoinet 5952bad
Merge pull request #85 from DataDog/yoann/refactor-testing-telemetry
yoannmoinet b2ca98d
Merge pull request #84 from DataDog/yoann/more-global-contexts
yoannmoinet a92830f
Update output
yoannmoinet d6aaea2
Merge pull request #87 from DataDog/yoann/use-context-for-sourcemaps
yoannmoinet 872ab89
Update unplugin to latest
yoannmoinet 500f410
v2.1.0
yoannmoinet File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
yarn-error.log | ||
.yarn/* | ||
!.yarn/cache | ||
!.yarn/patches | ||
!.yarn/releases | ||
!.yarn/plugins | ||
!.vscode | ||
|
||
webpack-profile-debug | ||
esbuild-profile-debug | ||
node_modules/ | ||
dist/ |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-987 KB
.yarn/cache/@rollup-rollup-darwin-arm64-npm-4.17.1-add109e212-10.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-1.01 MB
.yarn/cache/@rollup-rollup-linux-arm64-gnu-npm-4.17.1-5704467160-10.zip
Binary file not shown.
Binary file added
BIN
+1.01 MB
.yarn/cache/@rollup-rollup-linux-arm64-gnu-npm-4.18.0-f633823e2b-10.zip
Binary file not shown.
Binary file removed
BIN
-1.05 MB
.yarn/cache/@rollup-rollup-linux-x64-gnu-npm-4.17.1-a2ec383d51-10.zip
Binary file not shown.
Binary file added
BIN
+1.06 MB
.yarn/cache/@rollup-rollup-linux-x64-gnu-npm-4.18.0-0aa51442a0-10.zip
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-2.97 KB
.yarn/cache/@types-eslint-scope-npm-3.7.0-7c68026d97-27f302625b.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+3.26 KB
.yarn/cache/@types-source-list-map-npm-0.1.6-2e7e79b68d-9cd294c121.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+8.28 KB
.yarn/cache/@types-webpack-sources-npm-3.2.3-dce1c60a50-7b557f242e.zip
Binary file not shown.
Binary file removed
BIN
-49.5 KB
.yarn/cache/@webassemblyjs-ast-npm-1.11.1-623d3d973e-28cc949e2e.zip
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-4.56 KB
.yarn/cache/@webassemblyjs-floating-point-hex-parser-npm-1.11.1-f8af5c0037-b8efc6fa08.zip
Binary file not shown.
Binary file added
BIN
+3.74 KB
.yarn/cache/@webassemblyjs-floating-point-hex-parser-npm-1.11.6-3a9928fc76-29b0875884.zip
Binary file not shown.
Binary file removed
BIN
-3.79 KB
.yarn/cache/@webassemblyjs-helper-api-error-npm-1.11.1-b839d59053-0792813f0e.zip
Binary file not shown.
Binary file added
BIN
+2.56 KB
.yarn/cache/@webassemblyjs-helper-api-error-npm-1.11.6-75f6275ff4-e8563df851.zip
Binary file not shown.
Binary file removed
BIN
-5.44 KB
.yarn/cache/@webassemblyjs-helper-buffer-npm-1.11.1-6afb1ef4aa-a337ee44b4.zip
Binary file not shown.
Binary file added
BIN
+6.19 KB
.yarn/cache/@webassemblyjs-helper-buffer-npm-1.12.1-d025434a45-1d8705daa4.zip
Binary file not shown.
Binary file removed
BIN
-4.88 KB
.yarn/cache/@webassemblyjs-helper-numbers-npm-1.11.1-a41f7439eb-cbe5b456fa.zip
Binary file not shown.
Binary file added
BIN
+3.1 KB
.yarn/cache/@webassemblyjs-helper-numbers-npm-1.11.6-819ddab1da-9ffd258ad8.zip
Binary file not shown.
Binary file removed
BIN
-8.36 KB
.yarn/cache/@webassemblyjs-helper-wasm-bytecode-npm-1.11.1-84f0ee4c30-009b494010.zip
Binary file not shown.
Binary file added
BIN
+4.28 KB
.yarn/cache/@webassemblyjs-helper-wasm-bytecode-npm-1.11.6-3bc23747de-4ebf03e9c1.zip
Binary file not shown.
Binary file removed
BIN
-9.16 KB
.yarn/cache/@webassemblyjs-helper-wasm-section-npm-1.11.1-e4e8450b9d-dd6eee9f73.zip
Binary file not shown.
Binary file added
BIN
+9.37 KB
.yarn/cache/@webassemblyjs-helper-wasm-section-npm-1.12.1-cd0e2f1eab-e91e6b2811.zip
Binary file not shown.
Binary file removed
BIN
-3.78 KB
.yarn/cache/@webassemblyjs-ieee754-npm-1.11.1-897eb85879-23a0ac02a5.zip
Binary file not shown.
Binary file added
BIN
+2.3 KB
.yarn/cache/@webassemblyjs-ieee754-npm-1.11.6-95c92f446a-13574b8e41.zip
Binary file not shown.
Binary file removed
BIN
-17.1 KB
.yarn/cache/@webassemblyjs-leb128-npm-1.11.1-fd9f27673d-85beb7156f.zip
Binary file not shown.
Binary file added
BIN
+11.5 KB
.yarn/cache/@webassemblyjs-leb128-npm-1.11.6-697d62da2e-ec3b72db0e.zip
Binary file not shown.
Binary file removed
BIN
-7.2 KB
.yarn/cache/@webassemblyjs-utf8-npm-1.11.1-583036e767-b93e57912d.zip
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-10.5 KB
.yarn/cache/@webassemblyjs-wasm-edit-npm-1.11.1-34565c1e92-6a029ae21c.zip
Binary file not shown.
Binary file added
BIN
+12.5 KB
.yarn/cache/@webassemblyjs-wasm-edit-npm-1.12.1-727bec592a-5678ae02db.zip
Binary file not shown.
Binary file removed
BIN
-8.25 KB
.yarn/cache/@webassemblyjs-wasm-gen-npm-1.11.1-a6d0b4d37d-5da040e780.zip
Binary file not shown.
Binary file added
BIN
+9.5 KB
.yarn/cache/@webassemblyjs-wasm-gen-npm-1.12.1-bbe22ad265-ec45bd50e8.zip
Binary file not shown.
Binary file removed
BIN
-5.48 KB
.yarn/cache/@webassemblyjs-wasm-opt-npm-1.11.1-0bb73c20b9-00f85d1f76.zip
Binary file not shown.
Binary file added
BIN
+6.76 KB
.yarn/cache/@webassemblyjs-wasm-opt-npm-1.12.1-450c932de6-21f25ae109.zip
Binary file not shown.
Binary file removed
BIN
-25.8 KB
.yarn/cache/@webassemblyjs-wasm-parser-npm-1.11.1-cd49c51fdc-cc6de8f4d9.zip
Binary file not shown.
Binary file added
BIN
+27.3 KB
.yarn/cache/@webassemblyjs-wasm-parser-npm-1.12.1-54a7a19806-f7311685b7.zip
Binary file not shown.
Binary file removed
BIN
-8.81 KB
.yarn/cache/@webassemblyjs-wast-printer-npm-1.11.1-f1213430d6-bd1cf7a063.zip
Binary file not shown.
Binary file added
BIN
+9.59 KB
.yarn/cache/@webassemblyjs-wast-printer-npm-1.12.1-e75655c7ff-1a6a4b6bc4.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-8.93 KB
.yarn/cache/acorn-import-assertions-npm-1.7.6-06125ebcd0-3df7728ff6.zip
Binary file not shown.
Binary file added
BIN
+10.6 KB
.yarn/cache/acorn-import-attributes-npm-1.9.5-d1e666eb35-8bfbfbb6e2.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+39.5 KB
.yarn/cache/electron-to-chromium-npm-1.4.820-366c81a402-6f283fdb22.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+48.2 KB
...ugin-npm-1.10.1-b23391b255-d9819fad8a.zip → ...ugin-npm-1.11.0-0b6b24a0d1-debe6223b0.zip
Binary file not shown.
Binary file added
BIN
+6.87 KB
.yarn/cache/update-browserslist-db-npm-1.1.0-3d2cb7d955-d70b9efeaf.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+451 KB
...pack-npm-4.44.2-eedc4b763e-1be2628244.zip → ...pack-npm-4.47.0-42e477a08c-d5763ee8d6.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
diff --git a/dist/index.js b/dist/index.js | ||
index e20e787eb708d88135de6fbff72b0460ac7ae13b..b2a20f4adb99fb1b055d9fd661cf56e2e549926c 100644 | ||
--- a/dist/index.js | ||
+++ b/dist/index.js | ||
@@ -1655,8 +1655,8 @@ function getRspackPlugin(factory) { | ||
}); | ||
} | ||
if (plugin.writeBundle) { | ||
- compiler.hooks.afterEmit.tap(plugin.name, () => { | ||
- plugin.writeBundle(); | ||
+ compiler.hooks.afterEmit.tapPromise(plugin.name, async () => { | ||
+ await plugin.writeBundle(); | ||
}); | ||
} | ||
} | ||
@@ -1910,8 +1910,8 @@ function getWebpackPlugin(factory) { | ||
}); | ||
} | ||
if (plugin.writeBundle) { | ||
- compiler.hooks.afterEmit.tap(plugin.name, () => { | ||
- plugin.writeBundle(); | ||
+ compiler.hooks.afterEmit.tapPromise(plugin.name, async () => { | ||
+ await plugin.writeBundle(); | ||
}); | ||
} | ||
} | ||
diff --git a/dist/index.mjs b/dist/index.mjs | ||
index 7d9b930daf919a180caf2e33a6ed684d53dbc1c5..f4015052d77ae18ae5357fa670ef85e4c3c0007f 100644 | ||
--- a/dist/index.mjs | ||
+++ b/dist/index.mjs | ||
@@ -1619,8 +1619,8 @@ function getRspackPlugin(factory) { | ||
}); | ||
} | ||
if (plugin.writeBundle) { | ||
- compiler.hooks.afterEmit.tap(plugin.name, () => { | ||
- plugin.writeBundle(); | ||
+ compiler.hooks.afterEmit.tapPromise(plugin.name, async () => { | ||
+ await plugin.writeBundle(); | ||
}); | ||
} | ||
} | ||
@@ -1874,8 +1874,8 @@ function getWebpackPlugin(factory) { | ||
}); | ||
} | ||
if (plugin.writeBundle) { | ||
- compiler.hooks.afterEmit.tap(plugin.name, () => { | ||
- plugin.writeBundle(); | ||
+ compiler.hooks.afterEmit.tapPromise(plugin.name, async () => { | ||
+ await plugin.writeBundle(); | ||
}); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Should probably fix these.
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.
Do you think we have a good team to add for RUM?
This one seemed a bit too wide maybe.