Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@grafana/faro-web-sdk

Package Overview
Dependencies
Maintainers
17
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@grafana/faro-web-sdk - npm Package Compare versions

Comparing version 1.0.0-beta2 to 1.0.0-beta3

2

dist/cjs/index.d.ts

@@ -12,2 +12,2 @@ export { getWebInstrumentations, makeCoreConfig } from './config';

export { faro, allLogLevels, BaseExtension, BaseInstrumentation, BaseTransport, Conventions, createInternalLogger, createPromiseBuffer, deepEqual, defaultExceptionType, defaultGlobalObjectKey, defaultInternalLoggerLevel, defaultLogLevel, getCurrentTimestamp, getInternalFaroFromGlobalObject, getTransportBody, globalObject, internalGlobalObjectKey, isArray, isBoolean, isDomError, isDomException, isElement, isElementDefined, isError, isErrorDefined, isErrorEvent, isEvent, isEventDefined, isFunction, isInstanceOf, isInt, isInternalFaroOnGlobalObject, isMap, isMapDefined, isNull, isNumber, isObject, isPrimitive, isRegExp, isString, isSymbol, isSyntheticEvent, isThenable, isToString, isTypeof, isUndefined, InternalLoggerLevel, LogLevel, noop, setInternalFaroOnGlobalObject, TransportItemType, transportItemTypeToBodyKey, VERSION, } from '@grafana/faro-core';
export type { Faro, API, APIEvent, BaseObject, BaseObjectKey, BaseObjectPrimitiveValue, BaseObjectValue, BeforeSendHook, BufferItem, Config, ExceptionEvent, ExceptionStackFrame, ExceptionsAPI, ExtendedError, GlobalObject, Instrumentation, InstrumentationLibrarySpan, Instrumentations, InternalLogger, LogContext, LogEvent, LogsAPI, MeasurementEvent, MeasurementsAPI, Meta, MetaAPI, MetaApp, MetaAttributes, MetaBrowser, MetaGetter, MetaItem, MetaPage, Metas, MetaSDK, MetaSDKIntegration, MetaSession, MetaUser, OTELApi, Patterns, PromiseBuffer, PromiseBufferOptions, PromiseProducer, PushErrorOptions, PushLogOptions, PushMeasurementOptions, ResourceSpan, Stacktrace, StacktraceParser, TraceContext, TraceEvent, TracesAPI, Transport, TransportBody, TransportItem, TransportItemPayload, Transports, UnpatchedConsole, EventEvent, EventsAPI, } from '@grafana/faro-core';
export type { Faro, API, APIEvent, BaseObject, BaseObjectKey, BaseObjectPrimitiveValue, BaseObjectValue, BeforeSendHook, BufferItem, Config, EventAttributes, EventEvent, EventsAPI, ExceptionEvent, ExceptionStackFrame, ExceptionsAPI, ExtendedError, GlobalObject, Instrumentation, Instrumentations, InternalLogger, LogContext, LogEvent, LogsAPI, MeasurementEvent, MeasurementsAPI, Meta, MetaAPI, MetaApp, MetaAttributes, MetaBrowser, MetaGetter, MetaItem, MetaPage, Metas, MetaSDK, MetaSDKIntegration, MetaSession, MetaUser, OTELApi, Patterns, PromiseBuffer, PromiseBufferOptions, PromiseProducer, PushErrorOptions, PushLogOptions, PushMeasurementOptions, Stacktrace, StacktraceParser, TraceContext, TraceEvent, TracesAPI, Transport, TransportBody, TransportItem, TransportItemPayload, Transports, UnpatchedConsole, } from '@grafana/faro-core';

@@ -6,3 +6,3 @@ import { BaseInstrumentation, LogLevel } from '@grafana/faro-core';

readonly name = "@grafana/faro-web-sdk:instrumentation-console";
readonly version = "1.0.0-beta1";
readonly version = "1.0.0-beta3";
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.0.0-beta1";
readonly version = "1.0.0-beta3";
initialize(): void;
}

