@@ -139,7 +139,7 @@ async def _on_ice_trickle(self, event):
139139 async def _on_subscriber_offer (self , event : events_pb2 .SubscriberOffer ):
140140 logger .info ("Subscriber offer received" )
141141
142- with telemetry .start_as_current_span ("rtx .on_subscriber_offer" ) as span :
142+ with telemetry .start_as_current_span ("rtc .on_subscriber_offer" ) as span :
143143 await self .subscriber_negotiation_lock .acquire ()
144144
145145 try :
@@ -163,20 +163,20 @@ async def _on_subscriber_offer(self, event: events_pb2.SubscriberOffer):
163163 span .set_attribute ("remote_description.sdp" , fixed_sdp )
164164
165165 with telemetry .start_as_current_span (
166- "rtx .on_subscriber_offer.set_remote_description"
166+ "rtc .on_subscriber_offer.set_remote_description"
167167 ):
168168 await self .subscriber_pc .setRemoteDescription (remote_description )
169169
170170 # Create the answer based on the remote offer (which includes our candidates)
171171 with telemetry .start_as_current_span (
172- "rtx .on_subscriber_offer.create_answer"
172+ "rtc .on_subscriber_offer.create_answer"
173173 ) as span :
174174 answer = await self .subscriber_pc .createAnswer ()
175175 span .set_attribute ("answer.sdp" , answer .sdp )
176176
177177 # Set the local description. aiortc will manage the SDP content.
178178 with telemetry .start_as_current_span (
179- "rtx .on_subscriber_offer.set_local_description"
179+ "rtc .on_subscriber_offer.set_local_description"
180180 ):
181181 await self .subscriber_pc .setLocalDescription (answer )
182182
@@ -391,7 +391,8 @@ async def __aexit__(self, exc_type, exc_val, exc_tb):
391391
392392 async def add_tracks (self , audio = None , video = None ):
393393 """Add multiple audio and video tracks in a single negotiation."""
394- await self ._peer_manager .add_tracks (audio , video )
394+ with telemetry .start_as_current_span ("rtc.add_tracks" ):
395+ await self ._peer_manager .add_tracks (audio , video )
395396
396397 async def start_recording (
397398 self , recording_types , user_ids = None , output_dir = "recordings"
0 commit comments