moonchen commented on code in PR #13287:
URL: https://github.com/apache/trafficserver/pull/13287#discussion_r3447662069


##########
plugins/compress/compress.cc:
##########
@@ -349,6 +349,17 @@ compress_transform_init(TSCont contp, Data *data)
   TSHandleMLocRelease(bufp, TS_NULL_MLOC, hdr_loc);
 }
 
+static int compress_stat_bytes_in = TS_ERROR;
+
+static void
+init_compress_stats()
+{
+  if (TS_ERROR == compress_stat_bytes_in) {
+    compress_stat_bytes_in =
+      TSStatCreate("proxy.process.plugin.compress.bytes_in", 
TS_RECORDDATATYPE_COUNTER, TS_STAT_NON_PERSISTENT, TS_STAT_SYNC_SUM);

Review Comment:
   Good catch — `TSStatCreate` is deprecated as of v10 (the docs point to 
`Metrics.h`). Migrated to `ts::Metrics::Counter`.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to