* @internal
(carrier: OTELCarrier | undefined)
| 141 | * @internal |
| 142 | */ |
| 143 | getContextFromCarrier(carrier: OTELCarrier | undefined): Context { |
| 144 | if (!this.#otel) { |
| 145 | return this.#noopContext |
| 146 | } |
| 147 | const activeContext = this.#otel.context.active() |
| 148 | if (!carrier) { |
| 149 | return activeContext |
| 150 | } |
| 151 | return this.#otel.propagation.extract(activeContext, carrier) |
| 152 | } |
| 153 | |
| 154 | /** |
| 155 | * @internal |
no test coverage detected