{"id":19411513,"url":"https://github.com/volcengine/apmplus_harmony","last_synced_at":"2025-04-28T14:14:00.110Z","repository":{"id":244784294,"uuid":"816214558","full_name":"volcengine/APMPlus_Harmony","owner":"volcengine","description":"APMPlus Harmony monitor","archived":false,"fork":false,"pushed_at":"2024-10-11T08:23:17.000Z","size":28,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-28T14:13:56.794Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/volcengine.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-17T09:20:59.000Z","updated_at":"2024-12-20T01:51:11.000Z","dependencies_parsed_at":"2024-06-17T12:46:51.566Z","dependency_job_id":"b3da4fac-246e-4a09-baf8-60957f13d407","html_url":"https://github.com/volcengine/APMPlus_Harmony","commit_stats":null,"previous_names":["volcengine/apmplus_harmony"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/volcengine%2FAPMPlus_Harmony","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/volcengine%2FAPMPlus_Harmony/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/volcengine%2FAPMPlus_Harmony/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/volcengine%2FAPMPlus_Harmony/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/volcengine","download_url":"https://codeload.github.com/volcengine/APMPlus_Harmony/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251326851,"owners_count":21571636,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-10T12:21:50.344Z","updated_at":"2025-04-28T14:14:00.084Z","avatar_url":"https://github.com/volcengine.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# APMPlus Harmony 性能稳定性监控\n## 一、简介\n这是APMPlus Harmony SDK的demo项目。\n\n火山引擎 APMPlus Harmony SDK，支持对Harmony OS Next平台的APP进行监控，可以查看线上真实用户的稳定性、性能、自定义埋点数据，帮助研发及时发现线上异常、定位排障，助力企业通过监控数据有效优化用户体验。\n【APMPlus平台】https://www.volcengine.com/product/apmplus\n\n## 二、APMPlus SDK 接入\n### 2.1 创建产品\n需要在火山引擎平台注册账号，然后在应用性能监控全链路版控制台创建应用。创建完成后可以在平台看到AppID、AppToken。具体的接入应用文档：https://www.volcengine.com/docs/6431/70797\n产品创建后需要购买事件可以在平台查看上报数据，试用可以在火山平台联系在线客服，提供AppID申请免费试用额度。具体开通服务文档：https://www.volcengine.com/docs/6431/75599\n### 2.2 集成SDK\n通过 ohpm 安装APMPlus SDK。\n```shell\nohpm i @volcengine/apmplus@latest\n```\n### 2.3 初始化SDK\nSDK初始化需要尽早完成，建议在 AbilityStage 或者 Ability 的 onCreate 生命周期中。初始化代码参考如下：\n\n```\n    APMPlus.init(this.context);\n    \n    let builder = new APMPlusBuilder(\"AppID\", \"AppToken\");//必填\n    builder.debug = true;//可选，测试阶段配置有输出日志\n    builder.channel = \"volcengine\";//可选，渠道\n    builder.startMonitor = true;//可选，是否开启启动监控\n    builder.versionCode = BuildProfile.VERSION_CODE;//可选，应用versionCode\n    builder.versionName = BuildProfile.VERSION_NAME;//可选，应用versionName\n    builder.dynamicParams = {\n      getDeviceId: () =\u003e {\n        return \"device_id\";//可选，设备device_id，不返回会使用内部内置默认device_id.\n      },\n      getUserId: () =\u003e {\n        return \"user_id\";//可选，用户标识，没有默认值。\n      }\n    }\n    APMPlus.start(builder);\n```\n详细接入文档：https://www.volcengine.com/docs/6431/1256322\n\n## 三、更多信息\n更详细的接入文档、功能介绍、最佳实践请参考【应用性能监控全链路版】 https://www.volcengine.com/docs/6431/69088 也可以在官网咨询在线客服获取更多支持。\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvolcengine%2Fapmplus_harmony","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvolcengine%2Fapmplus_harmony","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvolcengine%2Fapmplus_harmony/lists"}