MCPcopy Create free account
hub / github.com/apache/trafficserver / TSRemapInit

Function TSRemapInit

plugins/experimental/http_stats/http_stats.cc:555–568  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

553}
554
555TSReturnCode
556TSRemapInit(TSRemapInterface * /* api_info */, char * /* errbuf */, int /* errbuf_size */)
557{
558 if (TSStatFindName("stats_over_http2.response_bytes", &StatCountBytes) == TS_ERROR) {
559 StatCountBytes =
560 TSStatCreate("stats_over_http2.response_bytes", TS_RECORDDATATYPE_COUNTER, TS_STAT_NON_PERSISTENT, TS_STAT_SYNC_SUM);
561 }
562
563 if (TSStatFindName("stats_over_http2.response_count", &StatCountResponses) == TS_ERROR) {
564 StatCountResponses =
565 TSStatCreate("stats_over_http2.response_count", TS_RECORDDATATYPE_COUNTER, TS_STAT_NON_PERSISTENT, TS_STAT_SYNC_COUNT);
566 }
567 return TS_SUCCESS;
568}
569
570TSRemapStatus
571TSRemapDoRemap(void *ih, TSHttpTxn rh, TSRemapRequestInfo * /* rri ATS_UNUSED */)

Callers

nothing calls this directly

Calls 2

TSStatFindNameFunction · 0.85
TSStatCreateFunction · 0.85

Tested by

no test coverage detected