Discussion:
Transaction ID
Jeremy Payne
2018-06-11 20:45:17 UTC
Permalink
Per end user request, does ATS generate a unique ID I can also use as
a transaction id?
I am thinking of creating an ID(hash) based on URL+some-random-string,
but want to make sure something isnt generated internally(and exposed
via some API), before starting this work.

The ID will then be added to something like a request header as the
request passes each cache tier. So now instead of having to
search/link child/parent log entries against multiple fields, I can
just use this ID(hash).Of course cache log filter will have to include
the request header containing the ID.

Thanks in advance!
Alan Carroll
2018-06-11 20:53:07 UTC
Permalink
Sort of. There is this -
https://docs.trafficserver.apache.org/en/latest/developer-guide/api/functions/TSUuidCreate.en.html#c.TSProcessUuidGet
That will get you a process unique ID. You can combine that with the
transaction ID to get a globally unique transaction ID. Look at
TSClientRequestUuidGet
as well.
Post by Jeremy Payne
Per end user request, does ATS generate a unique ID I can also use as
a transaction id?
I am thinking of creating an ID(hash) based on URL+some-random-string,
but want to make sure something isnt generated internally(and exposed
via some API), before starting this work.
The ID will then be added to something like a request header as the
request passes each cache tier. So now instead of having to
search/link child/parent log entries against multiple fields, I can
just use this ID(hash).Of course cache log filter will have to include
the request header containing the ID.
Thanks in advance!
Jeremy Payne
2018-06-14 16:00:14 UTC
Permalink
My original email was based on a search through our internal 6.2.x
source.. which doesn't contain the uuid API calls.
Of course these calls are supported in 7.1.3..

Thanks for your assistance.
Post by Alan Carroll
Sort of. There is this -
https://docs.trafficserver.apache.org/en/latest/developer-guide/api/functions/TSUuidCreate.en.html#c.TSProcessUuidGet
That will get you a process unique ID. You can combine that with the
transaction ID to get a globally unique transaction ID. Look at
TSClientRequestUuidGet as well.
Post by Jeremy Payne
Per end user request, does ATS generate a unique ID I can also use as
a transaction id?
I am thinking of creating an ID(hash) based on URL+some-random-string,
but want to make sure something isnt generated internally(and exposed
via some API), before starting this work.
The ID will then be added to something like a request header as the
request passes each cache tier. So now instead of having to
search/link child/parent log entries against multiple fields, I can
just use this ID(hash).Of course cache log filter will have to include
the request header containing the ID.
Thanks in advance!
Loading...