Skip to content

Commit 87923ee

Browse files
committed
chore: change property name
1 parent 712d139 commit 87923ee

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

packages/interface/src/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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
*

packages/interface/src/metrics/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
/**

packages/metrics-devtools/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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 {

packages/metrics-prometheus/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ class PrometheusMetrics implements Metrics {
491491
}
492492
}
493493

494-
createTraceContext (): any {
494+
createTrace (): any {
495495
// no-op
496496
}
497497

packages/metrics-simple/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)