factory
appimage_updater.instrumentation.factory
¶
Factory functions for creating HTTP instrumentation components.
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_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 |