Skip to content

Commit b59e803

Browse files
committed
Bump to latest otel-cf
1 parent 2669aad commit b59e803

File tree

4 files changed

+16
-7
lines changed

4 files changed

+16
-7
lines changed

.changeset/silly-horses-lick.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@pydantic/logfire-cf-workers": patch
3+
---
4+
5+
Bump to latest otel-cf-workers, fixes span nesting and adds header capturing

examples/cf-producer-worker/src/index.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ import { instrumentTail } from '@pydantic/logfire-cf-workers';
1515

1616
const handler = {
1717
async fetch(): Promise<Response> {
18-
logfire.info('info span from inside the worker body');
18+
logfire.info('span1');
19+
await fetch('https://example.com/1');
20+
logfire.info('span2');
21+
await fetch('https://example.com/2');
22+
// await new Promise((resolve) => setTimeout(resolve, 100));
1923
return new Response('Hello World!');
2024
},
2125
} satisfies ExportedHandler;

package-lock.json

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/logfire-cf-workers/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
},
5151
"dependencies": {
5252
"@pydantic/logfire-api": "*",
53-
"@pydantic/otel-cf-workers": "^1.0.0-rc.50"
53+
"@pydantic/otel-cf-workers": "^1.0.0-rc.51"
5454
},
5555
"devDependencies": {
5656
"@cloudflare/workers-types": "4.20250311.0",

0 commit comments

Comments
 (0)