Package 

Object SessionSamplingIdProvider


  • 
    public class SessionSamplingIdProvider
    
                        

    Extracts a numeric identifier from a RUM session ID for use as input to a DeterministicSampler.

    • Method Summary

      Modifier and Type Method Description
      final ULong provideId(String sessionId) Returns the last hyphen-delimited segment of sessionId parsed as an unsigned hexadecimal long, or 0 if the input is malformed or the segment is not valid hex.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • provideId

         final ULong provideId(String sessionId)

        Returns the last hyphen-delimited segment of sessionId parsed as an unsigned hexadecimal long, or 0 if the input is malformed or the segment is not valid hex.

        For a UUID aaaaaaaa-bbbb-cccc-dddd-1234567890ab this returns 0x1234567890ab.