dt-setup-flutter

Integrate the Dynatrace Flutter plugin into a Flutter project: covers dependency setup, configuration, SDK initialization, navigation tracking, and verification. Example trigger phrases: "add Dynatrace to Flutter", "Flutter plugin setup", "instrument Flutter app", "integrate Dynatrace Flutter", "mobile observability Flutter", "dynatrace_flutter_plugin". Not intended for querying Flutter RUM data or non‑Flutter mobile or Dynatrace server configurations.

Last repository push
GitHub Stars
190
Forks
48
Issues / PRs
12

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "dt-setup-flutter" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-4c8e72e644173d8b7722d9402ff0277a1e06641f46f60ab88a381b5f81cc0c78. Verify the upstream source and version against https://github.com/Dynatrace/dynatrace-for-ai before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

github.com

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Integrate the Dynatrace Flutter plugin into a Flutter project: covers dependency setup, configuration, SDK initialization, navigation tracking, and verification. Example trigger phrases: "add Dynatrace to Flutter", "Flutter plugin setup", "instrument Flutter app", "integrate Dynatrace Flutter", "mobile observability Flutter", "dynatrace_flutter_plugin". Not intended for querying Flutter RUM data or non‑Flutter mobile or Dynatrace server configurations.

0 Downloads

Introduction source: third_party · Dynatrace · 0.0.1 Reference

SkillPi interpretation

Software, accounts and paid services
Flutter SDK installed and `flutter` available on `PATH` An existing Flutter project with a `pubspec.yaml` at the project root A Dynatrace environment with access to Experience Vitals (to obtain `applicationId` and `beaconUrl`, or to download `dynatrace.config.yaml`) Console access to Experience Vitals → Mobile to configure app settings (Data Privacy, Enablement and Cost Control) `dart` CLI available (comes with Flutter SDK; used to run the plugin configuration script) Work through the steps below in order, interacting with the user at each decision point. Read actual project files before suggesting changes — do not assume the current state.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: dt-setup-flutter
license: Apache-2.0
description: >-
  Integrate the Dynatrace Flutter Plugin into a Flutter project — dependency setup, config,
  SDK bootstrap, navigation tracking, and verification.
  Trigger: "add Dynatrace to Flutter", "Flutter plugin setup", "instrument Flutter app",
  "integrate Dynatrace Flutter", "mobile observability Flutter", "dynatrace_flutter_plugin".
  Do NOT use for: querying Flutter RUM data (use dt-obs-frontends), non-Flutter mobile setups,
  or Dynatrace server-side configuration.

Dynatrace Flutter Plugin Integration Skill

Prerequisites

  • Flutter SDK installed and flutter available on PATH
  • An existing Flutter project with a pubspec.yaml at the project root
  • A Dynatrace environment with access to Experience Vitals (to obtain applicationId and beaconUrl, or to download dynatrace.config.yaml)
  • Console access to Experience Vitals → Mobile to configure app settings (Data Privacy, Enablement and Cost Control)
  • dart CLI available (comes with Flutter SDK; used to run the plugin configuration script)

Work through the steps below in order, interacting with the user at each decision point. Read actual project files before suggesting changes — do not assume the current state.

Step 1 — Check for existing dynatrace.config.yaml

Before asking the user anything, check whether dynatrace.config.yaml exists at the project root.

  • File exists: Read it, show the applicationId and beaconUrl, and confirm they match the target environment. If correct, run the userOptIn check below and skip to Step 3.
  • File does not exist: Proceed to Step 2.

userOptIn check:

Inspect the file for userOptIn (Android) and DTXUserOptIn (iOS).

  • Present on both platforms: Trust the value as-is. If true, flag Step 7a. If false, skip Step 7a.
  • Absent from either platform: Ask the user: "Do you have User Opt-In mode enabled or disabled?" (If unsure: Experience Vitals → Mobile → [Your App] → Settings → Data Privacy.) Add the missing value to the relevant platform(s), then flag Step 7a if the final value is true.

Step 2 — Obtain dynatrace.config.yaml (only if Step 1 found no file)

Ask the user which approach they prefer:

Option A — Download from console (recommended):

  1. Open their Dynatrace environment
  2. Navigate to: Experience Vitals → New Frontend → Mobile
  3. Enter app name and choose Flutter as the platform
  4. On the Select capability and settings screen, configure monitoring features (Crash reporting, user action monitoring, etc.). User action monitoring can be changed later via Experience Vitals → [App] → Settings → Enablement and Cost Control.
  5. Download dynatrace.config.yaml and place it at the project root (same level as pubspec.yaml)

Once the file is in place, apply the userOptIn check from Step 1 and flag Step 7a if needed.

Option B — Provide credentials manually: Read references/config-yaml.md for the full template and conditional blocks. Collect all required values from the user before creating any files, then apply the userOptIn check and flag Step 7a if needed.

Step 3 — Add the dependency

Read pubspec.yaml first.

  • Not present: Run:
    flutter pub add dynatrace_flutter_plugin
  • Already under dependencies: No change — proceed to Step 4.
  • Under dev_dependencies: Remove it from dev_dependencies, then run flutter pub add dynatrace_flutter_plugin. The plugin is required at runtime, including in release builds.

Step 4 — Fetch dependencies

If Step 3 ran flutter pub add, dependencies are already fetched — skip this step.

Otherwise run:

flutter pub get

Confirm success before continuing.

Step 5 — Run the Dynatrace configuration script

dart run dynatrace_flutter_plugin

This reads dynatrace.config.yaml and automatically configures Android Gradle and ios/Runner/Info.plist. No manual native file edits are needed.

Common mistakes to flag and correct:

  • flutter pub run dynatrace_flutter_plugin — wrong, use dart run dynatrace_flutter_plugin
  • Manual edits to build.gradle / build.gradle.kts or Info.plist — not needed

Step 6 — Bootstrap the SDK in main.dart

Read lib/main.dart. Replace runApp(...) with Dynatrace().start(...):

import 'package:dynatrace_flutter_plugin/dynatrace_flutter_plugin.dart';
import 'package:flutter/material.dart';

void main() {
  Dynatrace().start(const MyApp());
}
  • Dynatrace().start() calls runApp internally — remove any separate runApp call
  • WidgetsFlutterBinding.ensureInitialized() is not required by Dynatrace before start(), but keep it if your app needs it for other pre-start initialization (for example, plugin or platform setup)
  • Do not await Dynatrace().start() itself; only use await for other app initialization that must complete before calling start()

Step 7 — Add navigation tracking

In the root MaterialApp or CupertinoApp, add DynatraceNavigationObserver() to navigatorObservers:

MaterialApp(
  navigatorObservers: [DynatraceNavigationObserver()],
  ...
)
CupertinoApp(
  navigatorObservers: [DynatraceNavigationObserver()],
  ...
)

Step 7a — Privacy options call (only if userOptIn: true)

Skip this step if userOptIn was not set to true during Steps 1 or 2.

Read references/user-opt-in.md for the full guidance on DataCollectionLevel, crashReportingOptedIn, and placement options. Ask the user the questions defined there, then apply the call to the relevant file.

Step 8 — HTTP instrumentation (if applicable)

Check pubspec.yaml for the http package dependency. Separately, search the codebase for import 'dart:io' and HttpClient usages. If either is present, apply instrumentation:

Package Instrumentation
http Dynatrace().createHttpClient() — replace http.Client() at the construction site
dart:io HttpClient Manual timing via Dynatrace().createWebRequestTiming(...) — no drop-in wrapper exists

createHttpClient() accepts an optional client: parameter to wrap an existing client instance. Find every http.Client() construction site in the project and replace it with Dynatrace().createHttpClient().

If none are present, note it for when network calls are added.

Step 9 — Post-setup summary

Confirm to the user what is active:

Enabled by default (when userOptIn is false or absent):

  • ✅ Crash reporting
  • ✅ User action tracking
  • ✅ Network monitoring
  • ✅ Lifecycle monitoring
  • ✅ Auto-start

When userOptIn: true, all data collection — including crash reporting — is gated on the applyUserPrivacyOptions(...) call.

Configured during this setup:

  • Privacy mode: [userOptIn: true — consent call added / opt-out (SDK default)]
  • Navigation tracking: [DynatraceNavigationObserver added]
  • HTTP instrumentation: [applied / not applicable yet]

Step 10 — Verification

Read references/verification.md and show the user the verification checklist. If no data appears after 5 minutes, work through the troubleshooting steps in that file.

Reference Files

  • references/config-yaml.md — Full dynatrace.config.yaml template with Grail and userOptIn conditional blocks
  • references/user-opt-in.md — applyUserPrivacyOptions guidance, DataCollectionLevel options, placement options
  • references/verification.md — Post-setup verification checklist and troubleshooting

External References

Version history

  1. v10.0.0 GitHub ↗
    Original release notes

    This release also includes everything that was merged since v8.0.0 (the intermediate 8.0.1 and 9.0.0 versions were never published as GitHub releases). ## New skills - **`dt-upgrade`**: guided upgrade from classic/2nd-gen to 3rd-gen Dynatrace, with tenant readiness checks, per-feature migration actions, AWS/Azure/GCP cloud integration cutover to Smartscape on Grail, and helper migrators/scanners plus metric mapping tables. - **`dt-obs-extensions`**: check extension status and look up and troubleshoot extension errors. - **`dt-setup-genai`**: instrument GenAI/LLM apps to emit OpenTelemetry `gen_ai.*` spans. - **`dt-setup-openinference-migration`**: migrate from Traceloop/OpenLLMetry to OpenInference. ## New references - `dt-sec-insights`: vulnerability feed - `dt-obs-hosts`: disk monitoring - `dt-setup-flutter`: session replay - `dt-js-runtime`: extensions v2 SDK - `dt-setup-react-native`: Session Replay setup ## Updated skills - **`dt-sec-insights`, `dt-sec-contextualization`, `dt-sec-ioc-hunting`**: events scoped by provider, cheaper hunt queries, invalid IoCs filtered at intake, and reference files reorganized across the three skills. - **`dt-platform-costs`**: reworked query cost attribution; a user-provided rate now overrides the rate card. - **`dt-obs-tracing`**: database spans detected via both `db.system` and `db.system.name`. - Also refreshed: `dt-alerting`, `dt-dql-essentials`, `dt-migration`, `dt-app-dashboards`, `dt-obs-azure`, `dt-obs-frontends`, `dt-obs-ext-monitors`, `dt-obs-hosts`, `dt-obs-kubernetes`, `dt-obs-predictive-analytics`, `dt-obs-problems`, `dt-obs-services`, `dt-sec-semantic-mapping`, `dt-setup-flutter`. ## Plugin and installation - **Google Antigravity** plugin manifest and MCP config added, with install instructions. - The MCP client header is now `Dt-External-Source` (`dynatrace-for-ai/<version>`); it was renamed in 8.0.1. - README gains a Cursor plugin install section; the README and `llms.txt` catalog now list all 38 skills. **Full Changelog**: https://github.com/Dynatrace/dynatrace-for-ai/compare/v8.0.0...v10.0.0

  2. v8.0.0 GitHub ↗
    Original release notes

    This release adds a dedicated OneAgent installation skill covering Kubernetes, Windows, AWS Lambda, Azure VMs, and remote EC2 hosts, and deepens Kubernetes, host-inventory, and frontend troubleshooting coverage in existing skills. ## ✨ New skills - **`dt-setup-oneagent`** — Step-by-step OneAgent installation guidance for Kubernetes, Windows, AWS Lambda, Azure VMs, and remote EC2 hosts, covering monitoring modes, agent versions, and per-platform install parameters. ## 🔎 Deeper coverage in existing skills - **`dt-obs-hosts`** — New OneAgent inventory queries: count and list hosts by monitoring mode (`FULL_STACK` / `INFRASTRUCTURE` / `DISCOVERY`) and by installed agent version. - **`dt-obs-kubernetes`** — Clarified `k8s.object` availability by entity type, correct casing for `k8s.workload.kind`, aggregation rules for resource requests/limits (avoiding undercounting on multi-container pods and DaemonSets), and more accurate pod-phase filtering. - **`dt-obs-frontends`** — New frontend-to-backend request linking reference, plus expanded troubleshooting and error-tracking guidance. - **`dt-migration`** — Expanded Kubernetes entity migration reference. - **`dt-dql-essentials`** — New data-discovery reference. - **`dt-app-dashboards`**, **`dt-app-notebooks`**, **`dt-alerting`**, **`dt-js-runtime`**, **`dt-obs-aws`**, **`dt-obs-azure`**, **`dt-obs-network-flows`** — Reference refinements. ## 📦 At a glance - **34 skills** total. - 1 new skill, 12 skills refreshed. **Full Changelog**: https://github.com/Dynatrace/dynatrace-for-ai/compare/v7.0.0...v8.0.0

  3. v7.0.0 GitHub ↗
    Original release notes

    This release extends observability into the network layer with SNMP device monitoring and multi-source flow analysis, adds a dedicated skill for tracking EU DORA compliance posture, and renames the mobile instrumentation skills for clarity. ## ✨ New skills - **`dt-obs-network-devices`** — Analyze SNMP-monitored network devices (switches, routers, firewalls, load balancers) across three data layers: Smartscape topology, device/interface metrics (CPU, memory, uptime, throughput, errors), and logs (SNMP traps, syslog, auto-discovery). Inventory devices, find down or saturated interfaces, map neighbors, and investigate traps. - **`dt-obs-network-flows`** — Analyze network flows across three sources: OneAgent flows, NetFlow/IPFIX/sFlow via an OpenTelemetry Collector, and cloud VPC flow logs. Find top talkers, map communication dependencies, investigate connection health (resets, timeouts, RTT), and resolve peers to monitored entities. - **`dt-obs-compliance-assistant`** — Monitor and investigate EU DORA (Digital Operational Resilience Act) compliance posture: compliance score, Critical/Important Function (CIF) health, incident classification and lifecycle, and ICT risk inputs (vulnerabilities, security findings, misconfigurations). ## 🔎 Deeper coverage in existing skills - **`dt-migration`**, **`dt-obs-kubernetes`**, **`dt-obs-problems`**, **`dt-alerting`** — Migrated off deprecated `smartscape.affected_entity.*` fields onto verified accessors. - **`dt-platform-costs`** — Billing and cost-attribution references substantially expanded (billing capabilities/event types, cost allocation, cost estimations, entity cost drilldown, query cost attribution, total-cost workflow). - **`dt-sec-insights`** — Expanded vulnerability and detections reference. - **`dt-sec-ioc-hunting`** — New security-events hunting reference; expanded log hunting, exposure scoring, and timeframe-gating guidance. - **`dt-dql-essentials`** — New string-matching reference. - **`dt-obs-genai`**, **`dt-obs-aws`**, **`dt-obs-ext-monitors`** — Reference refinements. ## 🧹 Renamed - **`dt-obs-{android,flutter,ios,react-native}`** → **`dt-setup-{android,flutter,ios,react-native}`** — clearer naming for instrumentation-setup skills, distinct from ongoing observability skills. ## 📦 At a glance - **33 skills** total. - 3 new skills, 4 renamed, 11 refreshed. **Full Changelog**: https://github.com/Dynatrace/dynatrace-for-ai/compare/v6.0.0...v7.0.0

  4. v6.0.0 GitHub ↗
    Original release notes

    This release adds Davis-powered dashboard/notebook analysis, a path for ingesting third-party monitor results into Grail, iOS SDK setup (renamed and modernized), and two new security skills for contextualizing findings and hunting threat-intel indicators. It also ships Cursor plugin support and marketplace listing polish. ## ✨ New skills - **`dt-obs-analytics`** — Analyze dashboards and notebooks with Davis analyzers: anomaly detection, novelty scoring, and metric correlation. Point it at a dashboard/notebook by URL, UUID, or name and it extracts the underlying DQL efficiently — no need to read the full raw document JSON — then runs analyzers on the extracted metrics. - **`dt-obs-ext-monitors`** — Ingest third-party test and monitor results into Dynatrace Grail via the platform events ingest API. Covers token scopes, the full `external_test_run`/`external_test_step` event schema (including trace correlation and CI metadata), and DQL verification. - **`dt-sec-contextualization`** — Resolve security signals, IoC matches, and Smartscape nodes to runtime entities, and connect findings across topology levels (e.g. container image → workload, pod → node) through a shared runtime entity. - **`dt-sec-ioc-hunting`** — Extract and normalize indicators of compromise (IPs, domains, URLs, hashes, CVEs, MITRE TTPs) from advisories or pasted reports, hunt them across logs and spans, and produce a threat-exposure score. ## 🔎 Deeper coverage in existing skills - **`dt-obs-ios`** (renamed from `dt-obs-ios-sdk`) — Set up the Dynatrace iOS SDK (OneAgent) via Swift Package Manager. - **`dt-sec-insights`** — Vulnerability reference split into focused, more maintainable docs; added coverage/dashboard patterns and a dedicated threat-intelligence reference. - **`dt-sec-semantic-mapping`** — Reference docs consolidated into intake/constraints, semantic reference, and validation/reporting guides, plus a new external threat-report sample. - **`dt-obs-log-semantic-mapping`** — Added OpenPipeline processor constraints reference. - **`dt-migration`** — Expanded cloud application, host, and service entity references with more examples. ## 🧹 Plugin & tooling - Added Cursor plugin support (`.cursor-plugin/`) alongside the existing Claude Code plugin, with marketplace metadata (display name, keywords, logo) and a shared icon for both marketplaces. - Simplified the bundled Dynatrace MCP server config; removed the legacy `plugins/dynatrace/skills/` symlinks now that `skills/` is the canonical, directly-referenced source. - Upgraded CI GitHub Actions to Node 24. ## 📦 At a glance - **30 skills** total. - 4 new skills, 1 renamed, 5 skills refreshed. **Full Changelog**: https://github.com/Dynatrace/dynatrace-for-ai/compare/v5.0.0...v6.0.0

  5. v5.0.0 GitHub ↗
    Original release notes

    This release brings AI/LLM observability to the skill set, introduces semantic-mapping skills for logs and security events, and significantly deepens security and cost-analysis coverage. ## ✨ New skills - **`dt-obs-genai` — LLM & GenAI observability, end to end.** Golden signals, LLM-specific signals, cost and token tracking, agent signals, evaluation scores, guardrail monitoring, and conversation analytics — every query backed by verified DQL. If you're running models or agents on your stack, this is your starting point. - **`dt-obs-log-semantic-mapping`.** Maps raw log data onto a consistent semantic model so queries behave the same way across heterogeneous sources. - **`dt-sec-semantic-mapping`.** Does the same for security events, normalizing third-party and native findings into one model with ready-to-use samples. ## 🔎 Deeper coverage in existing skills - **`dt-sec-insights`** — Substantially expanded compliance coverage (CIS, DORA, NIST, STIG on the posture side; PCI, ISO, HIPAA, GDPR on the regulatory side) and a much richer vulnerability reference, plus new DQL pitfall guidance to keep queries correct. - **`dt-platform-costs`** — Clearer scope: this skill *measures* recorded consumption and now explicitly hands query-tuning questions off to `dt-dql-essentials`. Billing event types and cost-attribution references updated. - **`dt-dql-essentials`** — Performance, cost, and consumption questions now route to a dedicated, expanded optimization guide. ## 🧹 Refinements - **`dt-app-dashboards`** & **`dt-app-notebooks`** — Added reading & analyzing guidance for inspecting existing dashboards and notebooks. - **`dt-alerting`** — Updated workflow notification references. - **`dt-obs-frontends`** — Troubleshooting and user-session reference fixes. - **`dt-obs-ios-sdk`** — Clarified RUM configuration wording. ## 📦 At a glance - **26 skills** total, all registered in the `dynatrace` plugin. - 3 new skills, 9 skills refreshed. **Full Changelog**: https://github.com/Dynatrace/dynatrace-for-ai/compare/v4.0.0...v5.0.0

Only the five most recent versions are shown. View full version history at the source ↗

Current listing version

0.0.1

Verify the source revision ↗

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value95/100

Highlights

  • 解决Flutter项目集成Dynatrace的具体痛点,步骤完整,实用性强
  • 覆盖依赖设置、配置、SDK初始化、导航跟踪和验证全流程
  • 提供清晰的先决条件和分步指导
Trigger Precision90/100

Highlights

  • 触发词精准完整,覆盖多种变体
  • 边界清晰,明确区分适用和不适用场景
  • description位置正确,内容完整
Structure and Standards90/100

Highlights

  • Phase/步骤清晰,有出口条件
  • 含端到端示例,frontmatter完整
  • 单文件≤500行,结构良好
Execution Reliability85/100

Highlights

  • 工具来源明确,参数正确
  • 覆盖主要异常,不可逆操作有确认机制
  • 提供常见错误提示和纠正方法
Evidence Verifiability (mean of the first four)90/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

  • Accounts, secrets or authorization

    Use a dedicated least-privilege account. Keep secrets out of public content and command logs; verify the receiving service and tenant.

    Mentioned in main document · lines 53
Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • docs.dynatrace.com
  • pub.dev

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Flutter SDK installed and `flutter` available on `PATH` An existing Flutter project with a `pubspec.yaml` at the project root A Dynatrace environment with access to Experience Vitals (to obtain `applicationId` and `beaconUrl`, or to download `dynatrace.config.yaml`) Console access to Experience Vitals → Mobile to configure app settings (Data Privacy, Enablement and Cost Control) `dart` CLI available (comes with Flutter SDK; used to run the plugin configuration script) Work through the steps below in order, interacting with the user at each decision point. Read actual project files before suggesting changes — do not assume the current state.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.