HTTPIntegration class
HTTP Integration following Sentry pattern Separates HTTP interception from event enrichment
- Inheritance
-
- Object
- ObslyIntegration
- HTTPIntegration
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- integrationName → String
-
Unique identifier for this integration
no setteroverride
- isActive → bool
-
Whether this integration is currently active
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- webClient → ObslyHttpClient?
-
Get web client for manual usage
no setter
Methods
-
captureHTTPEvent(
HTTPEventBase event, EventReservation reservation) → void - Process HTTP event from interceptor
-
close(
) → Future< void> -
Clean up any resources used by this integration
This method MUST be implemented to prevent memory leaks
and restore original system state
override
-
initialize(
ObslyHub hub) → Future< void> -
Initialize the integration with the given hub and configuration
This method should set up any necessary interceptors or listeners
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resetStateForTesting(
) → void - Reset state for testing
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance → HTTPIntegration
-
no setter
Static Methods
-
enhanceNetworkErrorMessageForTest(
dynamic error) → String -
isErrorStatusCodeForTest(
int? statusCode) → bool -
mapNetworkErrorToStatusForTest(
dynamic error) → int?