From 8cde98ec94dfc9c302bb208eff9bfd3510e83d1d Mon Sep 17 00:00:00 2001 From: Jack Williams <1736957+jpwilliams@users.noreply.github.com> Date: Tue, 24 Oct 2023 13:29:27 +0000 Subject: [PATCH] Fix Sentry middleware example docs typing for v3 --- pages/docs/reference/middleware/examples.mdx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pages/docs/reference/middleware/examples.mdx b/pages/docs/reference/middleware/examples.mdx index 982ceeb0a..be1e1737b 100644 --- a/pages/docs/reference/middleware/examples.mdx +++ b/pages/docs/reference/middleware/examples.mdx @@ -409,13 +409,13 @@ const sentryMiddleware = new InngestMiddleware({ Sentry.init({ dsn: "..." }); // Set up some tags that will be applied to all events - Sentry.setTag("inngest.client.name", client.name); + Sentry.setTag("inngest.client.id", client.id); return { onFunctionRun({ ctx, fn }) { // Add specific context for the given function run Sentry.setTags({ - "inngest.function.id": fn.id(client.name), + "inngest.function.id": fn.id(client.id), "inngest.function.name": fn.name, "inngest.event": ctx.event.name, "inngest.run.id": ctx.runId, @@ -458,7 +458,7 @@ const sentryMiddleware = new InngestMiddleware({ // Capture step output and log errors if (step) { Sentry.setTags({ - "inngest.step.name": step.name, + "inngest.step.name": step.displayName, "inngest.step.op": step.op, });