@grafana/faro-web-sdk 1.3.5 → 1.3.6
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.
- package/dist/bundle/faro-web-sdk.iife.js +1 -1
- package/dist/bundle/types/config/types.d.ts +5 -0
- package/dist/bundle/types/index.d.ts +1 -1
- package/dist/bundle/types/instrumentations/console/instrumentation.d.ts +1 -1
- package/dist/bundle/types/instrumentations/errors/instrumentation.d.ts +1 -1
- package/dist/bundle/types/instrumentations/index.d.ts +1 -0
- package/dist/bundle/types/instrumentations/performance/index.d.ts +1 -0
- package/dist/bundle/types/instrumentations/performance/instrumentation.d.ts +7 -0
- package/dist/bundle/types/instrumentations/performance/navigation.d.ts +3 -0
- package/dist/bundle/types/instrumentations/performance/performanceConstants.d.ts +3 -0
- package/dist/bundle/types/instrumentations/performance/performanceUtils.d.ts +6 -0
- package/dist/bundle/types/instrumentations/performance/performanceUtilsTestData.d.ts +2 -0
- package/dist/bundle/types/instrumentations/performance/resource.d.ts +2 -0
- package/dist/bundle/types/instrumentations/performance/types.d.ts +35 -0
- package/dist/bundle/types/instrumentations/session/instrumentation.d.ts +1 -1
- package/dist/bundle/types/instrumentations/session/sessionManager/sessionConstants.d.ts +1 -1
- package/dist/bundle/types/instrumentations/view/instrumentation.d.ts +1 -1
- package/dist/bundle/types/instrumentations/webVitals/instrumentation.d.ts +1 -1
- package/dist/bundle/types/transports/console/transport.d.ts +1 -1
- package/dist/bundle/types/transports/fetch/transport.d.ts +1 -1
- package/dist/cjs/config/getWebInstrumentations.js +4 -0
- package/dist/cjs/config/getWebInstrumentations.js.map +1 -1
- package/dist/cjs/config/types.js.map +1 -1
- package/dist/cjs/index.js +3 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/instrumentations/index.js +3 -1
- package/dist/cjs/instrumentations/index.js.map +1 -1
- package/dist/cjs/instrumentations/performance/index.js +6 -0
- package/dist/cjs/instrumentations/performance/index.js.map +1 -0
- package/dist/cjs/instrumentations/performance/instrumentation.js +98 -0
- package/dist/cjs/instrumentations/performance/instrumentation.js.map +1 -0
- package/dist/cjs/instrumentations/performance/navigation.js +43 -0
- package/dist/cjs/instrumentations/performance/navigation.js.map +1 -0
- package/dist/cjs/instrumentations/performance/performanceConstants.js +7 -0
- package/dist/cjs/instrumentations/performance/performanceConstants.js.map +1 -0
- package/dist/cjs/instrumentations/performance/performanceUtils.js +98 -0
- package/dist/cjs/instrumentations/performance/performanceUtils.js.map +1 -0
- package/dist/cjs/instrumentations/performance/performanceUtilsTestData.js +69 -0
- package/dist/cjs/instrumentations/performance/performanceUtilsTestData.js.map +1 -0
- package/dist/cjs/instrumentations/performance/resource.js +36 -0
- package/dist/cjs/instrumentations/performance/resource.js.map +1 -0
- package/dist/cjs/instrumentations/performance/types.js +3 -0
- package/dist/cjs/instrumentations/performance/types.js.map +1 -0
- package/dist/cjs/instrumentations/session/sessionManager/sessionConstants.js +1 -1
- package/dist/cjs/instrumentations/session/sessionManager/sessionConstants.js.map +1 -1
- package/dist/cjs/metas/session/createSession.js +1 -2
- package/dist/cjs/metas/session/createSession.js.map +1 -1
- package/dist/cjs/transports/fetch/transport.js +7 -4
- package/dist/cjs/transports/fetch/transport.js.map +1 -1
- package/dist/esm/config/getWebInstrumentations.js +5 -1
- package/dist/esm/config/getWebInstrumentations.js.map +1 -1
- package/dist/esm/config/types.js.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/instrumentations/index.js +1 -0
- package/dist/esm/instrumentations/index.js.map +1 -1
- package/dist/esm/instrumentations/performance/index.js +2 -0
- package/dist/esm/instrumentations/performance/index.js.map +1 -0
- package/dist/esm/instrumentations/performance/instrumentation.js +39 -0
- package/dist/esm/instrumentations/performance/instrumentation.js.map +1 -0
- package/dist/esm/instrumentations/performance/navigation.js +28 -0
- package/dist/esm/instrumentations/performance/navigation.js.map +1 -0
- package/dist/esm/instrumentations/performance/performanceConstants.js +4 -0
- package/dist/esm/instrumentations/performance/performanceConstants.js.map +1 -0
- package/dist/esm/instrumentations/performance/performanceUtils.js +89 -0
- package/dist/esm/instrumentations/performance/performanceUtils.js.map +1 -0
- package/dist/esm/instrumentations/performance/performanceUtilsTestData.js +66 -0
- package/dist/esm/instrumentations/performance/performanceUtilsTestData.js.map +1 -0
- package/dist/esm/instrumentations/performance/resource.js +20 -0
- package/dist/esm/instrumentations/performance/resource.js.map +1 -0
- package/dist/esm/instrumentations/performance/types.js +2 -0
- package/dist/esm/instrumentations/performance/types.js.map +1 -0
- package/dist/esm/instrumentations/session/sessionManager/sessionConstants.js +1 -1
- package/dist/esm/instrumentations/session/sessionManager/sessionConstants.js.map +1 -1
- package/dist/esm/metas/session/createSession.js +1 -2
- package/dist/esm/metas/session/createSession.js.map +1 -1
- package/dist/esm/transports/fetch/transport.js +6 -3
- package/dist/esm/transports/fetch/transport.js.map +1 -1
- package/dist/types/config/types.d.ts +5 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/instrumentations/console/instrumentation.d.ts +1 -1
- package/dist/types/instrumentations/errors/instrumentation.d.ts +1 -1
- package/dist/types/instrumentations/index.d.ts +1 -0
- package/dist/types/instrumentations/performance/index.d.ts +1 -0
- package/dist/types/instrumentations/performance/instrumentation.d.ts +7 -0
- package/dist/types/instrumentations/performance/navigation.d.ts +3 -0
- package/dist/types/instrumentations/performance/performanceConstants.d.ts +3 -0
- package/dist/types/instrumentations/performance/performanceUtils.d.ts +6 -0
- package/dist/types/instrumentations/performance/performanceUtilsTestData.d.ts +2 -0
- package/dist/types/instrumentations/performance/resource.d.ts +2 -0
- package/dist/types/instrumentations/performance/types.d.ts +35 -0
- package/dist/types/instrumentations/session/instrumentation.d.ts +1 -1
- package/dist/types/instrumentations/session/sessionManager/sessionConstants.d.ts +1 -1
- package/dist/types/instrumentations/view/instrumentation.d.ts +1 -1
- package/dist/types/instrumentations/webVitals/instrumentation.d.ts +1 -1
- package/dist/types/transports/console/transport.d.ts +1 -1
- package/dist/types/transports/fetch/transport.d.ts +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export type FaroNavigationTiming = Readonly<{
|
|
2
|
+
totalNavigationTime: string;
|
|
3
|
+
visibilityState: DocumentVisibilityState;
|
|
4
|
+
domProcessingTime: string;
|
|
5
|
+
pageLoadTime: string;
|
|
6
|
+
domContentLoadHandlerTime: string;
|
|
7
|
+
onLoadTime: string;
|
|
8
|
+
ttfb: string;
|
|
9
|
+
type: NavigationTimingType;
|
|
10
|
+
}>;
|
|
11
|
+
export type FaroResourceTiming = Readonly<{
|
|
12
|
+
name: string;
|
|
13
|
+
protocol: string;
|
|
14
|
+
tcpHandshakeTime: string;
|
|
15
|
+
dnsLookupTime: string;
|
|
16
|
+
tlsNegotiationTime: string;
|
|
17
|
+
redirectTime: string;
|
|
18
|
+
requestTime: string;
|
|
19
|
+
fetchTime: string;
|
|
20
|
+
serviceWorkerTime: string;
|
|
21
|
+
decodedBodySize: string;
|
|
22
|
+
encodedBodySize: string;
|
|
23
|
+
cacheHitStatus: 'cache' | 'conditionalFetch' | 'fullLoad';
|
|
24
|
+
renderBlockingStatus: 'blocking' | 'non-blocking' | 'unknown';
|
|
25
|
+
initiatorType: string;
|
|
26
|
+
}>;
|
|
27
|
+
export type FaroNavigationItem = {
|
|
28
|
+
faroNavigationId: string;
|
|
29
|
+
faroPreviousNavigationId: string;
|
|
30
|
+
} & FaroNavigationTiming & FaroResourceTiming;
|
|
31
|
+
export type FaroResourceItem = {
|
|
32
|
+
faroNavigationId: string;
|
|
33
|
+
faroResourceId: string;
|
|
34
|
+
} & FaroResourceTiming;
|
|
35
|
+
export type CacheType = 'cache' | 'conditionalFetch' | 'fullLoad';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BaseInstrumentation } from '@grafana/faro-core';
|
|
2
2
|
export declare class SessionInstrumentation extends BaseInstrumentation {
|
|
3
3
|
readonly name = "@grafana/faro-web-sdk:instrumentation-session";
|
|
4
|
-
readonly version = "1.3.
|
|
4
|
+
readonly version = "1.3.6";
|
|
5
5
|
private notifiedSession;
|
|
6
6
|
private sendSessionStartEvent;
|
|
7
7
|
private createInitialSessionMeta;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Config } from '@grafana/faro-core';
|
|
2
|
-
export declare const STORAGE_KEY = "
|
|
2
|
+
export declare const STORAGE_KEY = "com.grafana.faro.session";
|
|
3
3
|
export declare const SESSION_EXPIRATION_TIME: number;
|
|
4
4
|
export declare const SESSION_INACTIVITY_TIME: number;
|
|
5
5
|
export declare const STORAGE_UPDATE_DELAY: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BaseInstrumentation } from '@grafana/faro-core';
|
|
2
2
|
export declare class ViewInstrumentation extends BaseInstrumentation {
|
|
3
3
|
readonly name = "@grafana/faro-web-sdk:instrumentation-view";
|
|
4
|
-
readonly version = "1.3.
|
|
4
|
+
readonly version = "1.3.6";
|
|
5
5
|
private notifiedView;
|
|
6
6
|
private sendViewChangedEvent;
|
|
7
7
|
initialize(): void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BaseInstrumentation } from '@grafana/faro-core';
|
|
2
2
|
export declare class WebVitalsInstrumentation extends BaseInstrumentation {
|
|
3
3
|
readonly name = "@grafana/faro-web-sdk:instrumentation-web-vitals";
|
|
4
|
-
readonly version = "1.3.
|
|
4
|
+
readonly version = "1.3.6";
|
|
5
5
|
static mapping: {
|
|
6
6
|
cls: (onReport: import("web-vitals").CLSReportCallback, opts?: import("web-vitals").ReportOpts | undefined) => void;
|
|
7
7
|
fcp: (onReport: import("web-vitals").FCPReportCallback, opts?: import("web-vitals").ReportOpts | undefined) => void;
|
|
@@ -4,7 +4,7 @@ import type { ConsoleTransportOptions } from './types';
|
|
|
4
4
|
export declare class ConsoleTransport extends BaseTransport {
|
|
5
5
|
private options;
|
|
6
6
|
readonly name = "@grafana/faro-web-sdk:transport-console";
|
|
7
|
-
readonly version = "1.3.
|
|
7
|
+
readonly version = "1.3.6";
|
|
8
8
|
constructor(options?: ConsoleTransportOptions);
|
|
9
9
|
send(item: TransportItem): void;
|
|
10
10
|
}
|
|
@@ -4,7 +4,7 @@ import type { FetchTransportOptions } from './types';
|
|
|
4
4
|
export declare class FetchTransport extends BaseTransport {
|
|
5
5
|
private options;
|
|
6
6
|
readonly name = "@grafana/faro-web-sdk:transport-fetch";
|
|
7
|
-
readonly version = "1.3.
|
|
7
|
+
readonly version = "1.3.6";
|
|
8
8
|
promiseBuffer: PromiseBuffer<Response | void>;
|
|
9
9
|
private readonly rateLimitBackoffMs;
|
|
10
10
|
private readonly getNow;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@grafana/faro-web-sdk",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.6",
|
|
4
4
|
"description": "Faro instrumentations, metas, transports for web.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"observability",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"quality:circular-deps": "madge --circular ."
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@grafana/faro-core": "^1.3.
|
|
55
|
+
"@grafana/faro-core": "^1.3.6",
|
|
56
56
|
"ua-parser-js": "^1.0.32",
|
|
57
57
|
"web-vitals": "^3.1.1"
|
|
58
58
|
},
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
"publishConfig": {
|
|
64
64
|
"access": "public"
|
|
65
65
|
},
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "95ff610fa16233bbb35484b81ee65daaa5d725c0"
|
|
67
67
|
}
|