tracing

Module Contents

Classes

TraceConfig(self,trace_config_ctx_factory=SimpleNamespace) First-class used to trace requests launched via ClientSession
TraceRequestStartParams() Parameters sent by the on_request_start signal
TraceRequestChunkSentParams() Parameters sent by the on_request_chunk_sent signal
TraceResponseChunkReceivedParams() Parameters sent by the on_response_chunk_received signal
TraceRequestEndParams() Parameters sent by the on_request_end signal
TraceRequestExceptionParams() Parameters sent by the on_request_exception signal
TraceRequestRedirectParams() Parameters sent by the on_request_redirect signal
TraceConnectionQueuedStartParams() Parameters sent by the on_connection_queued_start signal
TraceConnectionQueuedEndParams() Parameters sent by the on_connection_queued_end signal
TraceConnectionCreateStartParams() Parameters sent by the on_connection_create_start signal
TraceConnectionCreateEndParams() Parameters sent by the on_connection_create_end signal
TraceConnectionReuseconnParams() Parameters sent by the on_connection_reuseconn signal
TraceDnsResolveHostStartParams() Parameters sent by the on_dns_resolvehost_start signal
TraceDnsResolveHostEndParams() Parameters sent by the on_dns_resolvehost_end signal
TraceDnsCacheHitParams() Parameters sent by the on_dns_cache_hit signal
TraceDnsCacheMissParams() Parameters sent by the on_dns_cache_miss signal
Trace(self,session,trace_config,trace_config_ctx) Internal class used to keep together the main dependencies used
class TraceConfig(trace_config_ctx_factory=SimpleNamespace)

First-class used to trace requests launched via ClientSession objects.

__init__(trace_config_ctx_factory=SimpleNamespace)
trace_config_ctx(trace_request_ctx=None)

Return a new trace_config_ctx instance

freeze()
on_request_start()
on_request_chunk_sent()
on_response_chunk_received()
on_request_end()
on_request_exception()
on_request_redirect()
on_connection_queued_start()
on_connection_queued_end()
on_connection_create_start()
on_connection_create_end()
on_connection_reuseconn()
on_dns_resolvehost_start()
on_dns_resolvehost_end()
on_dns_cache_hit()
on_dns_cache_miss()
class TraceRequestStartParams

Parameters sent by the on_request_start signal

class TraceRequestChunkSentParams

Parameters sent by the on_request_chunk_sent signal

class TraceResponseChunkReceivedParams

Parameters sent by the on_response_chunk_received signal

class TraceRequestEndParams

Parameters sent by the on_request_end signal

class TraceRequestExceptionParams

Parameters sent by the on_request_exception signal

class TraceRequestRedirectParams

Parameters sent by the on_request_redirect signal

class TraceConnectionQueuedStartParams

Parameters sent by the on_connection_queued_start signal

class TraceConnectionQueuedEndParams

Parameters sent by the on_connection_queued_end signal

class TraceConnectionCreateStartParams

Parameters sent by the on_connection_create_start signal

class TraceConnectionCreateEndParams

Parameters sent by the on_connection_create_end signal

class TraceConnectionReuseconnParams

Parameters sent by the on_connection_reuseconn signal

class TraceDnsResolveHostStartParams

Parameters sent by the on_dns_resolvehost_start signal

class TraceDnsResolveHostEndParams

Parameters sent by the on_dns_resolvehost_end signal

class TraceDnsCacheHitParams

Parameters sent by the on_dns_cache_hit signal

class TraceDnsCacheMissParams

Parameters sent by the on_dns_cache_miss signal

class Trace(session, trace_config, trace_config_ctx)

Internal class used to keep together the main dependencies used at the moment of send a signal.

__init__(session, trace_config, trace_config_ctx)
send_request_start(method, url, headers)
send_request_chunk_sent(chunk)
send_response_chunk_received(chunk)
send_request_end(method, url, headers, response)
send_request_exception(method, url, headers, exception)
send_request_redirect(method, url, headers, response)
send_connection_queued_start()
send_connection_queued_end()
send_connection_create_start()
send_connection_create_end()
send_connection_reuseconn()
send_dns_resolvehost_start(host)
send_dns_resolvehost_end(host)
send_dns_cache_hit(host)
send_dns_cache_miss(host)