Skip to content

Send a unique X-Request-ID header to allow tracing requests in apache and owncloud logs #2055

Closed

Description

@butonic

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

Activity

  1. michaelstingl commented on Oct 25, 2017

    @michaelstingl
    Contributor

    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).

  2. added this to the 2.9.0 milestone on Jun 19, 2018
  3. self-assigned this
    on Aug 9, 2018
  4. davigonz commented on Aug 9, 2018

    @davigonz
    Contributor

    I've just implemented this within the network library replacement branch, commit cd60d63

  5. michaelstingl commented on Aug 9, 2018

    @michaelstingl
    Contributor

    cool, awesome!

  6. jesmrec commented on Oct 5, 2018

    @jesmrec
    Member

    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

  7. michaelstingl commented on Oct 5, 2018

    @michaelstingl
    Contributor

    I think it was UUID v4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions