UNPKG

@logtail/next

Version:

Better Stack Telemetry Next.js client

16 lines (15 loc) 555 B
import { NextWebVitalsMetric } from 'next/app'; import { EndpointType } from '../shared'; export default interface Provider { shouldSendEdgeReport: boolean; token: string | undefined; environment: string; region: string | undefined; ingestingUrl: string | undefined; isEnvVarsSet(): boolean; getIngestURL(t: EndpointType): string; wrapWebVitalsObject(metrics: NextWebVitalsMetric[]): any; injectPlatformMetadata(logEvent: any, source: string): void; getLogsEndpoint(): string; getWebVitalsEndpoint(): string; }