19 lines
495 B
JavaScript
19 lines
495 B
JavaScript
/*
|
|
* Copyright The OpenTelemetry Authors
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
/**
|
|
* No-op implementations of {@link TextMapPropagator}.
|
|
*/
|
|
export class NoopTextMapPropagator {
|
|
/** Noop inject function does nothing */
|
|
inject(_context, _carrier) { }
|
|
/** Noop extract function does nothing and returns the input context */
|
|
extract(context, _carrier) {
|
|
return context;
|
|
}
|
|
fields() {
|
|
return [];
|
|
}
|
|
}
|
|
//# sourceMappingURL=NoopTextMapPropagator.js.map
|