sendToDatadog method

void sendToDatadog(
  1. String message,
  2. StackTrace? stack,
  3. String? kind
)

Send a log to the Datadog org, not to the customer's org. This feature is used mostly to track potential issues in the Datadog SDK. The rate at which data is sent to Datadog is set by DdSdkConfiguration.telemetrySampleRate

Implementation

void sendToDatadog(String message, StackTrace? stack, String? kind) {
  DatadogSdkPlatform.instance
      .sendTelemetryError(message, stack.toString(), kind);
}