Skip to content

Commit 662793e

Browse files
committed
[workers-observability] update formatting
1 parent 6ab55cd commit 662793e

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

src/content/changelog/workers/2025-03-25-gzip-source-maps.mdx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Source Maps are Generally Available
33
description: Source maps are now Generally Available with a larger maximum size limit
44
products:
55
- workers
6-
date: 2025-03-25T12:00:00Z
6+
date: 2025-03-25T00:00:00Z
77
---
88

99
import { WranglerConfig } from "~/components";
@@ -16,17 +16,19 @@ to production. By uploading your source map, you allow Cloudflare to map the sta
1616
onto the original source code making it easier to debug.
1717

1818
![Stack Trace without Source Map remapping](src/assets/images/workers-observability/without-source-map.png)
19-
**No Source Map uploaded**: notice how all the Javascript has been minified to one file, so the stack trace is missing information on file name, shows incorrect line numbers, and incorrectly references `js` instead of `ts`.
19+
20+
With **no source maps uploaded**: notice how all the Javascript has been minified to one file, so the stack trace is missing information on file name, shows incorrect line numbers, and incorrectly references `js` instead of `ts`.
2021

2122
![Stack Trace with Source Map remapping](src/assets/images/workers-observability/with-source-map.png)
22-
**With Source Map uploaded**: all methods reference the correct files and line numbers.
23+
24+
With **source maps uploaded**: all methods reference the correct files and line numbers.
2325

2426
Uploading source maps and stack trace remapping happens out of band from the Worker execution,
2527
so source maps do not affect upload speed, bundle size, or cold starts. The remapped stack
2628
traces are accessible through Tail Workers, Workers Logs, and Workers Logpush.
2729

2830
To enable source maps, add the following to your
29-
[Pages Function's](pages/functions/source-maps/) or [Worker's](/workers/observability/source-maps/) wrangler configuration:
31+
[Pages Function's](/pages/functions/source-maps/) or [Worker's](/workers/observability/source-maps/) wrangler configuration:
3032

3133
<WranglerConfig>
3234
```toml

src/content/docs/workers/observability/source-maps.mdx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,12 @@ Consider a simple project. `src/index.ts` serves as the entrypoint of the applic
7878
Let's see how source maps can simplify debugging an error in the ComplexCalculator class.
7979

8080
![Stack Trace without Source Map remapping](~/assets/images/workers-observability/without-source-map.png)
81-
**No Source Map uploaded**: notice how all the Javascript has been minified to one file, so the stack trace is missing information on file name, shows incorrect line numbers, and incorrectly references `js` instead of `ts`.
81+
82+
With **no source maps uploaded**: notice how all the Javascript has been minified to one file, so the stack trace is missing information on file name, shows incorrect line numbers, and incorrectly references `js` instead of `ts`.
8283

8384
![Stack Trace with Source Map remapping](~/assets/images/workers-observability/with-source-map.png)
84-
**With Source Map uploaded**: all methods reference the correct files and line numbers.
85+
86+
With **source maps uploaded**: all methods reference the correct files and line numbers.
8587

8688
## Related resources
8789

0 commit comments

Comments
 (0)