You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@trafficserver.apache.org by Jeremy Payne <jp...@gmail.com> on 2018/06/11 20:45:17 UTC

Transaction ID

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!

Re: Transaction ID

Posted by Jeremy Payne <jp...@gmail.com>.
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.




On Mon, Jun 11, 2018 at 3:53 PM, Alan Carroll <so...@oath.com> wrote:
> 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.
>
> On Mon, Jun 11, 2018 at 3:45 PM, Jeremy Payne <jp...@gmail.com> wrote:
>>
>> 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!
>
>

Re: Transaction ID

Posted by Alan Carroll <so...@oath.com>.
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.

On Mon, Jun 11, 2018 at 3:45 PM, Jeremy Payne <jp...@gmail.com> wrote:

> 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!
>