DatadogTrackingHttpClientListener class abstract
An interface for providing attributes to Datadog RUM resources by listening to HttpClient requests and responses.
DatadogTrackingHttpClient allows you to receive a callback when an HttpClientRequest starts and when an HttpClientResponse finishes. They provide a resource key and a mutable Map<String, Object?> of attributes that you can modify to add attributes to the resulting Datadog RUM resource.
The userAttributes parameter supplied in requestStarted and responseFinished are the same map, and it is possible to inspect and modify attributes between the two calls. Only the attributes remaining after responseFinished is called will be sent to Datadog.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
requestStarted(
{required Object resourceKey, HttpClientRequest request, Map< String, Object?> userAttributes}) → void - Called when an HttpClientRequest is started.
-
responseFinished(
{required Object resourceKey, HttpClientResponse response, Map< String, Object?> userAttributes, Object? error}) → void - Called when an HttpClientResponse is finished.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited