@lark-apaas/observable-web 1.0.0-alpha.3 → 1.0.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -30,7 +30,7 @@ class PvInstrumentation {
|
|
|
30
30
|
* 开启自动采集
|
|
31
31
|
*/
|
|
32
32
|
enable() {
|
|
33
|
-
const pvCounter = this.meter.createCounter("
|
|
33
|
+
const pvCounter = this.meter.createCounter("apaas_internal_metrics_pv_uv", {
|
|
34
34
|
description: "Count of page views"
|
|
35
35
|
});
|
|
36
36
|
const reportPv = () => {
|
package/dist/lib/core/sdk.js
CHANGED
|
@@ -116,7 +116,7 @@ class WebObservableSdk {
|
|
|
116
116
|
}
|
|
117
117
|
initAutoPv() {
|
|
118
118
|
var _a;
|
|
119
|
-
const meter = (_a = this.meterProvider) == null ? void 0 : _a.getMeter("
|
|
119
|
+
const meter = (_a = this.meterProvider) == null ? void 0 : _a.getMeter("apaas_internal_metrics_pv_uv");
|
|
120
120
|
if (!meter) return;
|
|
121
121
|
const pvTracker = new import_PvInstrumentation.PvInstrumentation(meter);
|
|
122
122
|
pvTracker.enable();
|