@opentelemetry/context-base
Advanced tools
Comparing version 0.8.3 to 0.9.0
@@ -1,21 +0,1 @@ | ||
/*! | ||
* Copyright 2020, OpenTelemetry 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 | ||
* | ||
* https://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. | ||
*/ | ||
/** | ||
* Class which stores and manages current context values. All methods which | ||
* update context such as get and delete do not modify an existing context, | ||
* but create a new one with updated values. | ||
*/ | ||
export declare class Context { | ||
@@ -22,0 +2,0 @@ private _currentContext; |
"use strict"; | ||
/*! | ||
* Copyright 2020, OpenTelemetry Authors | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Context = void 0; | ||
/* | ||
* Copyright The OpenTelemetry Authors | ||
* | ||
@@ -17,8 +19,2 @@ * Licensed under the Apache License, Version 2.0 (the "License"); | ||
*/ | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
/** | ||
* Class which stores and manages current context values. All methods which | ||
* update context such as get and delete do not modify an existing context, | ||
* but create a new one with updated values. | ||
*/ | ||
class Context { | ||
@@ -25,0 +21,0 @@ /** |
"use strict"; | ||
/* | ||
* Copyright 2020, OpenTelemetry Authors | ||
* Copyright The OpenTelemetry Authors | ||
* | ||
@@ -17,8 +17,16 @@ * Licensed under the Apache License, Version 2.0 (the "License"); | ||
*/ | ||
function __export(m) { | ||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
} | ||
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 }); | ||
__export(require("./context")); | ||
__export(require("./NoopContextManager")); | ||
__exportStar(require("./types"), exports); | ||
__exportStar(require("./context"), exports); | ||
__exportStar(require("./NoopContextManager"), exports); | ||
//# sourceMappingURL=index.js.map |
@@ -1,16 +0,1 @@ | ||
/*! | ||
* Copyright 2019, OpenTelemetry 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 | ||
* | ||
* https://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. | ||
*/ | ||
import * as types from './types'; | ||
@@ -17,0 +2,0 @@ import { Context } from './context'; |
"use strict"; | ||
/*! | ||
* Copyright 2019, OpenTelemetry Authors | ||
/* | ||
* Copyright The OpenTelemetry Authors | ||
* | ||
@@ -18,2 +18,3 @@ * Licensed under the Apache License, Version 2.0 (the "License"); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.NoopContextManager = void 0; | ||
const context_1 = require("./context"); | ||
@@ -20,0 +21,0 @@ class NoopContextManager { |
@@ -1,16 +0,1 @@ | ||
/*! | ||
* Copyright 2019, OpenTelemetry 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 | ||
* | ||
* https://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. | ||
*/ | ||
import { Context } from './context'; | ||
@@ -17,0 +2,0 @@ export interface ContextManager { |
"use strict"; | ||
/*! | ||
* Copyright 2019, OpenTelemetry Authors | ||
/* | ||
* Copyright The OpenTelemetry Authors | ||
* | ||
@@ -5,0 +5,0 @@ * Licensed under the Apache License, Version 2.0 (the "License"); |
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = "0.8.3"; | ||
export declare const VERSION = "0.9.0"; | ||
//# sourceMappingURL=version.d.ts.map |
"use strict"; | ||
/* | ||
* Copyright 2020, OpenTelemetry Authors | ||
* Copyright The OpenTelemetry Authors | ||
* | ||
@@ -18,4 +18,5 @@ * Licensed under the Apache License, Version 2.0 (the "License"); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.VERSION = void 0; | ||
// this is autogenerated file, see scripts/version-update.js | ||
exports.VERSION = '0.8.3'; | ||
exports.VERSION = '0.9.0'; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@opentelemetry/context-base", | ||
"version": "0.8.3", | ||
"version": "0.9.0", | ||
"description": "OpenTelemetry Base Context Manager", | ||
@@ -46,13 +46,13 @@ "main": "build/src/index.js", | ||
"devDependencies": { | ||
"@types/mocha": "^7.0.0", | ||
"@types/node": "^14.0.5", | ||
"codecov": "^3.6.1", | ||
"gts": "^2.0.0", | ||
"mocha": "^7.1.2", | ||
"nyc": "^15.0.0", | ||
"rimraf": "^3.0.0", | ||
"ts-mocha": "^7.0.0", | ||
"ts-node": "^8.6.2", | ||
"typescript": "3.7.2" | ||
"@types/mocha": "7.0.2", | ||
"@types/node": "14.0.13", | ||
"codecov": "3.7.0", | ||
"gts": "2.0.2", | ||
"mocha": "7.2.0", | ||
"nyc": "15.1.0", | ||
"rimraf": "3.0.2", | ||
"ts-mocha": "7.0.0", | ||
"ts-node": "8.10.2", | ||
"typescript": "3.9.5" | ||
} | ||
} |
# OpenTelemetry Base Context Manager | ||
[![Gitter chat][gitter-image]][gitter-url] | ||
@@ -10,3 +11,3 @@ [![NPM Published Version][npm-img]][npm-url] | ||
## What is a Context Manager ? | ||
## What is a Context Manager | ||
@@ -22,2 +23,3 @@ To understand why they exists, we'll need to understand how Javascript works: when you make native function call (networks, setInterval etc) you generally call C++ code that will later callback your own code. | ||
## Useful links | ||
- For more information on OpenTelemetry, visit: <https://opentelemetry.io/> | ||
@@ -24,0 +26,0 @@ - For more about OpenTelemetry JavaScript: <https://github.com/open-telemetry/opentelemetry-js> |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
42
25580
258