Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
25 lines
1.3 KiB
Plaintext
25 lines
1.3 KiB
Plaintext
import type { Tracer } from '@opentelemetry/api';
|
|
import { InstrumentationNodeModuleDefinition } from '@opentelemetry/instrumentation';
|
|
import type { FirebaseInstrumentationConfig, FirestoreSettings } from '../types';
|
|
type ShimmerWrap = (target: any, name: string, wrapper: (...args: any[]) => any) => void;
|
|
type ShimmerUnwrap = (target: any, name: string) => void;
|
|
/**
|
|
*
|
|
* @param tracer - Opentelemetry Tracer
|
|
* @param firestoreSupportedVersions - supported version of firebase/firestore
|
|
* @param wrap - reference to native instrumentation wrap function
|
|
* @param unwrap - reference to native instrumentation wrap function
|
|
*/
|
|
export declare function patchFirestore(tracer: Tracer, firestoreSupportedVersions: string[], wrap: ShimmerWrap, unwrap: ShimmerUnwrap, config: FirebaseInstrumentationConfig): InstrumentationNodeModuleDefinition;
|
|
/**
|
|
* Gets the server address and port attributes from the Firestore settings.
|
|
* It's best effort to extract the address and port from the settings, especially for IPv6.
|
|
* @param span - The span to set attributes on.
|
|
* @param settings - The Firestore settings containing host information.
|
|
*/
|
|
export declare function getPortAndAddress(settings: FirestoreSettings): {
|
|
address?: string;
|
|
port?: number;
|
|
};
|
|
export {};
|
|
//# sourceMappingURL=firestore.d.ts.map |