You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/operator/virtualmcpserver-observability.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,7 @@ the workflow name as an attribute.
39
39
40
40
## Distributed Tracing
41
41
42
-
The vMCP creates spans for each individual backend operation as well as workflow executions, enabling the attribution of workflow exection errors or latency to specific tool calls.
42
+
The vMCP creates spans for each individual backend operation as well as workflow executions, enabling the attribution of workflow execution errors or latency to specific tool calls.
Copy file name to clipboardExpand all lines: pkg/vmcp/server/telemetry.go
+11-6Lines changed: 11 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -38,15 +38,19 @@ func monitorBackends(
38
38
}
39
39
backendCount.Record(ctx, int64(len(backends)))
40
40
41
-
requestsTotal, err:=meter.Int64Counter("toolhive_vmcp_backend_requests_total", metric.WithDescription("Total number of requests per backend"))
41
+
requestsTotal, err:=meter.Int64Counter("toolhive_vmcp_backend_requests", metric.WithDescription("Total number of requests per backend"))
42
42
iferr!=nil {
43
43
returnnil, fmt.Errorf("failed to create requests total counter: %w", err)
44
44
}
45
-
errorsTotal, err:=meter.Int64Counter("toolhive_vmcp_backend_errors_total", metric.WithDescription("Total number of errors per backend"))
45
+
errorsTotal, err:=meter.Int64Counter("toolhive_vmcp_backend_errors", metric.WithDescription("Total number of errors per backend"))
46
46
iferr!=nil {
47
47
returnnil, fmt.Errorf("failed to create errors total counter: %w", err)
48
48
}
49
-
requestsDuration, err:=meter.Float64Histogram("toolhive_vmcp_backend_requests_duration", metric.WithDescription("Duration of requests in seconds per backend"))
49
+
requestsDuration, err:=meter.Float64Histogram(
50
+
"toolhive_vmcp_backend_requests_duration",
51
+
metric.WithDescription("Duration of requests in seconds per backend"),
52
+
metric.WithUnit("s"),
53
+
)
50
54
iferr!=nil {
51
55
returnnil, fmt.Errorf("failed to create requests duration histogram: %w", err)
0 commit comments