Skip to main content

datadog_flutter_plugin_desktop 1.0.0-preview.1 copy "datadog_flutter_plugin_desktop: ^1.0.0-preview.1" to clipboard
datadog_flutter_plugin_desktop: ^1.0.0-preview.1 copied to clipboard

Desktop (Windows, Linux) implementation of the Datadog Flutter plugin using dart:ffi.

The desktop (Windows and Linux) implementation of datadog_flutter_plugin.

Usage #

This package is endorsed, which means you can use datadog_flutter_plugin normally. This package will be automatically included in your app when you do, so you do not need to add it to your pubspec.yaml.

However, if you import this package to use any of its APIs directly, you should add it to your pubspec.yaml as usual.

Data directory #

The SDK stores data on disk until it is uploaded. To choose where it is uploaded, set DatadogConfiguration.desktopDataDirectory. If you don't choose the upload location, the SDK logs a warning and uses a .datadog directory in the process's current working directory, which is only suitable for development. If the path you set is invalid, the SDK logs an error and does not initialize. This setting is ignored on other platforms.

DatadogConfiguration.getSuggestedDesktopDataDirectory returns a conventional location for your application: a directory named after the application under %LOCALAPPDATA% on Windows or $XDG_DATA_HOME (~/.local/share by default) on Linux. Invalid characters in the application name are replaced. It returns null on platforms that don't need a data directory, or if the location can't be determined.

final configuration = DatadogConfiguration(
  // ...
  desktopDataDirectory: DatadogConfiguration.getSuggestedDesktopDataDirectory(
    'com.example.myapp',
  ),
);
0
likes
150
points
49
downloads

Documentation

API reference

Publisher

verified publisherdatadoghq.com

Weekly Downloads

Desktop (Windows, Linux) implementation of the Datadog Flutter plugin using dart:ffi.

License

Apache-2.0 (license)

Dependencies

datadog_flutter_plugin_platform_interface, ffi, flutter, path

More

Packages that depend on datadog_flutter_plugin_desktop

Packages that implement datadog_flutter_plugin_desktop