1616
1717
1818def beantomcatmanager = otel. mbeans(" Catalina:type=Manager,host=localhost,context=*" )
19- otel. instrument(beantomcatmanager, " tomcat.sessions" , " The number of active sessions." , " sessions " , " activeSessions" , otel. &longValueCallback)
19+ otel. instrument(beantomcatmanager, " tomcat.sessions" , " The number of active sessions." , " {session} " , " activeSessions" , otel. &longValueCallback)
2020
2121def beantomcatrequestProcessor = otel. mbeans(" Catalina:type=GlobalRequestProcessor,name=*" )
22- otel. instrument(beantomcatrequestProcessor, " tomcat.errors" , " The number of errors encountered." , " errors " ,
22+ otel. instrument(beantomcatrequestProcessor, " tomcat.errors" , " The number of errors encountered." , " {error} " ,
2323 [" proto_handler" : { mbean -> mbean. name(). getKeyProperty(" name" ) }],
2424 " errorCount" , otel. &longCounterCallback)
25- otel. instrument(beantomcatrequestProcessor, " tomcat.request_count" , " The total requests." , " requests " ,
25+ otel. instrument(beantomcatrequestProcessor, " tomcat.request_count" , " The total requests." , " {request} " ,
2626 [" proto_handler" : { mbean -> mbean. name(). getKeyProperty(" name" ) }],
2727 " requestCount" , otel. &longCounterCallback)
2828otel. instrument(beantomcatrequestProcessor, " tomcat.max_time" , " Maximum time to process a request." , " ms" ,
@@ -32,24 +32,24 @@ otel.instrument(beantomcatrequestProcessor, "tomcat.processing_time", "The total
3232 [" proto_handler" : { mbean -> mbean. name(). getKeyProperty(" name" ) }],
3333 " processingTime" , otel. &longCounterCallback)
3434otel. instrument(beantomcatrequestProcessor, " tomcat.traffic" ,
35- " The number of bytes transmitted and received." , " by " ,
35+ " The number of bytes transmitted and received." , " By " ,
3636 [" proto_handler" : { mbean -> mbean. name(). getKeyProperty(" name" )}],
3737 [" bytesReceived" :[" direction" : {" received" }], " bytesSent" : [" direction" : {" sent" }]],
3838 otel. &longCounterCallback)
3939
4040def beantomcatconnectors = otel. mbeans(" Catalina:type=ThreadPool,name=*" )
41- otel. instrument(beantomcatconnectors, " tomcat.threads" , " The number of threads" , " threads " ,
41+ otel. instrument(beantomcatconnectors, " tomcat.threads" , " The number of threads" , " {thread} " ,
4242 [" proto_handler" : { mbean -> mbean. name(). getKeyProperty(" name" ) }],
4343 [" currentThreadCount" :[" state" :{" idle" }]," currentThreadsBusy" :[" state" :{" busy" }]], otel. &longValueCallback)
4444
4545def beantomcatnewmanager = otel. mbeans(" Tomcat:type=Manager,host=localhost,context=*" )
46- otel. instrument(beantomcatnewmanager, " tomcat.sessions" , " The number of active sessions." , " sessions " , " activeSessions" , otel. &longValueCallback)
46+ otel. instrument(beantomcatnewmanager, " tomcat.sessions" , " The number of active sessions." , " {session} " , " activeSessions" , otel. &longValueCallback)
4747
4848def beantomcatnewrequestProcessor = otel. mbeans(" Tomcat:type=GlobalRequestProcessor,name=*" )
49- otel. instrument(beantomcatnewrequestProcessor, " tomcat.errors" , " The number of errors encountered." , " errors " ,
49+ otel. instrument(beantomcatnewrequestProcessor, " tomcat.errors" , " The number of errors encountered." , " {error} " ,
5050 [" proto_handler" : { mbean -> mbean. name(). getKeyProperty(" name" ) }],
5151 " errorCount" , otel. &longCounterCallback)
52- otel. instrument(beantomcatnewrequestProcessor, " tomcat.request_count" , " The total requests." , " requests " ,
52+ otel. instrument(beantomcatnewrequestProcessor, " tomcat.request_count" , " The total requests." , " {request} " ,
5353 [" proto_handler" : { mbean -> mbean. name(). getKeyProperty(" name" ) }],
5454 " requestCount" , otel. &longCounterCallback)
5555otel. instrument(beantomcatnewrequestProcessor, " tomcat.max_time" , " Maximum time to process a request." , " ms" ,
@@ -59,12 +59,12 @@ otel.instrument(beantomcatnewrequestProcessor, "tomcat.processing_time", "The to
5959 [" proto_handler" : { mbean -> mbean. name(). getKeyProperty(" name" ) }],
6060 " processingTime" , otel. &longCounterCallback)
6161otel. instrument(beantomcatnewrequestProcessor, " tomcat.traffic" ,
62- " The number of bytes transmitted and received." , " by " ,
62+ " The number of bytes transmitted and received." , " By " ,
6363 [" proto_handler" : { mbean -> mbean. name(). getKeyProperty(" name" )}],
6464 [" bytesReceived" :[" direction" : {" received" }], " bytesSent" : [" direction" : {" sent" }]],
6565 otel. &longCounterCallback)
6666
6767def beantomcatnewconnectors = otel. mbeans(" Tomcat:type=ThreadPool,name=*" )
68- otel. instrument(beantomcatnewconnectors, " tomcat.threads" , " The number of threads" , " threads " ,
68+ otel. instrument(beantomcatnewconnectors, " tomcat.threads" , " The number of threads" , " {thread} " ,
6969 [" proto_handler" : { mbean -> mbean. name(). getKeyProperty(" name" ) }],
7070 [" currentThreadCount" :[" state" :{" idle" }]," currentThreadsBusy" :[" state" :{" busy" }]], otel. &longValueCallback)
0 commit comments