Skip to content

Commit b48f427

Browse files
committed
span
1 parent ddebcba commit b48f427

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

getstream/video/rtc/connection_manager.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,10 +170,9 @@ async def _on_subscriber_offer(self, event: events_pb2.SubscriberOffer):
170170
# Create the answer based on the remote offer (which includes our candidates)
171171
with telemetry.start_as_current_span(
172172
"rtx.on_subscriber_offer.create_answer"
173-
):
173+
) as span:
174174
answer = await self.subscriber_pc.createAnswer()
175-
176-
span.set_attribute("answer.sdp", answer.sdp)
175+
span.set_attribute("answer.sdp", answer.sdp)
177176

178177
# Set the local description. aiortc will manage the SDP content.
179178
with telemetry.start_as_current_span(

0 commit comments

Comments
 (0)