Skip to content

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!

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