Sends span snapshots and events to the DevTools.
Functions#
__init__#
__init__(requests) -> None| Parameter | Type | Description |
|---|---|---|
requests | Queue[D.Request, Any] |
def __init__(self, requests: Queue[D.Request, Any]) -> None:
self._requests = requestssend_unsafe#
send_unsafe(request) -> NoneQueues request (a span snapshot or a span event) for the
DevTools connection, at once and without blocking; it is dropped
once the client is closing.
| Parameter | Type | Description |
|---|---|---|
request | D.Span | D.SpanEvent |
def send_unsafe(self, request: D.Span | D.SpanEvent) -> None:
"""Queues ``request`` (a span snapshot or a span event) for the
DevTools connection, at once and without blocking; it is dropped
once the client is closing."""
self._requests.offer_unsafe(request)