@@ -155,7 +155,7 @@ function patchAddDoc<AppModelType, DbModelType extends DocumentData>(
155155 reference : CollectionReference < AppModelType , DbModelType > ,
156156 data : WithFieldValue < AppModelType > ,
157157 ) : Promise < DocumentReference < AppModelType , DbModelType > > {
158- const span = startSpan ( tracer , 'addDoc' , reference ) ;
158+ const span = startDBSpan ( tracer , 'addDoc' , reference ) ;
159159 firestoreSpanCreationHook ( span ) ;
160160 return executeContextWithSpan < Promise < DocumentReference < AppModelType , DbModelType > > > ( span , ( ) => {
161161 return original ( reference , data ) ;
@@ -172,7 +172,7 @@ function patchDeleteDoc<AppModelType, DbModelType extends DocumentData>(
172172) => ( this : FirebaseInstrumentation , reference : DocumentReference < AppModelType , DbModelType > ) => Promise < void > {
173173 return function deleteDoc ( original : DeleteDocType < AppModelType , DbModelType > ) {
174174 return function patchDeleteDoc ( reference : DocumentReference < AppModelType , DbModelType > ) : Promise < void > {
175- const span = startSpan ( tracer , 'deleteDoc' , reference . parent || reference ) ;
175+ const span = startDBSpan ( tracer , 'deleteDoc' , reference . parent || reference ) ;
176176 firestoreSpanCreationHook ( span ) ;
177177 return executeContextWithSpan < Promise < void > > ( span , ( ) => {
178178 return original ( reference ) ;
@@ -194,7 +194,7 @@ function patchGetDocs<AppModelType, DbModelType extends DocumentData>(
194194 return function patchGetDocs (
195195 reference : CollectionReference < AppModelType , DbModelType > ,
196196 ) : Promise < QuerySnapshot < AppModelType , DbModelType > > {
197- const span = startSpan ( tracer , 'getDocs' , reference ) ;
197+ const span = startDBSpan ( tracer , 'getDocs' , reference ) ;
198198 firestoreSpanCreationHook ( span ) ;
199199 return executeContextWithSpan < Promise < QuerySnapshot < AppModelType , DbModelType > > > ( span , ( ) => {
200200 return original ( reference ) ;
@@ -220,7 +220,7 @@ function patchSetDoc<AppModelType, DbModelType extends DocumentData>(
220220 data : WithFieldValue < AppModelType > & PartialWithFieldValue < AppModelType > ,
221221 options ?: SetOptions ,
222222 ) : Promise < void > {
223- const span = startSpan ( tracer , 'setDocs' , reference . parent || reference ) ;
223+ const span = startDBSpan ( tracer , 'setDocs' , reference . parent || reference ) ;
224224 firestoreSpanCreationHook ( span ) ;
225225
226226 return executeContextWithSpan < Promise < void > > ( span , ( ) => {
@@ -247,7 +247,7 @@ function executeContextWithSpan<T>(span: Span, callback: () => T): T {
247247 } ) ;
248248}
249249
250- function startSpan < AppModelType , DbModelType extends DocumentData > (
250+ function startDBSpan < AppModelType , DbModelType extends DocumentData > (
251251 tracer : Tracer ,
252252 spanName : string ,
253253 reference : CollectionReference < AppModelType , DbModelType > | DocumentReference < AppModelType , DbModelType > ,
0 commit comments