Index
appimage_updater.instrumentation
¶
HTTP instrumentation package.
HTTPTracker(stack_depth=3, track_headers=False, logger=None)
¶
Tracks HTTP requests made during application execution.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
stack_depth
|
int
|
Number of stack frames to capture for call stack |
3
|
track_headers
|
bool
|
Whether to track request headers |
False
|
logger
|
Any
|
HTTP logger interface (defaults to ConfigurableHTTPLogger) |
None
|
Source code in src/appimage_updater/instrumentation/http_tracker.py
requests = []
instance-attribute
¶
stack_depth = stack_depth
instance-attribute
¶
track_headers = track_headers
instance-attribute
¶
start_tracking()
¶
Start tracking HTTP requests.
Source code in src/appimage_updater/instrumentation/http_tracker.py
stop_tracking()
¶
Stop tracking HTTP requests.
Source code in src/appimage_updater/instrumentation/http_tracker.py
create_default_http_logger(verbose=False)
¶
Create default HTTP logger with appropriate verbosity.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
verbose
|
bool
|
If True, use info level for tracking messages |
False
|
Returns:
Type | Description |
---|---|
ConfigurableHTTPLogger
|
Configured HTTP logger |
Source code in src/appimage_updater/instrumentation/logging_interface.py
create_http_tracker_from_params(params)
¶
Create HTTP tracker based on command parameters.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
params
|
CheckParams
|
Command parameters containing HTTP instrumentation settings |
required |
Returns:
Type | Description |
---|---|
HTTPTracker | None
|
HTTPTracker instance if instrumentation is enabled, None otherwise |
Source code in src/appimage_updater/instrumentation/factory.py
create_silent_http_logger()
¶
create_silent_http_tracker(stack_depth=3, track_headers=False)
¶
Create HTTP tracker with silent logging for testing.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
stack_depth
|
int
|
Number of stack frames to capture |
3
|
track_headers
|
bool
|
Whether to track request headers |
False
|
Returns:
Type | Description |
---|---|
HTTPTracker
|
HTTPTracker with silent logging |
Source code in src/appimage_updater/instrumentation/factory.py
create_verbose_http_tracker(stack_depth=3, track_headers=False)
¶
Create HTTP tracker with verbose logging.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
stack_depth
|
int
|
Number of stack frames to capture |
3
|
track_headers
|
bool
|
Whether to track request headers |
False
|
Returns:
Type | Description |
---|---|
HTTPTracker
|
HTTPTracker with verbose logging |