| 1 |
--- a/includes/Transport/Infrastructure/RequestRouter.php |
| 2 |
+++ b/includes/Transport/Infrastructure/RequestRouter.php |
| 3 |
@@ -10,7 +10,7 @@ |
| 4 |
namespace WP\MCP\Transport\Infrastructure; |
| 5 |
|
| 6 |
use WP\MCP\Infrastructure\ErrorHandling\McpErrorFactory; |
| 7 |
-use WP\MCP\Infrastructure\Observability\McpObservabilityHelperTrait; |
| 8 |
+use WP\MCP\Infrastructure\Observability\ErrorLogMcpObservabilityHandler; |
| 9 |
use WP\McpSchema\Common\AbstractDataTransferObject; |
| 10 |
use WP\McpSchema\Common\Content\DTO\TextContent; |
| 11 |
use WP\McpSchema\Common\JsonRpc\DTO\JSONRPCErrorResponse; |
| 12 |
@@ -289,7 +289,8 @@ |
| 13 |
// Filter argument keys to exclude sensitive-looking ones. |
| 14 |
$safe_keys = array(); |
| 15 |
foreach ( array_keys( $params['arguments'] ) as $arg_key ) { |
| 16 |
- if ( McpObservabilityHelperTrait::is_sensitive_key( (string) $arg_key ) ) { |
| 17 |
+ // @todo Replace this with a less-coupled way to access `McpObservabilityHelperTrait:is_sensitive_key()`. |
| 18 |
+ if ( ErrorLogMcpObservabilityHandler::is_sensitive_key( (string) $arg_key ) ) { |
| 19 |
$safe_keys[] = '[REDACTED]'; |
| 20 |
} else { |
| 21 |
$safe_keys[] = $arg_key; |
| 22 |
|