Skip to content
pubscout

azure_application_insights

5.0.1, released 2 years ago by kent-boogaart.com

A Dart client to integrate with Azure's Application Insights service.

WASM-ready
$ flutter pub add azure_application_insights
Source repository

What it does

Allows you to push telemetry items, traces, errors, and dependency calls into your Azure Application Insights instance. It includes support for buffering processors, tracking crashes, and an HTTP client middleware to capture network requests automatically.

AI-written summary of version 5.0.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to monitor Flutter or Dart application performance and usage using Azure Application Insights
  • You want to capture crashes and unhandled exceptions and send them to Azure
  • You want to track HTTP dependency calls automatically

Skip it when

  • You are using a different analytics or error-reporting backend like Firebase or Sentry
  • You do not use Azure services for backend telemetry

Strengths

  • Deep integration with Azure Application Insights telemetry items
  • Includes a TelemetryHttpClient for automatic dependency tracking
  • Supports configurable buffering and context properties

Weaknesses

  • Requires manual configuration of connection strings and setup
  • Limited to Azure Application Insights backend

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
5

Obtain a connection string from your Application Insights resource overview in the Azure portal and construct a TelemetryClient with a processor.

final processor = BufferedProcessor(
  next: TransmissionProcessor(
    connectionString: connectionString,
    httpClient: client,
    timeout: const Duration(seconds: 10),
  ),
);

final telemetryClient = TelemetryClient(
  processor: processor,
);

telemetryClient.trackTrace(
  severity: Severity.information,
  message: 'Hello from Dart!',
);

Alternatives

Packages that do the same job and could replace azure_application_insights.

  • http_profile

    Allows custom HTTP client authors to integrate requests with the DevTools Network View.

Works with

Packages commonly used together with azure_application_insights: ones it builds on, ones built on it, and its own family.