typerighter icon indicating copy to clipboard operation
typerighter copied to clipboard

Use header convention for identifying request

Open jonathonherbert opened this issue 4 years ago • 0 comments

At the moment, we store the requestId for typerighter match requests in the body of the JSON we send.

The method we use elsewhere is an X-GU-LoggingContext header. See https://github.com/guardian/flexible-content/blob/master/flexible-content-common/src/main/scala/com/gu/flexiblecontent/util/LoggingContext.scala and https://github.com/guardian/flexible-content/blob/master/composer/src/js/app.js#L393-L419

It'd be good to use this convention for ease of debugging across projects.

We could also include contentId there, and sessionId if we can access it.

jonathonherbert avatar Jun 02 '20 11:06 jonathonherbert