You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Send a unique X-Request-ID header to allow tracing requests in apache and owncloud logs #2055
owncloud/core#28144 has been merged. It will use the value of a X-Request-ID header as the request id in log files to allow linking events on the client to events in the apache and owncloud logs.
generate a string to use as unique id.
20-200 chars
only [a-zA-Z0-9-+/_=.:] allowed
use it in the client log
send it as X-Request-ID header on every request
Reacted by Michael Stingl and David González Verdugo
i'd use UUID notation (as in new iOS app) for each request (32 hexadecimal digits: 8 + 4 + 4 + 4 + 12). I think it is a bit cleaner than using any character and any length between 20 and 200.
For logs in debug, including the id + method is enough info from my pov to debug-track issues
Activity
michaelstingl commentedon Oct 25, 2017
Client log only works if Android app is built with debug option, for example the beta builds in Play Store ad F-Droid (available in ownBrander too).
davigonz commentedon Aug 9, 2018
I've just implemented this within the network library replacement branch, commit cd60d63
michaelstingl commentedon Aug 9, 2018
cool, awesome!
jesmrec commentedon Oct 5, 2018
i'd use UUID notation (as in new iOS app) for each request (32 hexadecimal digits: 8 + 4 + 4 + 4 + 12). I think it is a bit cleaner than using any character and any length between 20 and 200.
For logs in debug, including the id + method is enough info from my pov to debug-track issues
michaelstingl commentedon Oct 5, 2018
I think it was UUID v4