GitHub

DevToolsClientService

API reference for DevToolsClientService.

Sends span snapshots and events to the DevTools.

Functions

__init__

__init__(requests) -> None
ParameterTypeDescription
requestsQueue[D.Request, Any]
def __init__(self, requests: Queue[D.Request, Any]) -> None:
    self._requests = requests

send_unsafe

send_unsafe(request) -> 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.

ParameterTypeDescription
requestD.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)