@grafana/faro-web-sdk
Advanced tools
Comparing version 1.8.2 to 1.9.0
@@ -6,3 +6,3 @@ import { BaseInstrumentation, LogLevel } from '@grafana/faro-core'; | ||
readonly name = "@grafana/faro-web-sdk:instrumentation-console"; | ||
readonly version = "1.8.2"; | ||
readonly version = "1.9.0"; | ||
static defaultDisabledLevels: LogLevel[]; | ||
@@ -9,0 +9,0 @@ constructor(options?: ConsoleInstrumentationOptions); |
import { BaseInstrumentation } from '@grafana/faro-core'; | ||
export declare class ErrorsInstrumentation extends BaseInstrumentation { | ||
readonly name = "@grafana/faro-web-sdk:instrumentation-errors"; | ||
readonly version = "1.8.2"; | ||
readonly version = "1.9.0"; | ||
initialize(): void; | ||
} |
import { BaseInstrumentation } from '@grafana/faro-core'; | ||
export declare class PerformanceInstrumentation extends BaseInstrumentation { | ||
readonly name = "@grafana/faro-web-sdk:instrumentation-performance"; | ||
readonly version = "1.8.2"; | ||
readonly version = "1.9.0"; | ||
initialize(): void; | ||
private getIgnoreUrls; | ||
} |
import { BaseInstrumentation } from '@grafana/faro-core'; | ||
export declare class SessionInstrumentation extends BaseInstrumentation { | ||
readonly name = "@grafana/faro-web-sdk:instrumentation-session"; | ||
readonly version = "1.8.2"; | ||
readonly version = "1.9.0"; | ||
private notifiedSession; | ||
@@ -6,0 +6,0 @@ private sendSessionStartEvent; |
import { BaseInstrumentation } from '@grafana/faro-core'; | ||
export declare class ViewInstrumentation extends BaseInstrumentation { | ||
readonly name = "@grafana/faro-web-sdk:instrumentation-view"; | ||
readonly version = "1.8.2"; | ||
readonly version = "1.9.0"; | ||
private notifiedView; | ||
@@ -6,0 +6,0 @@ private sendViewChangedEvent; |
import { BaseInstrumentation } from '@grafana/faro-core'; | ||
export declare class WebVitalsInstrumentation extends BaseInstrumentation { | ||
readonly name = "@grafana/faro-web-sdk:instrumentation-web-vitals"; | ||
readonly version = "1.8.2"; | ||
readonly version = "1.9.0"; | ||
initialize(): void; | ||
private intializeWebVitalsInstrumentation; | ||
} |
@@ -7,5 +7,5 @@ import { BaseTransport } from '@grafana/faro-core'; | ||
readonly name = "@grafana/faro-web-sdk:transport-console"; | ||
readonly version = "1.8.2"; | ||
readonly version = "1.9.0"; | ||
constructor(options?: ConsoleTransportOptions); | ||
send(item: TransportItem): void; | ||
} |
@@ -7,3 +7,3 @@ import { BaseTransport, PromiseBuffer } from '@grafana/faro-core'; | ||
readonly name = "@grafana/faro-web-sdk:transport-fetch"; | ||
readonly version = "1.8.2"; | ||
readonly version = "1.9.0"; | ||
promiseBuffer: PromiseBuffer<Response | void>; | ||
@@ -10,0 +10,0 @@ private readonly rateLimitBackoffMs; |
@@ -36,3 +36,6 @@ "use strict"; | ||
(0, utils_1.setItem)(instrumentationConstants_1.NAVIGATION_ID_STORAGE_KEY, faroNavigationEntry.faroNavigationId, utils_1.webStorageType.session); | ||
pushEvent('faro.performance.navigation', faroNavigationEntry, undefined, { spanContext: spanContext }); | ||
pushEvent('faro.performance.navigation', faroNavigationEntry, undefined, { | ||
spanContext: spanContext, | ||
timestampOverwriteMs: performance.timeOrigin + navEntryJson.startTime, | ||
}); | ||
faroNavigationEntryResolve(faroNavigationEntry); | ||
@@ -39,0 +42,0 @@ }); |
@@ -28,8 +28,11 @@ "use strict"; | ||
} | ||
var resourceEntryRawJSON = resourceEntryRaw.toJSON(); | ||
var spanContext = (0, performanceUtils_1.getSpanContextFromServerTiming)(resourceEntryRawJSON === null || resourceEntryRawJSON === void 0 ? void 0 : resourceEntryRawJSON.serverTiming); | ||
if ((trackResources == null && (0, performanceUtils_1.includePerformanceEntry)(resourceEntryRawJSON, DEFAULT_TRACK_RESOURCES)) || | ||
var resourceEntryJson = resourceEntryRaw.toJSON(); | ||
var spanContext = (0, performanceUtils_1.getSpanContextFromServerTiming)(resourceEntryJson === null || resourceEntryJson === void 0 ? void 0 : resourceEntryJson.serverTiming); | ||
if ((trackResources == null && (0, performanceUtils_1.includePerformanceEntry)(resourceEntryJson, DEFAULT_TRACK_RESOURCES)) || | ||
trackResources) { | ||
var faroResourceEntry = __assign(__assign({}, (0, performanceUtils_1.createFaroResourceTiming)(resourceEntryRawJSON)), { faroNavigationId: faroNavigationId, faroResourceId: (0, faro_core_1.genShortID)() }); | ||
pushEvent('faro.performance.resource', faroResourceEntry, undefined, { spanContext: spanContext }); | ||
var faroResourceEntry = __assign(__assign({}, (0, performanceUtils_1.createFaroResourceTiming)(resourceEntryJson)), { faroNavigationId: faroNavigationId, faroResourceId: (0, faro_core_1.genShortID)() }); | ||
pushEvent('faro.performance.resource', faroResourceEntry, undefined, { | ||
spanContext: spanContext, | ||
timestampOverwriteMs: performance.timeOrigin + resourceEntryJson.startTime, | ||
}); | ||
} | ||
@@ -36,0 +39,0 @@ } |
@@ -22,3 +22,6 @@ import { genShortID } from '@grafana/faro-core'; | ||
setItem(NAVIGATION_ID_STORAGE_KEY, faroNavigationEntry.faroNavigationId, webStorageType.session); | ||
pushEvent('faro.performance.navigation', faroNavigationEntry, undefined, { spanContext }); | ||
pushEvent('faro.performance.navigation', faroNavigationEntry, undefined, { | ||
spanContext, | ||
timestampOverwriteMs: performance.timeOrigin + navEntryJson.startTime, | ||
}); | ||
faroNavigationEntryResolve(faroNavigationEntry); | ||
@@ -25,0 +28,0 @@ }); |
@@ -13,8 +13,11 @@ import { faro, genShortID } from '@grafana/faro-core'; | ||
} | ||
const resourceEntryRawJSON = resourceEntryRaw.toJSON(); | ||
let spanContext = getSpanContextFromServerTiming(resourceEntryRawJSON === null || resourceEntryRawJSON === void 0 ? void 0 : resourceEntryRawJSON.serverTiming); | ||
if ((trackResources == null && includePerformanceEntry(resourceEntryRawJSON, DEFAULT_TRACK_RESOURCES)) || | ||
const resourceEntryJson = resourceEntryRaw.toJSON(); | ||
let spanContext = getSpanContextFromServerTiming(resourceEntryJson === null || resourceEntryJson === void 0 ? void 0 : resourceEntryJson.serverTiming); | ||
if ((trackResources == null && includePerformanceEntry(resourceEntryJson, DEFAULT_TRACK_RESOURCES)) || | ||
trackResources) { | ||
const faroResourceEntry = Object.assign(Object.assign({}, createFaroResourceTiming(resourceEntryRawJSON)), { faroNavigationId, faroResourceId: genShortID() }); | ||
pushEvent('faro.performance.resource', faroResourceEntry, undefined, { spanContext }); | ||
const faroResourceEntry = Object.assign(Object.assign({}, createFaroResourceTiming(resourceEntryJson)), { faroNavigationId, faroResourceId: genShortID() }); | ||
pushEvent('faro.performance.resource', faroResourceEntry, undefined, { | ||
spanContext, | ||
timestampOverwriteMs: performance.timeOrigin + resourceEntryJson.startTime, | ||
}); | ||
} | ||
@@ -21,0 +24,0 @@ } |
@@ -6,3 +6,3 @@ import { BaseInstrumentation, LogLevel } from '@grafana/faro-core'; | ||
readonly name = "@grafana/faro-web-sdk:instrumentation-console"; | ||
readonly version = "1.8.2"; | ||
readonly version = "1.9.0"; | ||
static defaultDisabledLevels: LogLevel[]; | ||
@@ -9,0 +9,0 @@ constructor(options?: ConsoleInstrumentationOptions); |
import { BaseInstrumentation } from '@grafana/faro-core'; | ||
export declare class ErrorsInstrumentation extends BaseInstrumentation { | ||
readonly name = "@grafana/faro-web-sdk:instrumentation-errors"; | ||
readonly version = "1.8.2"; | ||
readonly version = "1.9.0"; | ||
initialize(): void; | ||
} |
import { BaseInstrumentation } from '@grafana/faro-core'; | ||
export declare class PerformanceInstrumentation extends BaseInstrumentation { | ||
readonly name = "@grafana/faro-web-sdk:instrumentation-performance"; | ||
readonly version = "1.8.2"; | ||
readonly version = "1.9.0"; | ||
initialize(): void; | ||
private getIgnoreUrls; | ||
} |
import { BaseInstrumentation } from '@grafana/faro-core'; | ||
export declare class SessionInstrumentation extends BaseInstrumentation { | ||
readonly name = "@grafana/faro-web-sdk:instrumentation-session"; | ||
readonly version = "1.8.2"; | ||
readonly version = "1.9.0"; | ||
private notifiedSession; | ||
@@ -6,0 +6,0 @@ private sendSessionStartEvent; |
import { BaseInstrumentation } from '@grafana/faro-core'; | ||
export declare class ViewInstrumentation extends BaseInstrumentation { | ||
readonly name = "@grafana/faro-web-sdk:instrumentation-view"; | ||
readonly version = "1.8.2"; | ||
readonly version = "1.9.0"; | ||
private notifiedView; | ||
@@ -6,0 +6,0 @@ private sendViewChangedEvent; |
import { BaseInstrumentation } from '@grafana/faro-core'; | ||
export declare class WebVitalsInstrumentation extends BaseInstrumentation { | ||
readonly name = "@grafana/faro-web-sdk:instrumentation-web-vitals"; | ||
readonly version = "1.8.2"; | ||
readonly version = "1.9.0"; | ||
initialize(): void; | ||
private intializeWebVitalsInstrumentation; | ||
} |
@@ -7,5 +7,5 @@ import { BaseTransport } from '@grafana/faro-core'; | ||
readonly name = "@grafana/faro-web-sdk:transport-console"; | ||
readonly version = "1.8.2"; | ||
readonly version = "1.9.0"; | ||
constructor(options?: ConsoleTransportOptions); | ||
send(item: TransportItem): void; | ||
} |
@@ -7,3 +7,3 @@ import { BaseTransport, PromiseBuffer } from '@grafana/faro-core'; | ||
readonly name = "@grafana/faro-web-sdk:transport-fetch"; | ||
readonly version = "1.8.2"; | ||
readonly version = "1.9.0"; | ||
promiseBuffer: PromiseBuffer<Response | void>; | ||
@@ -10,0 +10,0 @@ private readonly rateLimitBackoffMs; |
{ | ||
"name": "@grafana/faro-web-sdk", | ||
"version": "1.8.2", | ||
"version": "1.9.0", | ||
"description": "Faro instrumentations, metas, transports for web.", | ||
@@ -55,3 +55,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@grafana/faro-core": "^1.8.2", | ||
"@grafana/faro-core": "^1.9.0", | ||
"ua-parser-js": "^1.0.32", | ||
@@ -67,3 +67,3 @@ "web-vitals": "^4.0.1" | ||
}, | ||
"gitHead": "ce860054636cc98bc3ad86420c3da19cccfc971a" | ||
"gitHead": "adbb672f86fe8158022cb93a2802edf6219e6655" | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
659524
5179
Updated@grafana/faro-core@^1.9.0