( toolName: string, )
| 68 | * @returns The original name for built-in tools, or 'mcp_tool' for MCP tools |
| 69 | */ |
| 70 | export function sanitizeToolNameForAnalytics( |
| 71 | toolName: string, |
| 72 | ): AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS { |
| 73 | if (toolName.startsWith('mcp__')) { |
| 74 | return 'mcp_tool' as AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS |
| 75 | } |
| 76 | return toolName as AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS |
| 77 | } |
| 78 | |
| 79 | /** |
| 80 | * Check if detailed tool name logging is enabled for OTLP events. |
no outgoing calls
no test coverage detected