File tree Expand file tree Collapse file tree 5 files changed +9
-9
lines changed
Expand file tree Collapse file tree 5 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -754,12 +754,12 @@ export interface LoggerOptions {
754754}
755755
756756/**
757- * An object that includes a context object that is passed onwards.
757+ * An object that includes a trace object that is passed onwards.
758758 *
759759 * This is used by metrics method tracing to link function calls together.
760760 */
761- export interface ContextOptions {
762- context ?: any
761+ export interface TraceOptions {
762+ trace ?: any
763763}
764764
765765/**
@@ -768,7 +768,7 @@ export interface ContextOptions {
768768 * local caches but may not use the network if a valid local value is found,
769769 * these options allow tuning that behaviour.
770770 */
771- export interface RoutingOptions extends AbortOptions , ProgressOptions , ContextOptions {
771+ export interface RoutingOptions extends AbortOptions , ProgressOptions , TraceOptions {
772772 /**
773773 * Pass `false` to not use the network
774774 *
Original file line number Diff line number Diff line change @@ -504,7 +504,7 @@ export interface Metrics {
504504 /**
505505 * Creates a tracing context that can be used to trace a method call
506506 */
507- createTraceContext ( ) : any
507+ createTrace ( ) : any
508508}
509509
510510/**
Original file line number Diff line number Diff line change @@ -239,8 +239,8 @@ class DevToolsMetrics implements Metrics, Startable {
239239 return this . simpleMetrics . registerSummaryGroup ( name , options )
240240 }
241241
242- createTraceContext ( ) : any {
243- return this . simpleMetrics . createTraceContext ( )
242+ createTrace ( ) : any {
243+ return this . simpleMetrics . createTrace ( )
244244 }
245245
246246 traceFunction < T extends ( ...args : any [ ] ) => any > ( name : string , fn : T , options ?: any ) : T {
Original file line number Diff line number Diff line change @@ -491,7 +491,7 @@ class PrometheusMetrics implements Metrics {
491491 }
492492 }
493493
494- createTraceContext ( ) : any {
494+ createTrace ( ) : any {
495495 // no-op
496496 }
497497
Original file line number Diff line number Diff line change @@ -552,7 +552,7 @@ class SimpleMetrics implements Metrics, Startable {
552552 return metric
553553 }
554554
555- createTraceContext ( ) : any {
555+ createTrace ( ) : any {
556556 // no-op
557557 }
558558
You can’t perform that action at this time.
0 commit comments