CxNetworkRequestSampling class

The native SDK's traceparent sampled flag for a network request starting now, and the session it was decided for.

Both values go back with the request's report so native records it in the session it started in, and drops it when the header carried 00.

Constructors

CxNetworkRequestSampling({required bool isSampled, required String sessionId})
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
isSampled → bool
The flag to send: true → 01, false → 00.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sessionId → String
The session the decision belongs to.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toReportFields() → Map<String, Object>
The fields echoed in setNetworkRequestContext.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

fromMap(Map<Object?, Object?>? map) → CxNetworkRequestSampling?
Parses the bridge reply. Returns null when native has no session to decide for (not initialized, or init failed) or the reply is malformed.