-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
ci(build): Parallelize and cache mdx pipeline - fix md cache #14109
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
Changes from 25 commits
25baf2b
ac13fc3
8779295
ce8368a
8bf9f4b
871e0fc
61c73a3
3862de8
f529f6a
39f9869
0673c54
07062bb
6c1a7fc
54fd866
eaf2bcf
7211307
08df8fc
3887c43
a42bbba
18d6ea6
2c2dcc9
6a1e895
49c83e1
9ce08af
b85ef27
a93fa94
fcc9bac
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,8 +4,6 @@ sidebar_order: 1 | |
| description: "Understand and monitor how your application performs in production. Track key metrics, analyze bottlenecks, and resolve performance issues with distributed tracing, detailed transaction data, and automated issue detection." | ||
| --- | ||
|
|
||
| <Include name="performance-moving.mdx" /> | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This file did not exist at all. |
||
|
|
||
| In many tools, Performance Monitoring is just about tracking a few key metrics on your web pages. Sentry takes a different approach. By setting up [Tracing](/concepts/key-terms/tracing/), Sentry captures detailed performance data for every transaction in your entire application stack and automatically presents it in a variety of easy-to-use but powerful features so you can rapidly identify and resolve performance issues as they happen - all in one place. | ||
|
|
||
| <Alert> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,9 +19,7 @@ If you want to configure source maps to upload manually, follow the guide for yo | |
|
|
||
| ### Guides for Source Maps | ||
|
|
||
| - <PlatformLink to="/sourcemaps/uploading/typescript/"> | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @AbhiPrasad this was causing a visual glitch on https://docs.sentry.io/platforms/javascript/guides/cloudflare/sourcemaps/ |
||
| TypeScript (tsc) | ||
| </PlatformLink> | ||
| - <PlatformLink to="/sourcemaps/uploading/typescript/">TypeScript (tsc)</PlatformLink> | ||
|
|
||
| <Alert> | ||
| If you're using a bundler like Webpack, Vite, Rollup, or Esbuild, use the | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,6 +7,6 @@ If you can't find the tool of your choice in the list below, we recommend you ch | |
|
|
||
| </Alert> | ||
|
|
||
| <Include name="sourcemaps/overview/javascript.cloudflare.mdx" /> | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| <Include name="../platform-includes/sourcemaps/overview/javascript.cloudflare.mdx" /> | ||
|
|
||
| <PageGrid /> | ||
| <PageGrid /> | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,37 +1,13 @@ | ||
| import fs from 'fs'; | ||
| import {readdir} from 'fs/promises'; | ||
| import path from 'path'; | ||
|
|
||
| // pipe two functions together | ||
| function pipe<T, U, V>(f: (x: T) => U, g: (y: U) => V): (x: T) => V; | ||
| // pipe three functions | ||
| function pipe<T, U, V, W>(f: (x: T) => U, g: (y: U) => V, h: (z: V) => W): (x: T) => W; | ||
| function pipe(...fns: Function[]) { | ||
| return x => fns.reduce((v, f) => f(v), x); | ||
| } | ||
|
|
||
| const map = | ||
| <T, U>(fn: (a: T) => U) => | ||
| (input: T[]) => | ||
| input.map(fn); | ||
|
|
||
| const walkDir = (fullPath: string) => { | ||
| return fs.statSync(fullPath).isFile() ? fullPath : getAllFilesRecursively(fullPath); | ||
| }; | ||
|
|
||
| const pathJoinPrefix = (prefix: string) => (extraPath: string) => | ||
| path.join(prefix, extraPath); | ||
|
|
||
| /** | ||
| * @returns Array of file paths | ||
| */ | ||
| const getAllFilesRecursively = (folder: string): [string] => { | ||
| return pipe( | ||
| // yes, this arrow function is necessary to narrow down the readdirSync overload | ||
| (x: string) => fs.readdirSync(x), | ||
| map(pipe(pathJoinPrefix(folder), walkDir)), | ||
| // flattenArray | ||
| x => x.flat(Infinity) | ||
| )(folder) as [string]; | ||
| const getAllFilesRecursively = async (folder: string): Promise<string[]> => { | ||
BYK marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| return (await readdir(folder, {withFileTypes: true, recursive: true})) | ||
| .filter(dirent => dirent.isFile()) | ||
| .map(dirent => path.join(dirent.parentPath || dirent.path, dirent.name)); | ||
| }; | ||
|
|
||
| export default getAllFilesRecursively; | ||

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 file did not exist at all.