Let users add their own txid suffixes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openstack-api-site |
Fix Released
|
Low
|
Diane Fleming | ||
openstack-manuals |
Fix Released
|
Low
|
Diane Fleming |
Bug Description
https:/
commit d8e2043b2f57550
Author: Samuel Merritt <email address hidden>
Date: Fri May 16 14:31:08 2014 -0400
Let users add their own txid suffixes
The value of the X-Trans-Id-Extra header on the request (if any) will
now be appended to the transaction ID. This lets users put their own
information into transaction IDs.
For example, Glance folks upload images as large objects, so they'd
like to be able to tie together all the segment PUTs and the manifest
PUT with some operation ID in the logs. This would let them pass in
that operation ID as X-Trans-Id-Extra, and then when things went
wrong, it'd be much easier to find all the requests in Swift's logs.
Also, this aids debuggability when requests fail to receive
responses. If a user is sending in their own X-Trans-Id-Extra strings,
then that gives operators something to search for in the logs. The
normal txid won't work since that's in the response, but the client
didn't receive one.
Swift will only use the first 32 characters of X-Trans-Id-Extra so
that its log lines stay a manageable length. Also, it's URL-quoted so
that users cannot inject double quotes into X-Trans-Id-Extra and screw
up log parsers.
DocImpact
Change-Id: I3c51d0c5ac5569
Changed in openstack-manuals: | |
status: | New → Confirmed |
Changed in openstack-manuals: | |
importance: | Undecided → Low |
Changed in openstack-manuals: | |
assignee: | nobody → Loic Dachary (dachary) |
Changed in openstack-manuals: | |
assignee: | Loic Dachary (dachary) → nobody |
affects: | openstack-manuals → openstack-api-site |
Changed in openstack-manuals: | |
assignee: | Diane Fleming (diane-fleming) → ologvinova (ologvinova) |
Changed in openstack-manuals: | |
assignee: | ologvinova (ologvinova) → Diane Fleming (diane-fleming) |
https:/ /review. openstack. org/263093