-
public class FeatureContextKeysKeys used to share state across features via the features context.
-
-
Field Summary
Fields Modifier and Type Field Description private final StringPROFILER_IS_RUNNINGprivate final StringRUM_SESSION_IDprivate final StringRUM_SESSION_SAMPLE_RATEprivate final StringPROFILING_QUOTA_REASONprivate final StringPROFILING_QUOTA_SESSION_IDpublic final static FeatureContextKeysINSTANCE
-
Method Summary
Modifier and Type Method Description final StringgetPROFILER_IS_RUNNING()Indicates whether the profiler is currently running. final StringgetRUM_SESSION_ID()Current RUM session identifier. final StringgetRUM_SESSION_SAMPLE_RATE()Sample rate (0..100) of the current RUM session. final StringgetPROFILING_QUOTA_REASON()Reason profiling was denied by the quota API for the current RUM session. final StringgetPROFILING_QUOTA_SESSION_ID()RUM session id the PROFILING_QUOTA_REASON decision was made for. -
-
Method Detail
-
getPROFILER_IS_RUNNING
final String getPROFILER_IS_RUNNING()
Indicates whether the profiler is currently running. Written by the profiling feature and read by RUM and debug widget consumers.
-
getRUM_SESSION_ID
final String getRUM_SESSION_ID()
Current RUM session identifier. Written by the RUM feature into its own feature context on every session renewal; read by other features (e.g. profiling) that subscribe via com.datadog.android.api.feature.FeatureContextUpdateReceiver.
-
getRUM_SESSION_SAMPLE_RATE
final String getRUM_SESSION_SAMPLE_RATE()
Sample rate (0..100) of the current RUM session. Written by the RUM feature into its own feature context; read by other features that need to combine it with their own sampling.
-
getPROFILING_QUOTA_REASON
final String getPROFILING_QUOTA_REASON()
Reason profiling was denied by the quota API for the current RUM session. Written by the profiling feature; read by RUM to include in event attributes. Absent when profiling is allowed or no quota check has been performed.
-
getPROFILING_QUOTA_SESSION_ID
final String getPROFILING_QUOTA_SESSION_ID()
RUM session id the PROFILING_QUOTA_REASON decision was made for. Written alongside the reason by the profiling feature so consumers can detect (and ignore) a decision that belongs to a previous session — e.g. while the new session's quota check is still in flight.
-
-
-
-