@@ -81,7 +81,7 @@ public static void EnableTelemetry()
8181 }
8282
8383 /// <summary>
84- /// Send telemetry data to Python server for processing
84+ /// Send telemetry data to MCP server for processing
8585 /// This is a lightweight bridge - the actual telemetry logic is in Python
8686 /// </summary>
8787 public static void RecordEvent ( string eventType , Dictionary < string , object > data = null )
@@ -106,16 +106,16 @@ public static void RecordEvent(string eventType, Dictionary<string, object> data
106106 telemetryData [ "data" ] = data ;
107107 }
108108
109- // Send to Python server via existing bridge communication
110- // The Python server will handle actual telemetry transmission
111- SendTelemetryToPythonServer ( telemetryData ) ;
109+ // Send to MCP server via existing bridge communication
110+ // The MCP server will handle actual telemetry transmission
111+ SendTelemetryToMcpServer ( telemetryData ) ;
112112 }
113113 catch ( Exception e )
114114 {
115115 // Never let telemetry errors interfere with functionality
116116 if ( IsDebugEnabled ( ) )
117117 {
118- Debug . LogWarning ( $ "Telemetry error (non-blocking): { e . Message } ") ;
118+ McpLog . Warn ( $ "Telemetry error (non-blocking): { e . Message } ") ;
119119 }
120120 }
121121 }
@@ -183,7 +183,7 @@ public static void RecordToolExecution(string toolName, bool success, float dura
183183 RecordEvent ( "tool_execution_unity" , data ) ;
184184 }
185185
186- private static void SendTelemetryToPythonServer ( Dictionary < string , object > telemetryData )
186+ private static void SendTelemetryToMcpServer ( Dictionary < string , object > telemetryData )
187187 {
188188 var sender = Volatile . Read ( ref s_sender ) ;
189189 if ( sender != null )
@@ -197,15 +197,15 @@ private static void SendTelemetryToPythonServer(Dictionary<string, object> telem
197197 {
198198 if ( IsDebugEnabled ( ) )
199199 {
200- Debug . LogWarning ( $ "Telemetry sender error (non-blocking): { e . Message } ") ;
200+ McpLog . Warn ( $ "Telemetry sender error (non-blocking): { e . Message } ") ;
201201 }
202202 }
203203 }
204204
205205 // Fallback: log when debug is enabled
206206 if ( IsDebugEnabled ( ) )
207207 {
208- Debug . Log ( $ "<b><color=#2EA3FF>MCP-TELEMETRY</color></b> : { telemetryData [ "event_type" ] } ") ;
208+ McpLog . Info ( $ "Telemetry : { telemetryData [ "event_type" ] } ") ;
209209 }
210210 }
211211
0 commit comments