Skip to content

Commit 7478711

Browse files
committed
[workers-observability] Add changelog entry for source maps GA
1 parent 518e8f8 commit 7478711

File tree

4 files changed

+37
-8
lines changed

4 files changed

+37
-8
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
title: Source Maps are Generally Available
3+
description: Source maps are now Generally Available with a larger maximum size limit
4+
products:
5+
- workers
6+
date: 2025-02-26T12:00:00Z
7+
---
8+
9+
Source maps are now Generally Available (GA). You can now be uploaded with a maximum gzipped size of 15 MB.
10+
Previously, the maximum size limit was 15 MB uncompressed.
11+
12+
Source maps help map between the original source code and the transformed/minified code that gets deployed to production.
13+
By uploading your source map, you allow Cloudflare to map the stack trace from exceptions onto the original source code making
14+
it easier to debug. To enable source maps, add the following to your
15+
[Pages Function's](pages/functions/source-maps/) or [Worker's](/workers/wrangler/configuration/) Wrangler configuration:
16+
17+
<WranglerConfig>
18+
19+
```toml
20+
upload_source_maps = true
21+
```
22+
23+
</WranglerConfig>

src/content/docs/pages/functions/source-maps.mdx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ pcx_content_type: configuration
33
title: Source maps and stack traces
44
head: []
55
description: Adding source maps and generating stack traces for Pages.
6-
sidebar:
7-
badge:
8-
text: Beta
96

107
---
118

@@ -47,9 +44,14 @@ You can then view the stack trace when streaming [real-time logs](/pages/functio
4744

4845
The source map is retrieved after your Pages Function invocation completes — it's an asynchronous process that does not impact your applications's CPU utilization or performance. Source maps are not accessible inside the application at runtime, if you `console.log()` the [stack property](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/stack), you will not get a deobfuscated stack trace.
4946

50-
5147
:::
5248

49+
## Limits
50+
51+
| Description | Limit |
52+
| ------------------------------ | ------------- |
53+
| Maximum Source Map Size | 15 MB gzipped |
54+
5355
## Related resources
5456

5557
* [Real-time logs](/pages/functions/debugging-and-logging/) - Learn how to capture Pages logs in real-time.

src/content/docs/workers/observability/logs/workers-logs.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ head_sampling_rate = 0.01 # 1% sampling rate
187187

188188
## Limits
189189

190-
| Description | Retention |
190+
| Description | Limit |
191191
| ------------------------------------------------------------------ | ---------- |
192192
| Maximum log retention period | 7 Days |
193193
| Maximum logs per account per day<sup>1</sup> | 5 Billion |

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

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ pcx_content_type: configuration
33
title: Source maps and stack traces
44
head: []
55
description: Adding source maps and generating stack traces for Workers.
6-
sidebar:
7-
badge:
8-
text: Beta
96

107
---
118

@@ -61,6 +58,13 @@ The source map is retrieved after your Worker invocation completes — it's an a
6158

6259
When Cloudflare attempts to remap a stack trace to the Worker's source map, it does so line-by-line, remapping as much as possible. If a line of the stack trace cannot be remapped for any reason, Cloudflare will leave that line of the stack trace unchanged, and continue to the next line of the stack trace.
6360

61+
## Limits
62+
63+
| Description | Limit |
64+
| ------------------------------ | ------------- |
65+
| Maximum Source Map Size | 15 MB gzipped |
66+
67+
6468
## Related resources
6569

6670
* [Tail Workers](/workers/observability/logs/logpush/) - Learn how to attach Tail Workers to transform your logs and send them to HTTP endpoints.

0 commit comments

Comments
 (0)