-
public final class ProfilingInternalContextSchemaRUM Profiler Internal Context schema
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classProfilingInternalContextSchema.Companionpublic enumProfilingInternalContextSchema.StatusUsed to track the status of the RUM Profiler.
They are defined in order of when they can happen, from the moment the SDK is initialized to the moment the Profiler is actually running.
starting: The Profiler is starting (i.e., when the SDK just started). This is the initial status.running: The Profiler is running.stopped: The Profiler is stopped.error: The Profiler encountered an error. Seeerror_reasonfor more details.
public enumProfilingInternalContextSchema.ErrorReasonThe reason the Profiler encountered an error. This attribute is only present if the status is
error.Possible values:
not-supported-by-browser: The browser does not support the Profiler (i.e.,window.Profileris not available).failed-to-lazy-load: The Profiler script failed to be loaded by the browser (may be a connection issue or the chunk was not found).missing-document-policy-header: The Profiler failed to start because its missingDocument-Policy: js-profilingHTTP response header.unexpected-exception: An exception occurred when starting the Profiler.
-
Field Summary
Fields Modifier and Type Field Description private final ProfilingInternalContextSchema.Statusstatusprivate final ProfilingInternalContextSchema.ErrorReasonerrorReason
-
Constructor Summary
Constructors Constructor Description ProfilingInternalContextSchema(ProfilingInternalContextSchema.Status status, ProfilingInternalContextSchema.ErrorReason errorReason)
-
Method Summary
Modifier and Type Method Description final ProfilingInternalContextSchema.StatusgetStatus()final ProfilingInternalContextSchema.ErrorReasongetErrorReason()final JsonElementtoJson()-
-
Constructor Detail
-
ProfilingInternalContextSchema
ProfilingInternalContextSchema(ProfilingInternalContextSchema.Status status, ProfilingInternalContextSchema.ErrorReason errorReason)
- Parameters:
status- Used to track the status of the RUM Profiler.errorReason- The reason the Profiler encountered an error.
-
-
Method Detail
-
getStatus
final ProfilingInternalContextSchema.Status getStatus()
-
getErrorReason
final ProfilingInternalContextSchema.ErrorReason getErrorReason()
-
toJson
final JsonElement toJson()
-
-
-
-