Spaces:
Paused
Paused
Download node_modules/@opentelemetry/api/build/src/propagation/TextMapPropagator.js from Huzaifa1313/prof1: direct link, hf CLI and curl.
- Browser
- Download file 785 Bytes
-
https://huggingface.co/spaces/Huzaifa1313/prof1/resolve/main/node_modules/%40opentelemetry/api/build/src/propagation/TextMapPropagator.js
- Command line
-
hf download hf://spaces/Huzaifa1313/prof1/node_modules/@opentelemetry/api/build/src/propagation/TextMapPropagator.js
-
curl -L -o TextMapPropagator.js https://huggingface.co/spaces/Huzaifa1313/prof1/resolve/main/node_modules/%40opentelemetry/api/build/src/propagation/TextMapPropagator.js
785 Bytes
| ; | |
| /* | |
| * Copyright The OpenTelemetry Authors | |
| * SPDX-License-Identifier: Apache-2.0 | |
| */ | |
| Object.defineProperty(exports, "__esModule", { value: true }); | |
| exports.defaultTextMapSetter = exports.defaultTextMapGetter = void 0; | |
| /** | |
| * @since 1.0.0 | |
| */ | |
| exports.defaultTextMapGetter = { | |
| get(carrier, key) { | |
| if (carrier == null) { | |
| return undefined; | |
| } | |
| return carrier[key]; | |
| }, | |
| keys(carrier) { | |
| if (carrier == null) { | |
| return []; | |
| } | |
| return Object.keys(carrier); | |
| }, | |
| }; | |
| /** | |
| * @since 1.0.0 | |
| */ | |
| exports.defaultTextMapSetter = { | |
| set(carrier, key, value) { | |
| if (carrier == null) { | |
| return; | |
| } | |
| carrier[key] = value; | |
| }, | |
| }; | |
| //# sourceMappingURL=TextMapPropagator.js.map |