Package 

Class InternalSentrySdk


  • @ApiStatus.Internal() 
    public final class InternalSentrySdk
    
                        

    Sentry SDK internal API methods meant for being used by the Sentry Hybrid SDKs.

    • Method Detail

      • serializeScope

        @NotNull() static Map<String, Object> serializeScope(@NotNull() Context context, @NotNull() SentryAndroidOptions options, @Nullable() IScope scope)

        Serializes the provided scope. Specific data may be back-filled (e.g. device context) if thescope itself does not provide it.

        Parameters:
        context - Android context
        options - Sentry Options
        scope - the scope
      • captureEnvelope

        @Nullable() static SentryId captureEnvelope(@NotNull() Array<byte> envelopeData, boolean maybeStartNewSession)

        Captures the provided envelope. Compared to captureEvent thismethod - will not enrich events with additional data (e.g. scope)- will not execute beforeSend: it's up to the caller to take care of this- will not perform any sampling: it's up to the caller to take care of this- will enrich the envelope with a Session update if applicable

        Parameters:
        envelopeData - the serialized envelope data
      • setTrace

         static void setTrace(@NotNull() String traceId, @NotNull() String spanId, @Nullable() Double sampleRate, @Nullable() Double sampleRand)

        Allows a Hybrid SDK to set the trace on the native layer

        Parameters:
        traceId - the trace ID
        spanId - the trace origin's span ID
        sampleRate - the sample rate used by the origin of the trace
        sampleRand - the random value used to sample with by the origin of the trace