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: README.md
+6-3Lines changed: 6 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -462,16 +462,19 @@ In case multi-cluster support is enabled (default) and you have access to multip
462
462
-`startMicros` (`string`) - Start time for traces in microseconds since epoch (optional)
463
463
-`tags` (`string`) - JSON string of tags to filter traces (optional)
464
464
465
-
-**workload_traces** - Get distributed tracing data for a specific workload in a namespace. Returns trace information including spans, duration, and error details for troubleshooting and performance analysis.
465
+
-**workload_traces** - Get distributed tracing data for a specific workload in a namespace. Returns trace information including spans, duration, and error details for troubleshooting and performance analysis. Note: startMicros and endMicros are typically required by the Kiali API.
466
466
-`clusterName` (`string`) - Cluster name for multi-cluster environments (optional)
467
-
-`endMicros` (`string`) - End time for traces in microseconds since epoch (optional)
467
+
-`endMicros` (`string`) - End time for traces in microseconds since epoch (required by Kiali API)
468
468
-`limit` (`integer`) - Maximum number of traces to return (default: 100)
469
469
-`minDuration` (`integer`) - Minimum trace duration in microseconds (optional)
470
470
-`namespace` (`string`) **(required)** - Namespace containing the workload
471
-
-`startMicros` (`string`) - Start time for traces in microseconds since epoch (optional)
471
+
-`startMicros` (`string`) - Start time for traces in microseconds since epoch (required by Kiali API)
472
472
-`tags` (`string`) - JSON string of tags to filter traces (optional)
473
473
-`workload` (`string`) **(required)** - Name of the workload to get traces for
474
474
475
+
-**trace_details** - Get detailed information for a specific trace by its ID. Returns complete trace information including all spans, timing details, and metadata for in-depth analysis.
476
+
-`traceId` (`string`) **(required)** - Unique identifier of the trace to retrieve
Description: "Get distributed tracing data for a specific workload in a namespace. Returns trace information including spans, duration, and error details for troubleshooting and performance analysis.",
131
+
Description: "Get distributed tracing data for a specific workload in a namespace. Returns trace information including spans, duration, and error details for troubleshooting and performance analysis. Note: startMicros and endMicros are typically required by the Kiali API.",
Description: "Get detailed information for a specific trace by its ID. Returns complete trace information including all spans, timing details, and metadata for in-depth analysis.",
188
+
InputSchema: &jsonschema.Schema{
189
+
Type: "object",
190
+
Properties: map[string]*jsonschema.Schema{
191
+
"traceId": {
192
+
Type: "string",
193
+
Description: "Unique identifier of the trace to retrieve",
194
+
},
195
+
},
196
+
Required: []string{"traceId"},
197
+
},
198
+
Annotations: api.ToolAnnotations{
199
+
Title: "Trace: Details",
200
+
ReadOnlyHint: ptr.To(true),
201
+
DestructiveHint: ptr.To(false),
202
+
IdempotentHint: ptr.To(true),
203
+
OpenWorldHint: ptr.To(true),
204
+
},
205
+
},
206
+
Handler: traceDetailsHandler,
207
+
})
208
+
183
209
returnret
184
210
}
185
211
@@ -283,3 +309,18 @@ func workloadTracesHandler(params api.ToolHandlerParams) (*api.ToolCallResult, e
0 commit comments