Package 

Object FeatureContextKeys


  • 
    public class FeatureContextKeys
    
                        

    Keys used to share state across features via the features context.

    • 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.