Skip to content

Commit e135179

Browse files
pulkitacloudflaresdnts
authored andcommitted
Create 2025-06-19-increased-blob-size-limits-in-Workers-Analytics.mdx (cloudflare#23129)
1 parent 4d890e9 commit e135179

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
---
2+
title: Increased blob size limits in Workers Analytics Engine
3+
description: We’ve increased the total allowed size of blob fields per request from 5 KB to 16 KB in the Workers Analytics Engine.
4+
products:
5+
- workers
6+
date: 2025-06-20T11:29:00Z
7+
---
8+
import { TypeScriptExample } from "~/components";
9+
10+
We’ve increased the total allowed size of [`blob`](/analytics/analytics-engine/get-started/#2-write-data-points-from-your-worker) fields on data points written to [Workers Analytics Engine](/analytics/analytics-engine/) from **5 KB to 16 KB**.
11+
12+
This change gives you more flexibility when logging rich observability data — such as base64-encoded payloads, AI inference traces, or custom metadata — without hitting request size limits.
13+
14+
You can find full details on limits for queries, filters, payloads, and more [here in the Workers Analytics Engine limits documentation](/analytics/analytics-engine/limits/).
15+
16+
<TypeScriptExample>
17+
18+
```ts title="worker.ts"
19+
export default {
20+
async fetch(request, env) {
21+
env.analyticsDataset.writeDataPoint({
22+
// The sum of all of the blob's sizes can now be 16 KB
23+
blobs: [
24+
// The URL of the request to the Worker
25+
request.url,
26+
// Some metadata about your application you'd like to store
27+
JSON.stringify(metadata),
28+
// The version of your Worker this datapoint was collected from
29+
env.versionMetadata.tag,
30+
],
31+
indexes: ["sample-index"],
32+
});
33+
}
34+
};
35+
```
36+
37+
</TypeScriptExample>

0 commit comments

Comments
 (0)