Skip to content

Commit 26455a1

Browse files
committed
Fix README example
1 parent 0a89004 commit 26455a1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,9 @@ Optionally, you can use the Logfire API package for creating manual spans. Insta
129129
import * as logfire from '@pydantic/logfire-api'
130130

131131
export default async function Home() {
132-
return logfire.startActiveSpan(logfire.Level.Warning, 'A warning span', {}, {}, async () => {
132+
return logfire.span('A warning span', {}, {
133+
level: logfire.Level.Warning,
134+
}, async () => {
133135
logfire.info('Nested info span');
134136
return <div>Hello</div>;
135137
})

0 commit comments

Comments
 (0)