Skip to content

Commit 69d8944

Browse files
Merge pull request #579 from mulesoft/W-21199271-Fix-troubleshooting-info-ie
W-21199271 update troubleshooting info
2 parents 945581f + 99c8f38 commit 69d8944

1 file changed

Lines changed: 6 additions & 30 deletions

File tree

modules/ROOT/pages/af-troubleshoot-agent-networks.adoc

Lines changed: 6 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -17,39 +17,23 @@ Enable logging and log levels from CloudHub 2.0 or Runtime Fabric:
1717
* xref:runtime-fabric::deploy-to-runtime-fabric.adoc#configure-logging-and-log-levels[Runtime Fabric]
1818
. Set the log level to Debug for these classes:
1919
+
20-
* `com.mulesoft.modules.agent.broker`
21-
* `org.mule.service.http.impl.service.HttpMessageLogger`
20+
* `com.mulesoft.modules.agent.broker` (For agent broker)
21+
* `INSECURE-LOGGING` (For content that can potentially contain sensitive information, such as LLM reasoning, and inputs and outputs from agents and assets defined in `tools` and `links`)
2222

2323
[IMPORTANT]
24-
HTTP wire logging displays HTTP headers and payload in plain text. Avoid leaving it enabled indefinitely or unsupervised, as it can negatively impact API performance.
24+
`INSECURE-LOGGING` is very likely to contain sensitive information, such as personally identifiable information (PII). Make sure to disable it after troubleshooting is completed.
2525

2626
[[enable-message-logging]]
2727
== Enable Message Logging Policy
2828

29-
Use API Manager or manually edit the agent network file to add a message logging policy.
29+
Edit `agent-network.yaml` to set message logging for MCP servers and agents.
3030

31-
=== Using API Manager
32-
33-
. In API Manager, select the API, agent, or MCP server instance for which you want to apply the policy.
34-
. Follow the steps in xref:gateway::flex-managed-message-log.adoc#configure-message-logging-in-connected-mode[Configure Message Logging in Connected Mode] and add these settings:
35-
+
36-
* In the Messages field, enter `#[attributes]`.
37-
* Select the checkboxes for **Before Calling API** and **After Calling API**.
38-
. Click **Save**.
39-
40-
Afterward, you should see a Message Log option for the API, agent, or MCP server.
41-
42-
[NOTE]
43-
If you redeploy the network, this policy is deleted.
44-
45-
=== Using the Agent Network File
46-
47-
In the `connection` section of the API, agent, or MCP server instance you want to log, add the following inside `policies`:
31+
Message logging uses the xref:gateway::policies-included-message-logging.adoc[Flex Gateway Message Logging policy]. In the `connection` section of the agent or MCP server instance you want to log, add the following logging policy inside `policies`:
4832

4933
[source,yaml]
5034
----
5135
52-
policies: ## add the following inside the policy setting
36+
policies: ## add the following inside the policy setting
5337
- ref:
5438
name: message-logging
5539
namespace: business_group_UUID
@@ -83,14 +67,6 @@ If Anypoint Monitoring isn't showing traces for agents and MCP servers, check th
8367
* In API Manager, verify you've enabled the tracing policy for all brokers and agents.
8468
* In the managed Flex Gateways, verify that you've enabled Distributed Tracing for ingress and egress.
8569

86-
=== Issue: Agent Visualizer Shows Disconnected Nodes
87-
88-
If Agent Visualizer shows disconnected nodes with no edges, delete the `extensions` from the `spec.capabilities` section in `agent-network.yaml`.
89-
90-
=== Issue: Null Response from Broker
91-
92-
If your agent network broker returns a null response, restart the broker.
93-
9470
=== Issue: No Agent Network Commands in Anypoint Code Builder
9571

9672
If you installed Anypoint Code Builder successfully, but you don’t see agent network commands in the interface, verify that you have the latest version of the Anypoint Extension Pack. Then, restart VS Code.

0 commit comments

Comments
 (0)