dynatrace_flutter_plugin_util library
Classes
- BasicNetworkEvent
- Network events
- 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.
- 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
- EventProcessor
- Class which is responsible for sending, modifying and validation of 3rd gen events
- FailedNetworkEvent
- FailedNetworkEvent without error stacktrace
- FailedNetworkWithExceptionEvent
- Failed Network Event with Exception
- 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
Enums
- LogType
- Type of the log message
Mixins
- StopWatchClock
- Mixin to expose duration based functionality
Properties
- locator → ServiceLocator
-
DI access point
final
Functions
-
createFailedEvent(
{required String method, required int statusCode, required String url, 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}) → 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
Typedefs
-
ReportEventOverride
= Future<
void> Function(String encodedEvent) - Typedef for custom reporting api