Skip to content

Commit

Permalink
Fix Sentry middleware example docs typing for v3 (#547)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpwilliams authored Oct 24, 2023
1 parent e0e33c1 commit 6e704b7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pages/docs/reference/middleware/examples.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
});

Expand Down

1 comment on commit 6e704b7

@vercel
Copy link

@vercel vercel bot commented on 6e704b7 Oct 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

website – ./

website-git-main-inngest.vercel.app
inngest.vercel.app
www.inngest.com
website-inngest.vercel.app

Please sign in to comment.