dynatrace_flutter_plugin_util library
Classes
- AppStartKeys
- AppStart keys
- BasicKeys
- Basic Keys
- BasicNetworkEvent
- Network events
- CharacteristicsKeys
- Characteristics keys
- Clock
- Monotonic clock that is not influenced by system time changes. The clock needs to be started using the start method
- DartClock
- Monotonic clock based on Dart's Stopwatch that is not influenced by system time changes.
- DtRumKeys
- Dt rum keys
- DynatraceHttpHeaders
- Constants for http headers
- DynatraceNullRootAction
- Represents an root action which has no effect. It will be returned instead of null in cases of errors
- ErrorKeys
- Error keys
- EventProcessor
- Class which is responsible for sending, modifying and validation of 3rd gen events
- ExceptionKeys
- Exception keys
- FailedNetworkEvent
- FailedNetworkEvent without error stacktrace
- FailedNetworkWithExceptionEvent
- Failed Network Event with Exception
- Http
- Http request Keys includes http prefix key + unique keys for web instrumentation
- HttpClientUtils
- Utils class which helps calculating values for web request monitoring
- HttpStatusCodeConverter
- Helper class which converts an int statusCode to string
- Logger
- Internal logger class
- NativeClock
- Monotonic clock based on CLOCK_BOOTTIME that is not influenced by system time changes and includes time spent in sleep.
- ServiceLocator
- Provides easy, direct access to application dependencies (services).
- ServiceLocatorFactory
- Defines the factories for all application dependencies.
- SuccessNetworkEvent
- Event for success response
- ThirdGenApi
- TraceContext
- Model which holds traceId and spanId
- ValidationModifier
- Modifier for event validation
Enums
- LogType
- Type of the log message
Mixins
- HttpFeature
- Mixin for the Dynatrace Http Feature
- StopWatchClock
- Mixin to expose duration based functionality
Constants
- dt_rum_schema_version → const String
- Current RUM schema version
- eventProperties → const String
- Event properties required prefix
-
immutableBasicEventKeys
→ const List<
String> - All basic events combined
- maxKeyLength → const int
- Max key length
- maxValueLength → const int
- Max value length
- sessionProperties → const String
- Session properties required prefix
Properties
- locator → ServiceLocator
-
DI access point
final
-
overridableKeys
→ List<
String> -
All keys can be overridden
final
Functions
-
createFailedEvent(
{required String method, required int statusCode, required String url, required String? reasonPhrase, required TraceContext traceContext, required int duration, required int startTime}) → BasicNetworkEvent - Creates failed event based on response
-
createNetworkExceptionEvent(
{required String method, required String url, required int duration, required int startTime, required Object error, required TraceContext traceContext, required StackTrace stacktrace}) → BasicNetworkEvent - Creates exception event based on error and request
-
createSuccessEvent(
{required String method, required int statusCode, required String url, required String? reasonPhrase, required int duration, required int startTime, required TraceContext traceContext, int? bytesSent, int? bytesReceived}) → BasicNetworkEvent - Creates success event based on response
-
generateTraceContextHeaderValue(
TraceContext traceContext) → String - Generate a header
-
isRequestSuccessful(
int statusCode) → bool - Is request successful based on status code
-
parseTraceContextFromHeaderValue(
String traceContextHeaderValue) → TraceContext - Backwards compatible parser used where a non-null TraceContext must always be returned. Delegates to tryExtractTraceContext; if extraction fails, a new randomly generated TraceContext is returned.
-
tryExtractTraceContext(
String traceContextHeaderValue) → TraceContext? - Attempts to extract a valid traceId & spanId from a W3C traceparent header.
Typedefs
-
ReportEventOverride
= Future<
void> Function(String encodedEvent) - Typedef for custom reporting api
Exceptions / Errors
- NanException
- Exception when value is nan