Titanium JIRA Archive
Appcelerator Modules (MOD)

[MOD-2264] APM module: init() method can not get apm_id properly

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionWon't Do
Resolution Date2018-10-25T23:54:30.000+0000
Affected Version/sRelease 5.3.0
Fix Version/sn/a
ComponentsAPM
Labelsn/a
ReporterShuo Liang
AssigneeUnknown
Created2016-06-16T01:55:00.000+0000
Updated2018-10-25T23:54:30.000+0000

Description

Reproduce Step:

1. Create new default project with SDK 5.3.0 2. Enable performance service. 3. Add following lines in app.js
var apm = require("com.appcelerator.apm");
apm.init();
4. Run the app.

Problem:

You will get the following message, not error message, but really confusion. Not sure if apm working well or not.
-- Start application log -----------------------------------------------------
[DEBUG] :  Reading stylesheet from: /var/containers/Bundle/Application/AE1E7101-9F54-4AF2-BC34-21F2146D268C/APMTest.app/stylesheet.plist
[INFO] :   APMTest/1.0 (5.3.0.94fa8af)
[DEBUG] :  Loading: /var/containers/Bundle/Application/AE1E7101-9F54-4AF2-BC34-21F2146D268C/APMTest.app/app.js, Resource: app_js
[DEBUG] :  Loading: /var/containers/Bundle/Application/AE1E7101-9F54-4AF2-BC34-21F2146D268C/APMTest.app/_app_props_.json, Resource: _app_props__json
[DEBUG] :  Assigning Exception Handling Delegate...
[DEBUG] :  Done
[DEBUG] :  Initializing Crittercism '5.2.0' with App ID '8d47ef0a80f24887b7424a43ccc3b09100555300'
[DEBUG] :  Crittercism successfully initialized.
[DEBUG] :  Crittercism iOS Module initialized.
[INFO] :   [object ComAppceleratorApmModule] loaded
[DEBUG] :  Loading: /var/containers/Bundle/Application/AE1E7101-9F54-4AF2-BC34-21F2146D268C/APMTest.app/com.appcelerator.apm.js, Resource: com_appcelerator_apm_js
[DEBUG] :  Initializing Crittercism '5.2.0' with App ID '(null)'
[DEBUG] :  App ID required, Crittercism will not be enabled
[DEBUG] :  Application booted in 414.914012 ms
[DEBUG] :  Crittercism - net data collection disabled

Note

If you write the apm_id in inti() method like (apm.init("8d47ef0a80f24887b7424a43ccc3b09100555300")), there is no such problem.

Comments

No comments

JSON Source