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

✨ Names expression evaluators #3765

Merged
merged 3 commits into from
Oct 2, 2023

Conversation

ekwoka
Copy link
Contributor

@ekwoka ekwoka commented Sep 15, 2023

This PR adds the expression as a name to the evaluator function. While Alpine logging information about the expression is helpful, many tools like sentry won't fully track or associate those warning logs with the actual error.

This change allows the expression to show as the name of the function in the stack trace itself making hunting down errors much easier.

Screenshot 2023-09-15 at 1 35 53 PM

@jlopinto
Copy link

Utilizing Sentry on my team, this mention would certainly be beneficial.

However, I suggest highlighting 'ALPINE' differently than using all capitals, perhaps through the use of an emoji or a less conspicuous tag like [AlpineJS] - '...the message...'"

@calebporzio
Copy link
Collaborator

Good calls - thanks!

@calebporzio calebporzio merged commit 3fb8f07 into alpinejs:main Oct 2, 2023
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants