Skip to content

Commit

Permalink
Fix Sentry middleware example docs typing for v3
Browse files Browse the repository at this point in the history
  • Loading branch information
jpwilliams committed Oct 24, 2023
1 parent e0e33c1 commit 8cde98e
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

0 comments on commit 8cde98e

Please sign in to comment.