You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@trafficserver.apache.org by Dk Jack <dn...@gmail.com> on 2018/04/19 17:11:22 UTC

txn depth

Hi,
Is it possible to get the transaction depth for an HTTP transaction? Thanks.

Dk.

Re: txn depth

Posted by Dk Jack <dn...@gmail.com>.
Yeah, I tracked it to the same after looking at how sstc was getting updated. Thanks. 


> On Apr 19, 2018, at 3:02 PM, Alan Carroll <so...@oath.com.INVALID> wrote:
> 
> Look at TSHttpSsnTransactionCount().

Re: txn depth

Posted by Alan Carroll <so...@oath.com.INVALID>.
Look at TSHttpSsnTransactionCount().

Re: txn depth

Posted by Dk Jack <dn...@gmail.com>.
I am interested in the inbound. Is there an api to access it from a module?


> On Apr 19, 2018, at 11:57 AM, Alan Carroll <so...@oath.com.INVALID> wrote:
> 
> There are two potentially long lived connections, inbound and outbound
> (from the ATS point of view). The number of transactions on each are
> independent. For outbound connections (upstream, origin server) there is a
> logging tag, sstc, which counts the number of transactions that have
> occurred on that upstream connection. E.g. if ATS connects to example.com
> and sends three requests on that connection and gets three responses, sstc
> would report "3" for the last one of those (and "4" on the next one, that
> being the fourth transaction). Note there is no guarantee those
> transactions all came from the same user agent or inbound connection. There
> is unfortunately no matching one for inbound, which IMHO should be fixed,
> because the count is actually tracked, it's just not available for logging.
> 
>> On Thu, Apr 19, 2018 at 1:53 PM, Dk Jack <dn...@gmail.com> wrote:
>> 
>> Alan,
>> Perhaps I am using the wrong term. Here’s what I mean by transaction
>> depth. On a long living connection, multiple requests/responses can be
>> exchanged. For each request received on a persistent connection the txn
>> depth count is incremented.
>> 
>> Bhasker.
>> 
>>> On Apr 19, 2018, at 11:23 AM, Alan Carroll <so...@oath.com.INVALID>
>> wrote:
>>> 
>>> "Depth"? I don't know what that means. You can use the logging tag
>> `sstc` -
>>> https://docs.trafficserver.apache.org/en/latest/admin-
>> guide/logging/formatting.en.html#connections-and-transactions
>>> - to get the number of transactions on the outbound connection.
>>> 
>>>> On Thu, Apr 19, 2018 at 12:11 PM, Dk Jack <dn...@gmail.com> wrote:
>>>> 
>>>> Hi,
>>>> Is it possible to get the transaction depth for an HTTP transaction?
>>>> Thanks.
>>>> 
>>>> Dk.
>>>> 
>> 

Re: txn depth

Posted by Alan Carroll <so...@oath.com.INVALID>.
There are two potentially long lived connections, inbound and outbound
(from the ATS point of view). The number of transactions on each are
independent. For outbound connections (upstream, origin server) there is a
logging tag, sstc, which counts the number of transactions that have
occurred on that upstream connection. E.g. if ATS connects to example.com
and sends three requests on that connection and gets three responses, sstc
would report "3" for the last one of those (and "4" on the next one, that
being the fourth transaction). Note there is no guarantee those
transactions all came from the same user agent or inbound connection. There
is unfortunately no matching one for inbound, which IMHO should be fixed,
because the count is actually tracked, it's just not available for logging.

On Thu, Apr 19, 2018 at 1:53 PM, Dk Jack <dn...@gmail.com> wrote:

> Alan,
> Perhaps I am using the wrong term. Here’s what I mean by transaction
> depth. On a long living connection, multiple requests/responses can be
> exchanged. For each request received on a persistent connection the txn
> depth count is incremented.
>
> Bhasker.
>
> > On Apr 19, 2018, at 11:23 AM, Alan Carroll <so...@oath.com.INVALID>
> wrote:
> >
> > "Depth"? I don't know what that means. You can use the logging tag
> `sstc` -
> > https://docs.trafficserver.apache.org/en/latest/admin-
> guide/logging/formatting.en.html#connections-and-transactions
> > - to get the number of transactions on the outbound connection.
> >
> >> On Thu, Apr 19, 2018 at 12:11 PM, Dk Jack <dn...@gmail.com> wrote:
> >>
> >> Hi,
> >> Is it possible to get the transaction depth for an HTTP transaction?
> >> Thanks.
> >>
> >> Dk.
> >>
>

Re: txn depth

Posted by Dk Jack <dn...@gmail.com>.
Alan,
Perhaps I am using the wrong term. Here’s what I mean by transaction depth. On a long living connection, multiple requests/responses can be exchanged. For each request received on a persistent connection the txn depth count is incremented. 

Bhasker. 

> On Apr 19, 2018, at 11:23 AM, Alan Carroll <so...@oath.com.INVALID> wrote:
> 
> "Depth"? I don't know what that means. You can use the logging tag `sstc` -
> https://docs.trafficserver.apache.org/en/latest/admin-guide/logging/formatting.en.html#connections-and-transactions
> - to get the number of transactions on the outbound connection.
> 
>> On Thu, Apr 19, 2018 at 12:11 PM, Dk Jack <dn...@gmail.com> wrote:
>> 
>> Hi,
>> Is it possible to get the transaction depth for an HTTP transaction?
>> Thanks.
>> 
>> Dk.
>> 

Re: txn depth

Posted by Alan Carroll <so...@oath.com.INVALID>.
"Depth"? I don't know what that means. You can use the logging tag `sstc` -
https://docs.trafficserver.apache.org/en/latest/admin-guide/logging/formatting.en.html#connections-and-transactions
- to get the number of transactions on the outbound connection.

On Thu, Apr 19, 2018 at 12:11 PM, Dk Jack <dn...@gmail.com> wrote:

> Hi,
> Is it possible to get the transaction depth for an HTTP transaction?
> Thanks.
>
> Dk.
>