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
[Description("List structured logs for resources.")]
59
-
publicstringListStructuredLogs(
60
-
[Description("The resource name. This limits logs returned to the specified resource. If no resource name is specified then structured logs for all resources are returned.")]
Always format log_id in the response as code like this: `log_id: 123`.
82
-
{limitMessage}
83
-
84
-
# STRUCTURED LOGS DATA
85
-
86
-
{logsData}
87
-
""";
88
-
89
-
returnresponse;
90
-
}
91
-
92
-
[McpServerTool(Name="list_traces")]
93
-
[Description("List distributed traces for resources. A distributed trace is used to track operations. A distributed trace can span multiple resources across a distributed system. Includes a list of distributed traces with their IDs, resources in the trace, duration and whether an error occurred in the trace.")]
94
-
publicstringListTraces(
95
-
[Description("The resource name. This limits traces returned to the specified resource. If no resource name is specified then distributed traces for all resources are returned.")]
[Description("List structured logs for a distributed trace. Logs for a distributed trace each belong to a span identified by 'span_id'. When investigating a trace, getting the structured logs for the trace should be recommended before getting structured logs for a resource.")]
127
-
publicstringListTraceStructuredLogs(
128
-
[Description("The trace id of the distributed trace.")]
129
-
stringtraceId)
130
-
{
131
-
// Condition of filter should be contains because a substring of the traceId might be provided.
[Description("List console logs for a resource. The console logs includes standard output from resources and resource commands. Known resource commands are 'resource-start', 'resource-stop' and 'resource-restart' which are used to start and stop resources. Don't print the full console logs in the response to the user. Console logs should be examined when determining why a resource isn't running.")]
162
54
publicasyncTask<string>ListConsoleLogsAsync(
@@ -223,11 +115,11 @@ public async Task<string> ListConsoleLogsAsync(
223
115
224
116
[McpServerTool(Name="execute_resource_command")]
225
117
[Description("Executes a command on a resource. If a resource needs to be restarted and is currently stopped, use the start command instead.")]
message=$"Resource '{resourceName}' doesn't have any telemetry. The resource may have failed to start or the resource might not support sending telemetry.";
[Description("List structured logs for resources.")]
30
+
publicstringListStructuredLogs(
31
+
[Description("The resource name. This limits logs returned to the specified resource. If no resource name is specified then structured logs for all resources are returned.")]
Always format log_id in the response as code like this: `log_id: 123`.
53
+
{limitMessage}
54
+
55
+
# STRUCTURED LOGS DATA
56
+
57
+
{logsData}
58
+
""";
59
+
60
+
returnresponse;
61
+
}
62
+
63
+
[McpServerTool(Name="list_traces")]
64
+
[Description("List distributed traces for resources. A distributed trace is used to track operations. A distributed trace can span multiple resources across a distributed system. Includes a list of distributed traces with their IDs, resources in the trace, duration and whether an error occurred in the trace.")]
65
+
publicstringListTraces(
66
+
[Description("The resource name. This limits traces returned to the specified resource. If no resource name is specified then distributed traces for all resources are returned.")]
[Description("List structured logs for a distributed trace. Logs for a distributed trace each belong to a span identified by 'span_id'. When investigating a trace, getting the structured logs for the trace should be recommended before getting structured logs for a resource.")]
98
+
publicstringListTraceStructuredLogs(
99
+
[Description("The trace id of the distributed trace.")]
100
+
stringtraceId)
101
+
{
102
+
// Condition of filter should be contains because a substring of the traceId might be provided.
message=$"Resource '{resourceName}' doesn't have any telemetry. The resource may not exist, may have failed to start or the resource might not support sending telemetry.";
0 commit comments