datadog_internal library

Classes

AttachResponse
DatadogConfigKey
DatadogHttpTracingHeaders
DatadogPlatformAttributeKey
DatadogRumPlatformAttributeKey
DatadogSdkPlatform
FirstPartyHost
Used to attach a first party host name to what headers should be automatically attached by RUM Http Tracking
InternalLogger
This class is used internally by the SDK to log issues to the client developers. Note that all logging from the Flutter portions of the SDK are disabled if kDebugMode is not set.
InvalidAttributeInfo
OTelHttpTracingHeaders
PlatformInitializationResult
Result from initializing the platform. Individual members are set to false If there is an error loading that feature, such as being unable to load required JavaScript modules on web.
TracingContext
TracingUUID
W3CTracingHeaders

Enums

LateConfigurationProperty
A set of properties that Flutter can configure "late", meaning after the first call to DatadogSdk.initialize.
TraceIdRepresentation
TracingHeaderType
The type of tracing header to inject into first party requests.

Extensions

DatadogInternal on DatadogSdk

Functions

ambiguate<T>(T? value) → T?
This allows a value of type T or T? to be treated as a value of type T?.
findInvalidAttribute(Map<String, Object?> attributes, [String parentPropertyName = '']) InvalidAttributeInfo?
generateDatadogAttributes(TracingContext? context, double samplingRate) Map<String, Object?>
generateTracingContext(bool sampled) TracingContext
Generate a tracing context
getTracingHeaders(TracingContext context, TracingHeaderType headersType) Map<String, String>
wrap(String methodName, InternalLogger logger, Map<String, Object?>? attributes, WrappedCall<void> call) → void
Wraps a call to a platform channel with common error handling and telemetry.
wrapAsync<T>(String methodName, InternalLogger logger, Map<String, Object?>? attributes, WrappedCall<T> call) Future<T?>
Wraps a call to a platform channel that must return a value, with common error handling and telemetry. If you do not need to get a value back from your call, use wrap instead.

Typedefs

LogCallback = void Function(String line)
WrappedCall<T> = FutureOr<T?> Function()