@opentelemetry/api
Advanced tools
Comparing version 0.8.1 to 0.8.2
@@ -16,4 +16,2 @@ /*! | ||
*/ | ||
/// <reference types="mocha" /> | ||
/// <reference types="node" /> | ||
import { ContextManager } from '@opentelemetry/context-base'; | ||
@@ -28,3 +26,3 @@ import { HttpTextPropagator } from '../context/propagation/HttpTextPropagator'; | ||
declare type Get<T> = (version: number) => T; | ||
export declare const _global: NodeJS.Global & Partial<{ | ||
export declare const _global: Partial<{ | ||
[GLOBAL_CONTEXT_MANAGER_API_KEY]: Get<ContextManager>; | ||
@@ -31,0 +29,0 @@ [GLOBAL_METRICS_API_KEY]: Get<MeterProvider>; |
@@ -18,2 +18,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const platform_1 = require("../platform"); | ||
exports.GLOBAL_CONTEXT_MANAGER_API_KEY = Symbol.for('io.opentelemetry.js.api.context'); | ||
@@ -23,3 +24,3 @@ exports.GLOBAL_METRICS_API_KEY = Symbol.for('io.opentelemetry.js.api.metrics'); | ||
exports.GLOBAL_TRACE_API_KEY = Symbol.for('io.opentelemetry.js.api.trace'); | ||
exports._global = global; | ||
exports._global = platform_1._globalThis; | ||
/** | ||
@@ -26,0 +27,0 @@ * Make a function which accepts a version integer and returns the instance of an API if the version |
@@ -96,3 +96,3 @@ /*! | ||
/** | ||
* Adds the given value to the current value. Values cannot be negative. | ||
* Adds the given value to the current value. Values cannot be negative. | ||
*/ | ||
@@ -103,3 +103,3 @@ add(value: number, labels?: Labels): void; | ||
/** | ||
* Records the given value to this measure. | ||
* Records the given value to this measure. | ||
*/ | ||
@@ -106,0 +106,0 @@ record(value: number, labels?: Labels): void; |
@@ -1,17 +0,2 @@ | ||
/*! | ||
* 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. | ||
*/ | ||
export declare const VERSION = "0.8.1"; | ||
export declare const VERSION = "0.8.2"; | ||
//# sourceMappingURL=version.d.ts.map |
"use strict"; | ||
/*! | ||
* Copyright 2019, OpenTelemetry Authors | ||
/* | ||
* Copyright 2020, OpenTelemetry Authors | ||
* | ||
@@ -19,3 +19,3 @@ * Licensed under the Apache License, Version 2.0 (the "License"); | ||
// this is autogenerated file, see scripts/version-update.js | ||
exports.VERSION = '0.8.1'; | ||
exports.VERSION = '0.8.2'; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@opentelemetry/api", | ||
"version": "0.8.1", | ||
"version": "0.8.2", | ||
"description": "Public API for OpenTelemetry", | ||
"main": "build/src/index.js", | ||
"types": "build/src/index.d.ts", | ||
"browser": { | ||
"./src/platform/index.ts": "./src/platform/browser/index.ts", | ||
"./build/src/platform/index.js": "./build/src/platform/browser/index.js" | ||
}, | ||
"repository": "open-telemetry/opentelemetry-js", | ||
@@ -14,4 +18,4 @@ "scripts": { | ||
"build": "npm run compile", | ||
"lint": "gts check", | ||
"lint:fix": "gts fix", | ||
"lint": "eslint . --ext .ts", | ||
"lint:fix": "eslint . --ext .ts --fix", | ||
"precompile": "tsc --version", | ||
@@ -51,3 +55,3 @@ "version:update": "node ../../scripts/version-update.js", | ||
"dependencies": { | ||
"@opentelemetry/context-base": "^0.8.1" | ||
"@opentelemetry/context-base": "^0.8.2" | ||
}, | ||
@@ -59,3 +63,3 @@ "devDependencies": { | ||
"codecov": "^3.6.1", | ||
"gts": "^1.1.0", | ||
"gts": "^2.0.0", | ||
"istanbul-instrumenter-loader": "^3.0.1", | ||
@@ -73,4 +77,2 @@ "karma": "^5.0.5", | ||
"ts-mocha": "^7.0.0", | ||
"tslint-consistent-codestyle": "^1.16.0", | ||
"tslint-microsoft-contrib": "^6.2.0", | ||
"typedoc": "^0.15.0", | ||
@@ -77,0 +79,0 @@ "typescript": "3.7.2", |
163291
20
97
3478