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
* `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`)
22
22
23
23
[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.
25
25
26
26
[[enable-message-logging]]
27
27
== Enable Message Logging Policy
28
28
29
-
Use API Manager or manually edit the agentnetwork file to add a message logging policy.
29
+
Edit `agent-network.yaml` to set message logging for MCP servers and agents.
30
30
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`:
48
32
49
33
[source,yaml]
50
34
----
51
35
52
-
policies: ## add the following inside the policy setting
36
+
policies: ## add the following inside the policy setting
53
37
- ref:
54
38
name: message-logging
55
39
namespace: business_group_UUID
@@ -83,14 +67,6 @@ If Anypoint Monitoring isn't showing traces for agents and MCP servers, check th
83
67
* In API Manager, verify you've enabled the tracing policy for all brokers and agents.
84
68
* In the managed Flex Gateways, verify that you've enabled Distributed Tracing for ingress and egress.
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
-
94
70
=== Issue: No Agent Network Commands in Anypoint Code Builder
95
71
96
72
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