Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add step name or ID when there’s a NESTING_STEPS error #549

Merged
merged 2 commits into from
Apr 23, 2024

Conversation

maktouch
Copy link
Contributor

@maktouch maktouch commented Apr 20, 2024

Summary

When there's a NESTING_STEPS error, debugging it is tricky because the stack traces can't necessarily determine the correct faulty file.

Checklist

- [ ] Added a docs PR that references this PR N/A, this is augmenting an existing error
- [ ] Added unit/integration tests N/A, I don't think it's worth it
- [ ] Added changesets if applicable N/A, I don't think it's worth it.

Related

Copy link

changeset-bot bot commented Apr 20, 2024

🦋 Changeset detected

Latest commit: c984869

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
inngest Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@jpwilliams
Copy link
Member

This is great, @maktouch! Thanks for the contribution.

In terms of the original issue (#546) and not being able to see which step is causing the problem, would #531 also be a part of helping with this?

Basically, is the current stack trace useless as it's mostly listing calls internal to this library?

@jpwilliams jpwilliams added ⬆️ improvement Performance, reliability, or usability improvements 📦 inngest Affects the `inngest` package labels Apr 22, 2024
@jpwilliams jpwilliams self-assigned this Apr 22, 2024
@maktouch
Copy link
Contributor Author

Ideally, I think better stack traces are the way to go, so #531 makes sense.

This is how it currently looks

CleanShot 2024-04-22 at 12 47 33

@jpwilliams jpwilliams merged commit f759de1 into inngest:main Apr 23, 2024
33 of 35 checks passed
jpwilliams pushed a commit that referenced this pull request Apr 23, 2024
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## [email protected]

### Patch Changes

- [#520](#520)
[`0703740`](0703740)
Thanks [@jpwilliams](https://github.com/jpwilliams)! - Add selective
header forwarding when sending events, allowing context propagation when
tracing fanouts 👀

- [#549](#549)
[`f759de1`](f759de1)
Thanks [@maktouch](https://github.com/maktouch)! - Add step name or ID
when there’s a NESTING_STEPS error

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⬆️ improvement Performance, reliability, or usability improvements 📦 inngest Affects the `inngest` package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants