MCPcopy
hub / github.com/angular/angularfire / trace

Function trace

src/compat/performance/performance.ts:136–145  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

134});
135
136export const trace = <T = any>(name: string) => (source$: Observable<T>) => new Observable<T>(subscriber => {
137 const traceSubscription = trace$(name).subscribe();
138 return source$.pipe(
139 tap(
140 () => traceSubscription.unsubscribe(),
141 () => undefined,
142 () => traceSubscription.unsubscribe()
143 )
144 ).subscribe(subscriber);
145});
146
147ɵapplyMixins(AngularFirePerformance, [proxyPolyfillCompat]);

Callers

nothing calls this directly

Calls 1

trace$Function · 0.85

Tested by

no test coverage detected