Skip to content

Conversation

@Fdawgs
Copy link
Member

@Fdawgs Fdawgs commented Nov 28, 2025

Helps with debugging as this causes it to no longer to be an anonymous function.

See fastify/otel#110

Checklist

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refactors the completeAuth function from an anonymous function to a named function expression, improving debugging capabilities by making it identifiable in stack traces and OpenTelemetry instrumentation. This aligns with the issue mentioned in fastify/otel#110 regarding anonymous functions in observability tools.

  • Changes the completeAuth function from an anonymous to a named function expression
  • Maintains consistency with other function assignments in the Auth constructor (nextAuth, processAuthArray, processAuth)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.

@Fdawgs Fdawgs merged commit 01cd691 into main Nov 28, 2025
23 checks passed
@Fdawgs Fdawgs deleted the refactor/named-functions branch November 28, 2025 14:08
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.

2 participants