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

How to use the trace field provided from log? #180

Closed
soullivaneuh opened this issue Mar 6, 2020 · 4 comments · Fixed by #319
Closed

How to use the trace field provided from log? #180

soullivaneuh opened this issue Mar 6, 2020 · 4 comments · Fixed by #319
Labels
documentation Documentation update request

Comments

@soullivaneuh
Copy link

Sometimes I have error like this:

{"bytes_in":"22190","bytes_out":"49904","host":"pdf.domain.dev","latency":"2978634042","latency_human":"2.978634042s","level":"info","method":"POST","msg":"request handled","op":"context.Context.LogRequestResult","path":"/convert/html","referer":"","remote_ip":"178.170.104.70","status":200,"time":"2020-03-06T22:24:26Z","trace":"2246dyEJKiCmxJW7T540Qc1c6IucrXx5","uri":"/convert/html","user_agent":"GuzzleHttp/6.3.3 curl/7.65.0 PHP/7.3.11"}
{"bytes_in":"9288","bytes_out":"34048","host":"pdf.domain.dev","latency":"2744331022","latency_human":"2.744331022s","level":"info","method":"POST","msg":"request handled","op":"context.Context.LogRequestResult","path":"/convert/html","referer":"","remote_ip":"178.170.104.70","status":200,"time":"2020-03-06T22:26:05Z","trace":"jl5XmA38KllYHzR6LbBcPWv22ws15pkf","uri":"/convert/html","user_agent":"GuzzleHttp/6.3.3 curl/7.65.0 PHP/7.3.11"}

Each error as a trace field. Is it something usable to get more information about the error? I don't see anything about this on the documentation.

@gulien
Copy link
Collaborator

gulien commented Mar 9, 2020

Using the LOG_LEVEL=DEBUG, it should help you isolating the logs of one request.
That's said, the trace field is only useful if you test your requests one by one currently (see #170).

@soullivaneuh
Copy link
Author

@gulien What is the performance impact of LOG_LEVEL=DEBUG? The error happen randomly, I'm not sure wanting to set the debug level on production systems.

1 similar comment
@soullivaneuh
Copy link
Author

@gulien What is the performance impact of LOG_LEVEL=DEBUG? The error happen randomly, I'm not sure wanting to set the debug level on production systems.

@gulien
Copy link
Collaborator

gulien commented Mar 13, 2020

Performance impact should not be heavy but it might increase your logging costs 😄

@gulien gulien added the documentation Documentation update request label Jun 24, 2020
@gulien gulien added this to the 7.0.0 milestone Jun 24, 2020
@gulien gulien mentioned this issue Aug 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Documentation update request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants