搜索分类、插件与代码仓

插件详情v25.7.0

appdynamics_agent

Flutter 插件,用于将 AppDynamics 移动端真实用户监控集成到您的应用中。

AndroidiOS
近 30 天下载
7920
喜欢数
20
Pub 分数
120

安装插件

flutter pub add appdynamics_agent

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

appdynamics_agent 包是 Flutter 插件,可将 AppDynamics 移动端真实用户监控(RUM)集成到 Android 和 iOS 应用中。它通过收集加载时间、网络请求和崩溃等指标,提供应用性能、用户体验和运行时错误的实时可视性。开发者可以从 AppDynamics 仪表板直接监控用户会话、跟踪事务并识别瓶颈。该插件设计为设置无缝且代码更改极少,支持两个平台。它通过可操作的洞察帮助团队提升应用质量和响应速度。

适合场景

  • 监控生产环境中的应用性能
  • 跟踪用户会话行为
  • 检测和诊断运行时错误
  • 分析网络请求性能
  • 基于真实数据提升用户体验

主要特点

  • 实时移动RUM分析
  • 跨平台支持(Android 和 iOS)
  • 最小集成工作量
  • 会话和事务跟踪
  • 崩溃和错误监控

适合对象

  • 使用 AppDynamics 的移动开发团队
  • 需要深入性能洞察的应用程序
  • 专注于用户体验优化的团队
  • 企业级监控需求
  • 带有可观测性的持续交付流水线

使用建议

  • 需要 AppDynamics 账户和许可证
  • 遥测收集带来的额外开销
  • 需要正确配置以避免数据量过大
  • 可能需要后端设置才能完全使用所有功能
  • 用户数据的隐私合规考虑

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

Pub Version

AppDynamics Flutter Plugin

Extension of the AppDynamics SDK that allows you to instrument Flutter apps and receive analytics.

This plugin wraps the native SDKs and requires a valid AppDynamics mobile license.

Features

The Flutter agent incorporates the following features:

  • Network request tracking via the TrackedHTTPClient and RequestTracker classes.
  • Automatic crash reporting and CrashReportCallback for extra crash report configuration.
  • Screen tracking via NavigationObserver and WidgetTracker.
  • Automatic detection and reporting of the app-is-not-responding cases (ANR).
  • SessionFrame mechanism to track custom user flows in the app.
  • Errors and custom metrics reporting.
  • Automatic capture of screenshots and user touch-points (iOS only).
  • Custom user data on network requests, crash reports, or sessions.
  • Report breadcrumbs to track UI widgets or custom user interactions.
  • Timers to track events that span across multiple methods.
  • Mark method execution as info points.
  • Split app instrumentation into multiple sessions.
  • Automatically report device metrics (memory, storage, battery) and connection transition events.

Getting started

Installation

You can install the Flutter plugin via flutter — more info on the Installation tab.

$ flutter pub add appdynamics_agent

Extra configuration for Android apps:

  1. Add the following changes to android/build.gradle:
dependencies {
    classpath "com.appdynamics:appdynamics-gradle-plugin:24.12.0"
    // ... other dependencies
}
  1. Apply the adeum plugin to the bottom of the android/app/build.gradle file:
dependencies {
    // ... project dependencies
}

// Bottom of file
apply plugin: 'adeum'
  1. Add the following permissions to your AndroidManifest.xml (usually in android/src/main/):
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.example.myawesomepackage">

    <!-- add these two permissions -->
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

    <!-- other permissions -->

    <application>
        <!-- other settings -->
    </application>
</manifest>

Start instrumentation

NOTE: Replace <EUM_APP_KEY> with your app key.

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

Future<void> main() async {
  WidgetsFlutterBinding.ensureInitialized();

  final config = AgentConfiguration(
      appKey: "<EUM_APP_KEY>",
      loggingLevel: LoggingLevel.verbose, // optional, for better debugging.
      collectorURL: "<COLLECTOR_URL>", // optional, mostly on-premises. 
      screenshotURL: "<SCREENSHOT_URL>" // optional, mostly on-premises.
  );
  await Instrumentation.start(config);

  runApp(const MyApp());
}

Docs

You can access pub.dev docs or check the official docs for extra customization of the agent.

所属分类

依赖

依赖清单 2 项

源码仓库

使用此插件的项目

暂无相关数据。