TSHTTPTXNMILESTONEGET(3ts) | Apache Traffic Server | TSHTTPTXNMILESTONEGET(3ts) |
TSHttpTxnMilestoneGet - get a specified milestone timer value for the current transaction
#include <ts/ts.h>
TSHttpTxnMilestoneGet() will fetch a specific milestone timer value for the transaction txnp. These timers are calculated during the lifetime of a transaction and are measured in nanoseconds from the beginning of the transaction. time is used a pointer to storage to update if the call is successful.
TS_MILESTONE_PLUGIN_ACTIVE value is the amount of time the plugin was active, that is performing computation. TS_MILESTONE_PLUGIN_TOTAL is the wall time which includes any time the transaction was blocked while a plugin was active. For instance if a plugin waits on an external event, that waiting time will be in TS_MILESTONE_PLUGIN_TOTAL but not in TS_MILESTONE_PLUGIN_ACTIVE.
TS_SUCCESS if successful and time was updated, otherwise TS_ERROR.
TSAPI(3ts)
2024, dev@trafficserver.apache.org
April 1, 2024 | 9.2 |