ccproxy.plugins.request_tracer¶
ccproxy.plugins.request_tracer
¶
Request Tracer plugin for request tracing.
RequestTracerConfig
¶
Bases: BaseModel
Unified configuration for request tracing.
Combines structured JSON tracing (from core_tracer) and raw HTTP logging (from raw_http_logger) into a single configuration.
get_json_log_dir
¶
get_raw_log_dir
¶
should_trace_path
¶
Check if a path should be traced based on include/exclude rules.
Source code in ccproxy/plugins/request_tracer/config.py
RequestTracerHook
¶
Bases: Hook
Simplified hook-based request tracer implementation.
This hook only handles REQUEST_* events since HTTP_* events are now handled by the core HTTPTracerHook. This eliminates duplication and follows the single responsibility principle.
The plugin now focuses purely on request lifecycle logging without attempting to capture HTTP request/response bodies.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
config
|
RequestTracerConfig | None
|
Request tracer configuration |
None
|