next-axiom
Version:
Send WebVitals from your Next.js project to Axiom.
16 lines (15 loc) • 551 B
TypeScript
import { NextWebVitalsMetric } from 'next/app';
import { EndpointType } from '../shared';
export default interface Provider {
shouldSendEdgeReport: boolean;
token: string | undefined;
environment: string;
region: string | undefined;
axiomUrl: string | undefined;
isEnvVarsSet(): boolean;
getIngestURL(t: EndpointType): string;
wrapWebVitalsObject(metrics: NextWebVitalsMetric[]): any;
injectPlatformMetadata(logEvent: any, source: string): void;
getLogsEndpoint(): string;
getWebVitalsEndpoint(): string;
}