[PATCH] %tS logformat code & formatted values for adaptation_meta cfg parameter

From: Tsantilas Christos <chtsanti_at_users.sourceforge.net>
Date: Thu, 21 Nov 2013 15:19:12 +0200

Hi all,

eCAP/ICAP adapter authors (and probably others) need access to master
transaction start time to estimate user-perceived delay (and probably
for other reasons). Adapters cannot use current time because the adapter
may be engaged long after the transaction has started, and they cannot
use the difference between current time and the transaction response
time because the transaction response time is not yet known when an
adapter is engaged.

This patch:
  - Allow formated values for adaptation_meta configuration parameter.

  - Add %tS logformat code to represent master transaction start time in
<seconds>.<milliseconds> format, similar to the existing access.log
"current time" field (%ts.%03tu)

  - Also this patch fixes 1-2 bugs in Token.cc parse code, where the
precision for LFT_TIME_SUBSECOND (%tu formating code) and
LFT_TIME_START (the new %ts formating code added in this patch) computed.

This is a Measurement Factory project

Received on Thu Nov 21 2013 - 13:19:27 MST

This archive was generated by hypermail 2.2.0 : Thu Nov 21 2013 - 12:00:12 MST