UNPKG

@opencensus/propagation-stackdriver

Version:
48 lines 1.96 kB
"use strict"; /** * Copyright 2018, OpenCensus Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })); var __exportStar = (this && this.__exportStar) || function(m, exports) { for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.generate = exports.inject = exports.extract = exports.v1 = void 0; __exportStar(require("./stackdriver-format"), exports); const v1API = require("./v1"); /** * @deprecated since version 0.0.10 - use {@link StackdriverFormat} instead * All other propagation exports a class constructor, while Stackdriver v1 * propagation exports an implementation of Propagation. */ exports.v1 = { extract: v1API.extract, inject: v1API.inject, generate: v1API.generate, }; // Also export the v1 API as the default API. // tslint:disable-next-line:deprecation exports.extract = exports.v1.extract; // tslint:disable-next-line:deprecation exports.inject = exports.v1.inject; // tslint:disable-next-line:deprecation exports.generate = exports.v1.generate; //# sourceMappingURL=index.js.map