DatadogConfiguration class

Constructors

DatadogConfiguration({required String clientToken, required String env, required DatadogSite site, bool nativeCrashReportEnabled = false, String? service, UploadFrequency? uploadFrequency, BatchSize? batchSize, BatchProcessingLevel? batchProcessingLevel, String? version, String? flavor, List<String>? firstPartyHosts, Map<String, Set<TracingHeaderType>> firstPartyHostsWithTracingHeaders = const {}, DatadogLoggingConfiguration? loggingConfiguration, DatadogRumConfiguration? rumConfiguration})

Properties

additionalConfig Map<String, Object?>
Any additional configuration to be passed to the native SDKs
final
additionalPlugins List<DatadogPluginConfiguration>
Configurations for additional plugins that will be created after Datadog is initialized.
final
batchProcessingLevel BatchProcessingLevel?
Sets the level of batch processing
getter/setter pair
batchSize BatchSize?
Sets the preferred size of batched data uploaded to Datadog servers. This value impacts the size and number of requests performed by the SDK.
getter/setter pair
clientToken String
getter/setter pair
env String
The environment name which will be sent to Datadog. This can be used to filter events on different environments (e.g. "staging" or "production").
getter/setter pair
firstPartyHosts List<String>
A list of first party hosts, used in conjunction with Datadog network tracking packages like datadog_tracking_http_client.
getter/setter pair
firstPartyHostsWithTracingHeaders Map<String, Set<TracingHeaderType>>
A list of first party hosts and the types of tracing headers Datadog should automatically inject on resource calls. This is used in conjunction with Datadog network tracking packages like datadog_tracking_http_client
getter/setter pair
flavor String?
Set the current flavor (variant) of the application
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
loggingConfiguration DatadogLoggingConfiguration?
getter/setter pair
nativeCrashReportEnabled bool
Whether or not to enable native crash reporting.
getter/setter pair
rumConfiguration DatadogRumConfiguration?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
service String?
The service name for this application
getter/setter pair
site DatadogSite
The DatadogSite to send information to. This site must match the site used to generate your client token.
getter/setter pair
uploadFrequency UploadFrequency?
Sets the preferred frequency of uploading data to Datadog servers. This value impacts the frequency of performing network requests by the SDK.
getter/setter pair
version String?
Sets the current version number of the application.
getter/setter pair
versionTag String?
Get the defined version as a Datadog compliant tag.
no setter

Methods

addPlugin(DatadogPluginConfiguration pluginConfiguration) → void
encode() Map<String, Object?>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited