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

Feature: implement tracing logs as a feature #209

Merged
merged 9 commits into from Sep 28, 2022

Conversation

Samuel-B-D
Copy link
Contributor

the request tracing is integrated into the handler code instead of as a middleware to be able to wrap the FileMiddleware log span within the request span regardless of middleware order.

This PR also fix controller macro's handler span so that tracing span within the macro output have proper line numbers, instead of pointing to the top #[controller] macro.

@Samuel-B-D
Copy link
Contributor Author

Eh, clippy don't pass ( https://github.com/richerarc/saphir/actions/runs/3132727251/jobs/5085367660 ) but I'm curious as to why it's not caught on my end 🤔
image

@Samuel-B-D
Copy link
Contributor Author

Eh, clippy don't pass ( https://github.com/richerarc/saphir/actions/runs/3132727251/jobs/5085367660 ) but I'm curious as to why it's not caught on my end thinking image

Fixed

saphir/src/utils.rs Outdated Show resolved Hide resolved
@LucFauvel LucFauvel merged commit 9b52257 into richerarc:master Sep 28, 2022
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.

None yet

3 participants