File tree 2 files changed +11
-0
lines changed
api/src/context/propagation
2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,9 @@ export class NoopTextMapPropagator implements TextMapPropagator {
27
27
extract ( context : Context , carrier : unknown ) : Context {
28
28
return context ;
29
29
}
30
+ fields ( ) : string [ ] {
31
+ return [ ] ;
32
+ }
30
33
}
31
34
32
35
export const NOOP_TEXT_MAP_PROPAGATOR = new NoopTextMapPropagator ( ) ;
Original file line number Diff line number Diff line change @@ -64,6 +64,14 @@ export interface TextMapPropagator<Carrier = any> {
64
64
carrier : Carrier ,
65
65
getter : TextMapGetter < Carrier >
66
66
) : Context ;
67
+
68
+ /**
69
+ * Return a list of all fields which may be used by the propagator.
70
+ *
71
+ * This list should be used to clear fields before calling inject if a carrier is
72
+ * used more than once.
73
+ */
74
+ fields ( ) : string [ ] ;
67
75
}
68
76
69
77
/**
You can’t perform that action at this time.
0 commit comments