Skip to content

Commit 68c6226

Browse files
committed
docs: use @trigger.dev/sdk without /v3 in run-usage examples
Update the import paths to use @trigger.dev/sdk instead of @trigger.dev/sdk/v3 for consistency with other docs examples.
1 parent 410f7a6 commit 68c6226

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/run-usage.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ description: "Get compute duration and cost from inside a run, or for a specific
88
You can get the cost and duration of the current including retries of the same run.
99

1010
```ts
11-
import { task, usage, wait } from "@trigger.dev/sdk/v3";
11+
import { task, usage, wait } from "@trigger.dev/sdk";
1212

1313
export const heavyTask = task({
1414
id: "heavy-task",
@@ -89,7 +89,7 @@ console.log("Total cost", totalCost);
8989
You can also wrap code with `usage.measure` to get the cost and duration of that block of code:
9090

9191
```ts
92-
import { usage, logger } from "@trigger.dev/sdk/v3";
92+
import { usage, logger } from "@trigger.dev/sdk";
9393

9494
// Inside a task run function, or inside a function that's called from there.
9595
const { result, compute } = await usage.measure(async () => {

0 commit comments

Comments
 (0)