@@ -6,4 +6,4 @@ export interface ExtendedPromiseRejectionEvent extends PromiseRejectionEvent {

}
export declare type ErrorEvent = (Error | Event) & {
export type ErrorEvent = (Error | Event) & {
error?: Error;
};
import { BaseInstrumentation } from '@grafana/faro-core';
export declare class WebVitalsInstrumentation extends BaseInstrumentation {
readonly name = "@grafana/faro-web-sdk:instrumentation-web-vitals";
readonly version = "1.0.0-beta1";
readonly version = "1.0.0-beta3";
static mapping: {

@@ -6,0 +6,0 @@ cls: (onReport: import("web-vitals").CLSReportCallback, opts?: import("web-vitals").ReportOpts | undefined) => void;

@@ -7,5 +7,5 @@ import { BaseTransport } from '@grafana/faro-core';

readonly name = "@grafana/faro-web-sdk:transport-console";
readonly version = "1.0.0-beta1";
readonly version = "1.0.0-beta3";
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.0.0-beta1";
readonly version = "1.0.0-beta3";
promiseBuffer: PromiseBuffer<Response | void>;

@@ -10,0 +10,0 @@ private rateLimitBackoffMs;

@@ -43,3 +43,3 @@ "use strict";

if (f) throw new TypeError("Generator is already executing.");
while (_) try {
while (g && (g = 0, op[0] && (_ = 0)), _) try {
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;

@@ -46,0 +46,0 @@ if (y = 0, t) op = [op[0] & 2, t.value];

@@ -17,3 +17,3 @@ "use strict";

if (f) throw new TypeError("Generator is already executing.");
while (_) try {
while (g && (g = 0, op[0] && (_ = 0)), _) try {
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;

@@ -20,0 +20,0 @@ if (y = 0, t) op = [op[0] & 2, t.value];

@@ -13,2 +13,2 @@ export interface FetchTransportRequestOptions extends Omit<RequestInit, 'body' | 'headers'> {

}
export declare type ClockFn = () => number;
export type ClockFn = () => number;

@@ -12,2 +12,2 @@ export { getWebInstrumentations, makeCoreConfig } from './config';

export { faro, allLogLevels, BaseExtension, BaseInstrumentation, BaseTransport, Conventions, createInternalLogger, createPromiseBuffer, deepEqual, defaultExceptionType, defaultGlobalObjectKey, defaultInternalLoggerLevel, defaultLogLevel, getCurrentTimestamp, getInternalFaroFromGlobalObject, getTransportBody, globalObject, internalGlobalObjectKey, isArray, isBoolean, isDomError, isDomException, isElement, isElementDefined, isError, isErrorDefined, isErrorEvent, isEvent, isEventDefined, isFunction, isInstanceOf, isInt, isInternalFaroOnGlobalObject, isMap, isMapDefined, isNull, isNumber, isObject, isPrimitive, isRegExp, isString, isSymbol, isSyntheticEvent, isThenable, isToString, isTypeof, isUndefined, InternalLoggerLevel, LogLevel, noop, setInternalFaroOnGlobalObject, TransportItemType, transportItemTypeToBodyKey, VERSION, } from '@grafana/faro-core';
export type { Faro, API, APIEvent, BaseObject, BaseObjectKey, BaseObjectPrimitiveValue, BaseObjectValue, BeforeSendHook, BufferItem, Config, ExceptionEvent, ExceptionStackFrame, ExceptionsAPI, ExtendedError, GlobalObject, Instrumentation, InstrumentationLibrarySpan, Instrumentations, InternalLogger, LogContext, LogEvent, LogsAPI, MeasurementEvent, MeasurementsAPI, Meta, MetaAPI, MetaApp, MetaAttributes, MetaBrowser, MetaGetter, MetaItem, MetaPage, Metas, MetaSDK, MetaSDKIntegration, MetaSession, MetaUser, OTELApi, Patterns, PromiseBuffer, PromiseBufferOptions, PromiseProducer, PushErrorOptions, PushLogOptions, PushMeasurementOptions, ResourceSpan, Stacktrace, StacktraceParser, TraceContext, TraceEvent, TracesAPI, Transport, TransportBody, TransportItem, TransportItemPayload, Transports, UnpatchedConsole, EventEvent, EventsAPI, } from '@grafana/faro-core';
export type { Faro, API, APIEvent, BaseObject, BaseObjectKey, BaseObjectPrimitiveValue, BaseObjectValue, BeforeSendHook, BufferItem, Config, EventAttributes, EventEvent, EventsAPI, ExceptionEvent, ExceptionStackFrame, ExceptionsAPI, ExtendedError, GlobalObject, Instrumentation, Instrumentations, InternalLogger, LogContext, LogEvent, LogsAPI, MeasurementEvent, MeasurementsAPI, Meta, MetaAPI, MetaApp, MetaAttributes, MetaBrowser, MetaGetter, MetaItem, MetaPage, Metas, MetaSDK, MetaSDKIntegration, MetaSession, MetaUser, OTELApi, Patterns, PromiseBuffer, PromiseBufferOptions, PromiseProducer, PushErrorOptions, PushLogOptions, PushMeasurementOptions, Stacktrace, StacktraceParser, TraceContext, TraceEvent, TracesAPI, Transport, TransportBody, TransportItem, TransportItemPayload, Transports, UnpatchedConsole, } from '@grafana/faro-core';

@@ -6,3 +6,3 @@ import { BaseInstrumentation, LogLevel } from '@grafana/faro-core';

readonly name = "@grafana/faro-web-sdk:instrumentation-console";
readonly version = "1.0.0-beta1";
readonly version = "1.0.0-beta3";
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.0.0-beta1";
readonly version = "1.0.0-beta3";
initialize(): void;
}

@@ -6,4 +6,4 @@ export interface ExtendedPromiseRejectionEvent extends PromiseRejectionEvent {

}
export declare type ErrorEvent = (Error | Event) & {
export type ErrorEvent = (Error | Event) & {
error?: Error;
};
import { BaseInstrumentation } from '@grafana/faro-core';
export declare class WebVitalsInstrumentation extends BaseInstrumentation {
readonly name = "@grafana/faro-web-sdk:instrumentation-web-vitals";
readonly version = "1.0.0-beta1";
readonly version = "1.0.0-beta3";
static mapping: {

@@ -6,0 +6,0 @@ cls: (onReport: import("web-vitals").CLSReportCallback, opts?: import("web-vitals").ReportOpts | undefined) => void;

@@ -7,5 +7,5 @@ import { BaseTransport } from '@grafana/faro-core';

readonly name = "@grafana/faro-web-sdk:transport-console";
readonly version = "1.0.0-beta1";
readonly version = "1.0.0-beta3";
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.0.0-beta1";
readonly version = "1.0.0-beta3";
promiseBuffer: PromiseBuffer<Response | void>;

@@ -10,0 +10,0 @@ private rateLimitBackoffMs;

@@ -13,2 +13,2 @@ export interface FetchTransportRequestOptions extends Omit<RequestInit, 'body' | 'headers'> {

}
export declare type ClockFn = () => number;
export type ClockFn = () => number;
{
"name": "@grafana/faro-web-sdk",
"version": "1.0.0-beta2",
"version": "1.0.0-beta3",
"description": "Faro instrumentations, metas, transports for web.",
"keywords": [
"observability",
"apm",
"rum",
"logs",
"traces",
"metrics",
"browser"
],
"license": "Apache-2.0",

@@ -37,5 +46,5 @@ "author": "Grafana Labs",

"dependencies": {
"@grafana/faro-core": "^1.0.0-beta2",
"@grafana/faro-core": "^1.0.0-beta3",
"ua-parser-js": "^1.0.32",
"web-vitals": "^3.0.4"
"web-vitals": "^3.1.0"
},

@@ -48,3 +57,3 @@ "devDependencies": {

},
"gitHead": "908d0abf71a64a38bd9d5cc1bbba26d52e4ae063"
"gitHead": "99cc29ee4c9bfece5697b016855f3a2ba96a9848"
}
# @grafana/faro-web-sdk
Faro is a SDK that can instrument frontend JavaScript applications to collect
telemetry and forward it to the [Grafana Agent](https://grafana.com/docs/agent/latest/)
Faro is a SDK that can instrument frontend JavaScript applications to collect telemetry and forward it to the [Grafana Agent](https://grafana.com/docs/agent/latest/)
(with app agent receiver integration enabled).
Grafana Agent can then send this data to
[Loki](https://grafana.com/logs/), or [Tempo](https://grafana.com/traces/).
Grafana Agent can then send this data to either [Loki](https://grafana.com/logs/) or [Tempo](https://grafana.com/traces/).
_Warning_: currently pre-release and subject to frequent breaking changes. Use at your own risk.

@@ -10,0 +9,0 @@

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc