Monitoring Extension
Monitoring extension provided by Hertz.
The framework itself does not have any monitoring points, but provides a Tracer
interface.
If you want to get more detailed monitoring data, e.g. message packet size, or want to adopt other data source, e.g. InfluxDB, you can implement the Trace
interface according to your requirements and inject it by WithTracer
Option.
You can get TraceInfo
from ctx. What is more, from TraceInfo
you can get request time cost, package size, and error information returned from request, etc. Usage example:
Last modified
April 21, 2025
: feat: adjust StreamToolCallChecker documentation (#1305) (67eb3f3)