datadog_internal library

Classes

AttachResponse
DatadogAttributes
Attributes that can be added to calls that have special properies in Datadog.
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
TracingId
TracingId is used as both a unsigned 64-bit "Span Id" and unsigned 128-bit "Trace Id"
W3CTracingHeaders

Enums

LateConfigurationProperty
A set of properties that Flutter can configure "late", meaning after the first call to DatadogSdk.initialize.
TracingHeaderType
The type of tracing header to inject into first party requests.
TracingIdRepresentation
Controls how we print a TracingId

Constants

trackResourcesConfigKey → const String

Properties

lowTraceMask BigInt
final

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, {TraceContextInjection contextInjection = TraceContextInjection.all}) 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)
TraceIdRepresentation = TracingIdRepresentation
Type alias for TracingIdRepresentation to ensure backwards compatibility with other packages
WrappedCall<T> = FutureOr<T?> Function()