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
+11-10Lines changed: 11 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -388,16 +388,17 @@ In case multi-cluster support is enabled (default) and you have access to multip
388
388
-`tail` (`integer`) - Number of lines to retrieve from the end of logs (default: 100)
389
389
-`workload` (`string`) **(required)** - Name of the workload to get logs for
390
390
391
-
-**kiali_get_traces** - Gets traces for a specific resource (app, service, workload) in a namespace
392
-
-`clusterName` (`string`) - Cluster name for multi-cluster environments (optional)
393
-
-`endMicros` (`string`) - End time for traces in microseconds since epoch (optional)
394
-
-`limit` (`integer`) - Maximum number of traces to return (default: 100)
395
-
-`minDuration` (`integer`) - Minimum trace duration in microseconds (optional)
396
-
-`namespace` (`string`) **(required)** - Namespace to get resources from
397
-
-`resource_name` (`string`) **(required)** - Name of the resource to get details for (optional string - if provided, gets details; if empty, lists all).
398
-
-`resource_type` (`string`) **(required)** - Type of resource to get metrics for (app, service, workload)
399
-
-`startMicros` (`string`) - Start time for traces in microseconds since epoch (optional)
400
-
-`tags` (`string`) - JSON string of tags to filter traces (optional)
391
+
-**kiali_get_traces** - Gets traces for a specific resource (app, service, workload) in a namespace, or gets detailed information for a specific trace by its ID. If traceId is provided, it returns detailed trace information and other parameters are not required.
392
+
-`clusterName` (`string`) - Cluster name for multi-cluster environments (optional, only used when traceId is not provided)
393
+
-`endMicros` (`string`) - End time for traces in microseconds since epoch (optional, defaults to 10 minutes after startMicros if not provided, only used when traceId is not provided)
394
+
-`limit` (`integer`) - Maximum number of traces to return (default: 100, only used when traceId is not provided)
395
+
-`minDuration` (`integer`) - Minimum trace duration in microseconds (optional, only used when traceId is not provided)
396
+
-`namespace` (`string`) - Namespace to get resources from. Required if traceId is not provided.
397
+
-`resource_name` (`string`) - Name of the resource to get traces for. Required if traceId is not provided.
398
+
-`resource_type` (`string`) - Type of resource to get traces for (app, service, workload). Required if traceId is not provided.
399
+
-`startMicros` (`string`) - Start time for traces in microseconds since epoch (optional, defaults to 10 minutes before current time if not provided, only used when traceId is not provided)
400
+
-`tags` (`string`) - JSON string of tags to filter traces (optional, only used when traceId is not provided)
401
+
-`traceId` (`string`) - Unique identifier of the trace to retrieve detailed information for. If provided, this will return detailed trace information and other parameters (resource_type, namespace, resource_name) are not required.
Description: "Gets traces for a specific resource (app, service, workload) in a namespace",
49
+
Description: "Gets traces for a specific resource (app, service, workload) in a namespace, or gets detailed information for a specific trace by its ID. If traceId is provided, it returns detailed trace information and other parameters are not required.",
48
50
InputSchema: &jsonschema.Schema{
49
51
Type: "object",
50
52
Properties: map[string]*jsonschema.Schema{
53
+
"traceId": {
54
+
Type: "string",
55
+
Description: "Unique identifier of the trace to retrieve detailed information for. If provided, this will return detailed trace information and other parameters (resource_type, namespace, resource_name) are not required.",
56
+
},
51
57
"resource_type": {
52
58
Type: "string",
53
-
Description: "Type of resource to get metrics for (app, service, workload)",
59
+
Description: "Type of resource to get traces for (app, service, workload). Required if traceId is not provided.",
54
60
Enum: []any{"app", "service", "workload"},
55
61
},
56
62
"namespace": {
57
63
Type: "string",
58
-
Description: "Namespace to get resources from",
64
+
Description: "Namespace to get resources from. Required if traceId is not provided.",
59
65
},
60
66
"resource_name": {
61
67
Type: "string",
62
-
Description: "Name of the resource to get details for (optional string - if provided, gets details; if empty, lists all).",
68
+
Description: "Name of the resource to get traces for. Required if traceId is not provided.",
63
69
},
64
70
"startMicros": {
65
71
Type: "string",
66
-
Description: "Start time for traces in microseconds since epoch (optional)",
72
+
Description: "Start time for traces in microseconds since epoch (optional, defaults to 10 minutes before current time if not provided, only used when traceId is not provided)",
67
73
},
68
74
"endMicros": {
69
75
Type: "string",
70
-
Description: "End time for traces in microseconds since epoch (optional)",
76
+
Description: "End time for traces in microseconds since epoch (optional, defaults to 10 minutes after startMicros if not provided, only used when traceId is not provided)",
71
77
},
72
78
"limit": {
73
79
Type: "integer",
74
-
Description: "Maximum number of traces to return (default: 100)",
80
+
Description: "Maximum number of traces to return (default: 100, only used when traceId is not provided)",
75
81
Minimum: ptr.To(float64(1)),
76
82
},
77
83
"minDuration": {
78
84
Type: "integer",
79
-
Description: "Minimum trace duration in microseconds (optional)",
85
+
Description: "Minimum trace duration in microseconds (optional, only used when traceId is not provided)",
80
86
Minimum: ptr.To(float64(0)),
81
87
},
82
88
"tags": {
83
89
Type: "string",
84
-
Description: "JSON string of tags to filter traces (optional)",
90
+
Description: "JSON string of tags to filter traces (optional, only used when traceId is not provided)",
85
91
},
86
92
"clusterName": {
87
93
Type: "string",
88
-
Description: "Cluster name for multi-cluster environments (optional)",
94
+
Description: "Cluster name for multi-cluster environments (optional, only used when traceId is not provided)",
0 commit comments