Skip to content

Commit

Permalink
πŸ“ˆ server: fix trace ignoring for empty blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
cruzdanilo committed Nov 5, 2024
1 parent 226d6d8 commit bdf5f9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/hooks/block.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export default app.post(
async (c) => {
const { timestamp, logs } = c.req.valid("json").event.data.block;
if (logs.length === 0) {
getActiveSpan()?.setAttribute("exa.ignore", false);
getActiveSpan()?.setAttribute("exa.ignore", true);
return c.json({}, 200);
}
setContext("alchemy", await c.req.json());
Expand Down

0 comments on commit bdf5f9d

Please sign in to comment.