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
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
nullwhen native has no session to decide for (not initialized, or init failed) or the reply is malformed.