datadog_flutter_plugin library
Classes
- DatadogAttachConfiguration
- Configuration options used when attaching to an existing instance of a DatadogSdk.
- DatadogConfiguration
- DatadogLogger
- An interface for sending logs to Datadog.
- DatadogLoggerConfiguration
- Configuration options for a Datadog Log. These options are set for an individual DatadogLogger object
- DatadogLogging
- DatadogLoggingConfiguration
- Configuration options for the Datadog Logging feature. These options are common to all Datadog logs
- This class can be added to a MaterialApp to automatically start and stop RUM views, provided you are using named routes with methods like Navigator.pushNamed, or supplying route names through RouteSettings when using Navigator.push.
- Provides the DatadogNavigationObserver to other classes that need it. Specifically, if you want to use the DatadogRouteAwareMixin, you must use this provider.
- DatadogPlugin
- DatadogPluginConfiguration
- DatadogRum
- DatadogRumConfiguration
- Configuration options for the Datadog Real User Monitoring (RUM) feature.
- DatadogSdk
- A singleton for the Datadog SDK.
- LogDevice
- LogEvent
- LogEventDd
- LogEventError
- LogEventLoggerInfo
- LogEventUserInfo
- RumAction
- RumActionEvent
- RumActionFrustration
- RumActionId
- RumActionTarget
- RumApplication
- RumCellular
- RumConnectivity
- RumCount
- RumDevice
- RumError
- RumErrorCause
- RumErrorEvent
- RumLongTask
- RumLongTaskEvent
- RumOperatingSystem
- RumPerformanceMetric
- RumResource
- RumResourceEvent
- RumResourceSummary
- RumSession
- RumUser
- RumUserActionAnnotation
- Provide information on the user actions that can happen in this tree
- RumUserActionDetector
- Detect simple user actions and send them to RUM.
- RumViewDetails
- RumViewEvent
- RumViewEventDd
- RumViewInfo
- Information about a View that will be passed to DatadogRum.startView
- RumViewSummary
Enums
- BatchProcessingLevel
- Defines the maximum amount of batches processed sequentially without a delay within one reading/uploading cycle. high means that more data will be sent in a single upload cycle but more CPU and memory will be used to process the data. low means that less data will be sent in a single upload cycle but less CPU and memory will be used to process the data.
- BatchSize
- Defines the Datadog SDK policy when batching data together before uploading it to Datadog servers. Smaller batches mean smaller but more network requests, whereas larger batches mean fewer but larger network requests.
- CoreLoggerLevel
- DatadogSite
- Determines the server for uploading RUM events.
- LogLevel
- Log levels defined by Datadog. Note that not all levels are supported by the Flutter SDK currently, although any level can be used for DatadogLoggerConfiguration.remoteLogThreshold.
- LogStatus
- RumActionType
- Describes the type of a RUM Action.
- RumActionTypeInternal
- RumConnectivityInterfaces
- RumConnectivityStatus
- RumDeviceType
- RumErrorHandling
- RumErrorSource
- Describe the source of a RUM Error.
- RumFrustrationType
- RumHttpMethod
- HTTP method of the resource
- RumInternalErrorSource
- Error sources that include source used internally by Datadog SDKs
- RumResourceType
- Describe the type of resource loaded.
- TracingHeaderType
- The type of tracing header to inject into first party requests.
- TrackingConsent
- Possible values for the Data Tracking Consent given by the user of the app.
- UploadFrequency
- Defines the frequency at which Datadog SDK will try to upload data batches.
- VitalsFrequency
- Defines the frequency at which Datadog SDK will collect mobile vitals, such as CPU and memory usage.
Mixins
-
DatadogRouteAwareMixin<
T extends StatefulWidget> - The DatadogRouteAwareMixin can be used to supply names and additional attributes to RUM views as an alternative to supplying a ViewInfoExtractor to DatadogNavigationObserver, supplying a name when creating the route, or using named routes.
Functions
-
defaultViewInfoExtractor(
Route route) → RumViewInfo? -
The function that provides the default route naming behavior for
DatadogNavigationObserver. If the supplied route is a PageRoute and contains
a name, it returns a RumViewInfo with the supplied name. Otherwise it returns
null
. -
resourceTypeFromContentType(
ContentType? type) → RumResourceType -
rumMethodFromMethodString(
String value) → RumHttpMethod -
simpleConsolePrint(
LogLevel level, String message, String? errorMessage, String? errorKind, StackTrace? stackTrace, Map< String, Object?> attributes) → void -
Print all logs to the console in the form "
level
message" when kDebugMode is true. -
simpleConsolePrintForLevel(
LogLevel level) → CustomConsoleLogFunction -
Print all logs to the console above the given level in the form
"
level
message" when kDebugMode is true.
Typedefs
- AppRunner = void Function()
-
CustomConsoleLogFunction
= void Function(LogLevel level, String message, String? errorMessage, String? errorKind, StackTrace? stackTrace, Map<
String, Object?> attributes) -
A function that allows you control Datadog's console log output. This function
is called instead of calling Flutter's default
print
, and does not effect what is sent to Datadog. - LogEventMapper = LogEvent? Function(LogEvent event)
- A function that allows you to modify or drop specific LogEvents before they are sent to Datadog.
- RumActionEventMapper = RumActionEvent? Function(RumActionEvent event)
- A function that allows you to modify or drop specific RumActionEvents before they are sent to Datadog.
- RumErrorEventMapper = RumErrorEvent? Function(RumErrorEvent event)
- A function that allows you to modify or drop specific RumErrorEvents before they are sent to Datadog.
- RumLongTaskEventMapper = RumLongTaskEvent? Function(RumLongTaskEvent event)
- A function that allows you to modify or drop specific RumLongTaskEvents before they are sent to Datadog.
- RumResourceEventMapper = RumResourceEvent? Function(RumResourceEvent event)
- A function that allows you to modify or drop specific RumResourceEvents before they are sent to Datadog.
- RumViewEventMapper = RumViewEvent Function(RumViewEvent event)
- A function that allows you to modify specific RumViewEvents before they are sent to Datadog.
- ViewInfoExtractor = RumViewInfo? Function(Route route)
- A function that can be used to supply custom information to DatadogRum.startView.