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

fix: request tracing #227

Merged
merged 2 commits into from
Mar 5, 2025
Merged

fix: request tracing #227

merged 2 commits into from
Mar 5, 2025

Conversation

clostao
Copy link
Member

@clostao clostao commented Mar 5, 2025

The usage of middleware was provoking duplicated headers sent. With this setup we avoid that behavior.

Also, I unified the monitoring object with auto-files-gateway

Copy link

netlify bot commented Mar 5, 2025

Deploy Preview for auto-drive-demo ready!

Name Link
🔨 Latest commit 1c3b0be
🔍 Latest deploy log https://app.netlify.com/sites/auto-drive-demo/deploys/67c8700e0afd8a0008081877
😎 Deploy Preview https://deploy-preview-227--auto-drive-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@@ -4,36 +4,29 @@ import { config } from '../../config.js'
import { logger } from '../../drivers/logger.js'

export const requestTrace: RequestHandler = (req, res, next) => {
console.log('Request trace', {
Copy link
Member

Choose a reason for hiding this comment

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

should we remove the console log?

@clostao
Copy link
Member Author

clostao commented Mar 5, 2025

Yup, thanks!

@clostao clostao merged commit ddd711c into main Mar 5, 2025
7 checks passed
@clostao clostao deleted the fix-request-tracing branch March 5, 2025 15:54
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