Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PrometheusReporter ¶
type PrometheusReporter struct {
// contains filtered or unexported fields
}
PrometheusReporter it will collect the data for Prometheus if you want to use this, you should initialize your prometheus. https://prometheus.io/docs/guides/go-application/
func (*PrometheusReporter) Report ¶
func (reporter *PrometheusReporter) Report(ctx context.Context, invoker protocol.Invoker, invocation protocol.Invocation, cost time.Duration, res protocol.Result)
Report report the duration to Prometheus the role in url must be consumer or provider or it will be ignored
Click to show internal directories.
Click to hide internal directories.