@opentelemetry/api
Advanced tools
Comparing version 0.8.3 to 0.9.0
@@ -1,16 +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. | ||
*/ | ||
import { Context, ContextManager } from '@opentelemetry/context-base'; | ||
@@ -17,0 +2,0 @@ /** |
"use strict"; | ||
/*! | ||
* Copyright 2020, 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.ContextAPI = void 0; | ||
const context_base_1 = require("@opentelemetry/context-base"); | ||
@@ -71,4 +72,4 @@ const global_utils_1 = require("./global-utils"); | ||
_getContextManager() { | ||
var _a, _b, _c; | ||
return (_c = (_b = (_a = global_utils_1._global)[global_utils_1.GLOBAL_CONTEXT_MANAGER_API_KEY]) === null || _b === void 0 ? void 0 : _b.call(_a, global_utils_1.API_BACKWARDS_COMPATIBILITY_VERSION), (_c !== null && _c !== void 0 ? _c : NOOP_CONTEXT_MANAGER)); | ||
var _a, _b; | ||
return ((_b = (_a = global_utils_1._global[global_utils_1.GLOBAL_CONTEXT_MANAGER_API_KEY]) === null || _a === void 0 ? void 0 : _a.call(global_utils_1._global, global_utils_1.API_BACKWARDS_COMPATIBILITY_VERSION)) !== null && _b !== void 0 ? _b : NOOP_CONTEXT_MANAGER); | ||
} | ||
@@ -75,0 +76,0 @@ /** Disable and remove the global context manager */ |
@@ -1,16 +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. | ||
*/ | ||
import { ContextManager } from '@opentelemetry/context-base'; | ||
@@ -17,0 +2,0 @@ import { HttpTextPropagator } from '../context/propagation/HttpTextPropagator'; |
"use strict"; | ||
/*! | ||
* Copyright 2020, 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.API_BACKWARDS_COMPATIBILITY_VERSION = exports.makeGetter = exports._global = exports.GLOBAL_TRACE_API_KEY = exports.GLOBAL_PROPAGATION_API_KEY = exports.GLOBAL_METRICS_API_KEY = exports.GLOBAL_CONTEXT_MANAGER_API_KEY = void 0; | ||
const platform_1 = require("../platform"); | ||
@@ -20,0 +21,0 @@ exports.GLOBAL_CONTEXT_MANAGER_API_KEY = Symbol.for('io.opentelemetry.js.api.context'); |
@@ -1,16 +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. | ||
*/ | ||
import { Meter } from '../metrics/Meter'; | ||
@@ -17,0 +2,0 @@ import { MeterProvider } from '../metrics/MeterProvider'; |
"use strict"; | ||
/*! | ||
* Copyright 2020, 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.MetricsAPI = void 0; | ||
const NoopMeterProvider_1 = require("../metrics/NoopMeterProvider"); | ||
@@ -49,4 +50,4 @@ const global_utils_1 = require("./global-utils"); | ||
getMeterProvider() { | ||
var _a, _b, _c; | ||
return (_c = (_b = (_a = global_utils_1._global)[global_utils_1.GLOBAL_METRICS_API_KEY]) === null || _b === void 0 ? void 0 : _b.call(_a, global_utils_1.API_BACKWARDS_COMPATIBILITY_VERSION), (_c !== null && _c !== void 0 ? _c : NoopMeterProvider_1.NOOP_METER_PROVIDER)); | ||
var _a, _b; | ||
return ((_b = (_a = global_utils_1._global[global_utils_1.GLOBAL_METRICS_API_KEY]) === null || _a === void 0 ? void 0 : _a.call(global_utils_1._global, global_utils_1.API_BACKWARDS_COMPATIBILITY_VERSION)) !== null && _b !== void 0 ? _b : NoopMeterProvider_1.NOOP_METER_PROVIDER); | ||
} | ||
@@ -53,0 +54,0 @@ /** |
@@ -1,16 +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. | ||
*/ | ||
import { Context } from '@opentelemetry/context-base'; | ||
@@ -17,0 +2,0 @@ import { GetterFunction } from '../context/propagation/getter'; |
"use strict"; | ||
/*! | ||
* Copyright 2020, 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.PropagationAPI = void 0; | ||
const getter_1 = require("../context/propagation/getter"); | ||
@@ -74,4 +75,4 @@ const NoopHttpTextPropagator_1 = require("../context/propagation/NoopHttpTextPropagator"); | ||
_getGlobalPropagator() { | ||
var _a, _b, _c; | ||
return (_c = (_b = (_a = global_utils_1._global)[global_utils_1.GLOBAL_PROPAGATION_API_KEY]) === null || _b === void 0 ? void 0 : _b.call(_a, global_utils_1.API_BACKWARDS_COMPATIBILITY_VERSION), (_c !== null && _c !== void 0 ? _c : NoopHttpTextPropagator_1.NOOP_HTTP_TEXT_PROPAGATOR)); | ||
var _a, _b; | ||
return ((_b = (_a = global_utils_1._global[global_utils_1.GLOBAL_PROPAGATION_API_KEY]) === null || _a === void 0 ? void 0 : _a.call(global_utils_1._global, global_utils_1.API_BACKWARDS_COMPATIBILITY_VERSION)) !== null && _b !== void 0 ? _b : NoopHttpTextPropagator_1.NOOP_HTTP_TEXT_PROPAGATOR); | ||
} | ||
@@ -78,0 +79,0 @@ } |
@@ -1,16 +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. | ||
*/ | ||
import { Tracer } from '../trace/tracer'; | ||
@@ -17,0 +2,0 @@ import { TracerProvider } from '../trace/tracer_provider'; |
"use strict"; | ||
/*! | ||
* Copyright 2020, 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.TraceAPI = void 0; | ||
const NoopTracerProvider_1 = require("../trace/NoopTracerProvider"); | ||
@@ -49,4 +50,4 @@ const global_utils_1 = require("./global-utils"); | ||
getTracerProvider() { | ||
var _a, _b, _c; | ||
return (_c = (_b = (_a = global_utils_1._global)[global_utils_1.GLOBAL_TRACE_API_KEY]) === null || _b === void 0 ? void 0 : _b.call(_a, global_utils_1.API_BACKWARDS_COMPATIBILITY_VERSION), (_c !== null && _c !== void 0 ? _c : NoopTracerProvider_1.NOOP_TRACER_PROVIDER)); | ||
var _a, _b; | ||
return ((_b = (_a = global_utils_1._global[global_utils_1.GLOBAL_TRACE_API_KEY]) === null || _a === void 0 ? void 0 : _a.call(global_utils_1._global, global_utils_1.API_BACKWARDS_COMPATIBILITY_VERSION)) !== null && _b !== void 0 ? _b : NoopTracerProvider_1.NOOP_TRACER_PROVIDER); | ||
} | ||
@@ -53,0 +54,0 @@ /** |
@@ -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. | ||
*/ | ||
export declare type LogFunction = (message: string, ...args: unknown[]) => void; | ||
@@ -17,0 +2,0 @@ /** Defines a logger interface. */ |
"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,17 +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. | ||
*/ | ||
/** High resolution HrTime: [seconds: number, nanoseconds: number] */ | ||
export declare type HrTime = [number, number]; | ||
@@ -18,0 +2,0 @@ /** |
"use strict"; | ||
/*! | ||
* 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. | ||
*/ | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=Time.js.map |
@@ -1,16 +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. | ||
*/ | ||
export declare type GetterFunction<Carrier = any> = (carrier: Carrier, key: string) => unknown; | ||
@@ -17,0 +2,0 @@ /** |
"use strict"; | ||
/*! | ||
* Copyright 2020, 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.defaultGetter = void 0; | ||
/** | ||
@@ -20,0 +21,0 @@ * Default getter which just does a simple property access. Returns |
@@ -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 '@opentelemetry/context-base'; | ||
@@ -17,0 +2,0 @@ import { SetterFunction } from './setter'; |
"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,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 '@opentelemetry/context-base'; | ||
@@ -17,0 +2,0 @@ import { HttpTextPropagator } from './HttpTextPropagator'; |
"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.NOOP_HTTP_TEXT_PROPAGATOR = exports.NoopHttpTextPropagator = void 0; | ||
/** | ||
@@ -20,0 +21,0 @@ * No-op implementations of {@link HttpTextPropagator}. |
@@ -1,16 +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. | ||
*/ | ||
export declare type SetterFunction<Carrier = any> = (carrier: Carrier, key: string, value: unknown) => void; | ||
@@ -17,0 +2,0 @@ /** |
"use strict"; | ||
/*! | ||
* Copyright 2020, 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.defaultSetter = void 0; | ||
/** | ||
@@ -20,0 +21,0 @@ * Default setter which sets value via direct property access |
@@ -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 { EntryValue } from './EntryValue'; | ||
@@ -17,0 +2,0 @@ /** |
"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,20 +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. | ||
*/ | ||
/** | ||
* {@link EntryValue} contains properties associated with a {@link | ||
* CorrelationContext}. | ||
*/ | ||
export interface EntryValue { | ||
@@ -21,0 +2,0 @@ /** `String` value of the `EntryValue`. */ |
"use strict"; | ||
/*! | ||
* 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. | ||
*/ | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.EntryTtl = void 0; | ||
/** | ||
@@ -19,0 +5,0 @@ * EntryTtl is an integer that represents number of hops an entry can propagate. |
@@ -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. | ||
*/ | ||
export * from './common/Logger'; | ||
@@ -41,2 +26,3 @@ export * from './common/Time'; | ||
export * from './trace/Sampler'; | ||
export * from './trace/SamplingResult'; | ||
export * from './trace/span_context'; | ||
@@ -43,0 +29,0 @@ export * from './trace/span_kind'; |
"use strict"; | ||
/*! | ||
* Copyright 2019, OpenTelemetry Authors | ||
/* | ||
* Copyright The OpenTelemetry Authors | ||
* | ||
@@ -17,21 +17,52 @@ * 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/propagation/getter")); | ||
__export(require("./context/propagation/NoopHttpTextPropagator")); | ||
__export(require("./context/propagation/setter")); | ||
__export(require("./correlation_context/EntryValue")); | ||
__export(require("./metrics/Metric")); | ||
__export(require("./metrics/NoopMeter")); | ||
__export(require("./metrics/NoopMeterProvider")); | ||
__export(require("./trace/NoopSpan")); | ||
__export(require("./trace/NoopTracer")); | ||
__export(require("./trace/NoopTracerProvider")); | ||
__export(require("./trace/span_kind")); | ||
__export(require("./trace/status")); | ||
__export(require("./trace/trace_flags")); | ||
exports.propagation = exports.metrics = exports.trace = exports.context = void 0; | ||
__exportStar(require("./common/Logger"), exports); | ||
__exportStar(require("./common/Time"), exports); | ||
__exportStar(require("./context/propagation/getter"), exports); | ||
__exportStar(require("./context/propagation/HttpTextPropagator"), exports); | ||
__exportStar(require("./context/propagation/NoopHttpTextPropagator"), exports); | ||
__exportStar(require("./context/propagation/setter"), exports); | ||
__exportStar(require("./correlation_context/CorrelationContext"), exports); | ||
__exportStar(require("./correlation_context/EntryValue"), exports); | ||
__exportStar(require("./metrics/BoundInstrument"), exports); | ||
__exportStar(require("./metrics/Meter"), exports); | ||
__exportStar(require("./metrics/MeterProvider"), exports); | ||
__exportStar(require("./metrics/Metric"), exports); | ||
__exportStar(require("./metrics/MetricObservable"), exports); | ||
__exportStar(require("./metrics/NoopMeter"), exports); | ||
__exportStar(require("./metrics/NoopMeterProvider"), exports); | ||
__exportStar(require("./metrics/ObserverResult"), exports); | ||
__exportStar(require("./trace/attributes"), exports); | ||
__exportStar(require("./trace/Event"), exports); | ||
__exportStar(require("./trace/instrumentation/Plugin"), exports); | ||
__exportStar(require("./trace/link_context"), exports); | ||
__exportStar(require("./trace/link"), exports); | ||
__exportStar(require("./trace/NoopSpan"), exports); | ||
__exportStar(require("./trace/NoopTracer"), exports); | ||
__exportStar(require("./trace/NoopTracerProvider"), exports); | ||
__exportStar(require("./trace/Sampler"), exports); | ||
__exportStar(require("./trace/SamplingResult"), exports); | ||
__exportStar(require("./trace/span_context"), exports); | ||
__exportStar(require("./trace/span_kind"), exports); | ||
__exportStar(require("./trace/span"), exports); | ||
__exportStar(require("./trace/SpanOptions"), exports); | ||
__exportStar(require("./trace/status"), exports); | ||
__exportStar(require("./trace/TimedEvent"), exports); | ||
__exportStar(require("./trace/trace_flags"), exports); | ||
__exportStar(require("./trace/trace_state"), exports); | ||
__exportStar(require("./trace/tracer_provider"), exports); | ||
__exportStar(require("./trace/tracer"), exports); | ||
var context_base_1 = require("@opentelemetry/context-base"); | ||
exports.Context = context_base_1.Context; | ||
Object.defineProperty(exports, "Context", { enumerable: true, get: function () { return context_base_1.Context; } }); | ||
const context_1 = require("./api/context"); | ||
@@ -38,0 +69,0 @@ /** Entrypoint for context API */ |
@@ -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 { CorrelationContext } from '../correlation_context/CorrelationContext'; | ||
@@ -26,11 +11,11 @@ import { SpanContext } from '../trace/span_context'; | ||
} | ||
/** Measure to report instantaneous measurement of a value. */ | ||
export interface BoundMeasure { | ||
/** ValueRecorder to report instantaneous measurement of a value. */ | ||
export interface BoundValueRecorder { | ||
/** | ||
* Records the given value to this measure. | ||
* @param value the measurement to record. | ||
* Records the given value to this value recorder. | ||
* @param value to record. | ||
* @param correlationContext the correlationContext associated with the | ||
* measurements. | ||
* values. | ||
* @param spanContext the {@link SpanContext} that identifies the {@link Span} | ||
* for which the measurements are associated with. | ||
* which the values are associated with. | ||
*/ | ||
@@ -37,0 +22,0 @@ record(value: number): void; |
"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,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. | ||
*/ | ||
import { MetricOptions, Counter, Measure, Observer } from './Metric'; | ||
import { MetricOptions, Counter, ValueRecorder, Observer, UpDownCounter } from './Metric'; | ||
/** | ||
@@ -21,3 +6,3 @@ * An interface to allow the recording metrics. | ||
* {@link Metric}s are used for recording pre-defined aggregation (`Counter`), | ||
* or raw values (`Measure`) in which the aggregation and labels | ||
* or raw values (`ValueRecorder`) in which the aggregation and labels | ||
* for the exported metric are deferred. | ||
@@ -27,7 +12,7 @@ */ | ||
/** | ||
* Creates and returns a new `Measure`. | ||
* Creates and returns a new `ValueRecorder`. | ||
* @param name the name of the metric. | ||
* @param [options] the metric options. | ||
*/ | ||
createMeasure(name: string, options?: MetricOptions): Measure; | ||
createValueRecorder(name: string, options?: MetricOptions): ValueRecorder; | ||
/** | ||
@@ -42,2 +27,20 @@ * Creates a new `Counter` metric. Generally, this kind of metric when the | ||
/** | ||
* Creates a new `UpDownCounter` metric. UpDownCounter is a synchronous | ||
* instrument and very similar to Counter except that Add(increment) | ||
* supports negative increments. It is generally useful for capturing changes | ||
* in an amount of resources used, or any quantity that rises and falls | ||
* during a request. | ||
* Example uses for UpDownCounter: | ||
* <ol> | ||
* <li> count the number of active requests. </li> | ||
* <li> count memory in use by instrumenting new and delete. </li> | ||
* <li> count queue size by instrumenting enqueue and dequeue. </li> | ||
* <li> count semaphore up and down operations. </li> | ||
* </ol> | ||
* | ||
* @param name the name of the metric. | ||
* @param [options] the metric options. | ||
*/ | ||
createUpDownCounter(name: string, options?: MetricOptions): UpDownCounter; | ||
/** | ||
* Creates a new `Observer` metric. | ||
@@ -44,0 +47,0 @@ * @param name the name of the metric. |
"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,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 { Meter } from './Meter'; | ||
@@ -17,0 +2,0 @@ /** |
"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,20 +0,5 @@ | ||
/*! | ||
* 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 { CorrelationContext } from '../correlation_context/CorrelationContext'; | ||
import { SpanContext } from '../trace/span_context'; | ||
import { ObserverResult } from './ObserverResult'; | ||
import { BoundCounter, BoundMeasure } from './BoundInstrument'; | ||
import { BoundCounter, BoundValueRecorder } from './BoundInstrument'; | ||
/** | ||
@@ -36,4 +21,2 @@ * Options needed for metric creation | ||
unit?: string; | ||
/** The list of label keys for the Metric. */ | ||
labelKeys?: string[]; | ||
/** The map of constant labels for the Metric. */ | ||
@@ -47,6 +30,2 @@ constantLabels?: Map<string, string>; | ||
/** | ||
* Asserts that this metric may only increase (e.g. time spent). | ||
*/ | ||
monotonic?: boolean; | ||
/** | ||
* (Measure only, default true) Asserts that this metric will only accept | ||
@@ -117,6 +96,12 @@ * non-negative values (e.g. disk usage). | ||
} | ||
export interface Measure extends UnboundMetric<BoundMeasure> { | ||
export interface UpDownCounter extends UnboundMetric<BoundCounter> { | ||
/** | ||
* Records the given value to this measure. | ||
* Adds the given value to the current value. Values can be negative. | ||
*/ | ||
add(value: number, labels?: Labels): void; | ||
} | ||
export interface ValueRecorder extends UnboundMetric<BoundValueRecorder> { | ||
/** | ||
* Records the given value to this value recorder. | ||
*/ | ||
record(value: number, labels?: Labels): void; | ||
@@ -123,0 +108,0 @@ record(value: number, labels: Labels, correlationContext: CorrelationContext): void; |
"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.ValueType = void 0; | ||
/** The Type of value. It describes how the data is reported. */ | ||
@@ -20,0 +21,0 @@ var ValueType; |
@@ -1,19 +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. | ||
*/ | ||
/** | ||
* Metric Observable class to handle asynchronous metrics | ||
*/ | ||
export interface MetricObservable { | ||
@@ -20,0 +2,0 @@ /** |
"use strict"; | ||
/*! | ||
* 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. | ||
*/ | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=MetricObservable.js.map |
@@ -1,19 +0,4 @@ | ||
/*! | ||
* 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 { Meter } from './Meter'; | ||
import { MetricOptions, UnboundMetric, Labels, Counter, Measure, Observer } from './Metric'; | ||
import { BoundMeasure, BoundCounter } from './BoundInstrument'; | ||
import { MetricOptions, UnboundMetric, Labels, Counter, ValueRecorder, Observer, UpDownCounter } from './Metric'; | ||
import { BoundValueRecorder, BoundCounter } from './BoundInstrument'; | ||
import { CorrelationContext } from '../correlation_context/CorrelationContext'; | ||
@@ -29,7 +14,7 @@ import { SpanContext } from '../trace/span_context'; | ||
/** | ||
* Returns constant noop measure. | ||
* Returns constant noop value recorder. | ||
* @param name the name of the metric. | ||
* @param [options] the metric options. | ||
*/ | ||
createMeasure(name: string, options?: MetricOptions): Measure; | ||
createValueRecorder(name: string, options?: MetricOptions): ValueRecorder; | ||
/** | ||
@@ -42,2 +27,8 @@ * Returns a constant noop counter. | ||
/** | ||
* Returns a constant noop UpDownCounter. | ||
* @param name the name of the metric. | ||
* @param [options] the metric options. | ||
*/ | ||
createUpDownCounter(name: string, options?: MetricOptions): UpDownCounter; | ||
/** | ||
* Returns constant noop observer. | ||
@@ -73,3 +64,3 @@ * @param name the name of the metric. | ||
} | ||
export declare class NoopMeasureMetric extends NoopMetric<BoundMeasure> implements Measure { | ||
export declare class NoopValueRecorderMetric extends NoopMetric<BoundValueRecorder> implements ValueRecorder { | ||
record(value: number, labels: Labels, correlationContext?: CorrelationContext, spanContext?: SpanContext): void; | ||
@@ -83,3 +74,3 @@ } | ||
} | ||
export declare class NoopBoundMeasure implements BoundMeasure { | ||
export declare class NoopBoundValueRecorder implements BoundValueRecorder { | ||
record(value: number, correlationContext?: CorrelationContext, spanContext?: SpanContext): void; | ||
@@ -90,5 +81,5 @@ } | ||
export declare const NOOP_COUNTER_METRIC: NoopCounterMetric; | ||
export declare const NOOP_BOUND_MEASURE: NoopBoundMeasure; | ||
export declare const NOOP_MEASURE_METRIC: NoopMeasureMetric; | ||
export declare const NOOP_BOUND_VALUE_RECORDER: NoopBoundValueRecorder; | ||
export declare const NOOP_VALUE_RECORDER_METRIC: NoopValueRecorderMetric; | ||
export declare const NOOP_OBSERVER_METRIC: NoopObserverMetric; | ||
//# sourceMappingURL=NoopMeter.d.ts.map |
"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.NOOP_OBSERVER_METRIC = exports.NOOP_VALUE_RECORDER_METRIC = exports.NOOP_BOUND_VALUE_RECORDER = exports.NOOP_COUNTER_METRIC = exports.NOOP_BOUND_COUNTER = exports.NOOP_METER = exports.NoopBoundValueRecorder = exports.NoopBoundCounter = exports.NoopObserverMetric = exports.NoopValueRecorderMetric = exports.NoopCounterMetric = exports.NoopMetric = exports.NoopMeter = void 0; | ||
/** | ||
@@ -26,8 +27,8 @@ * NoopMeter is a noop implementation of the {@link Meter} interface. It reuses | ||
/** | ||
* Returns constant noop measure. | ||
* Returns constant noop value recorder. | ||
* @param name the name of the metric. | ||
* @param [options] the metric options. | ||
*/ | ||
createMeasure(name, options) { | ||
return exports.NOOP_MEASURE_METRIC; | ||
createValueRecorder(name, options) { | ||
return exports.NOOP_VALUE_RECORDER_METRIC; | ||
} | ||
@@ -43,2 +44,10 @@ /** | ||
/** | ||
* Returns a constant noop UpDownCounter. | ||
* @param name the name of the metric. | ||
* @param [options] the metric options. | ||
*/ | ||
createUpDownCounter(name, options) { | ||
return exports.NOOP_COUNTER_METRIC; | ||
} | ||
/** | ||
* Returns constant noop observer. | ||
@@ -88,3 +97,3 @@ * @param name the name of the metric. | ||
exports.NoopCounterMetric = NoopCounterMetric; | ||
class NoopMeasureMetric extends NoopMetric { | ||
class NoopValueRecorderMetric extends NoopMetric { | ||
record(value, labels, correlationContext, spanContext) { | ||
@@ -102,3 +111,3 @@ if (typeof correlationContext === 'undefined') { | ||
} | ||
exports.NoopMeasureMetric = NoopMeasureMetric; | ||
exports.NoopValueRecorderMetric = NoopValueRecorderMetric; | ||
class NoopObserverMetric extends NoopMetric { | ||
@@ -114,3 +123,3 @@ setCallback(callback) { } | ||
exports.NoopBoundCounter = NoopBoundCounter; | ||
class NoopBoundMeasure { | ||
class NoopBoundValueRecorder { | ||
record(value, correlationContext, spanContext) { | ||
@@ -120,9 +129,9 @@ return; | ||
} | ||
exports.NoopBoundMeasure = NoopBoundMeasure; | ||
exports.NoopBoundValueRecorder = NoopBoundValueRecorder; | ||
exports.NOOP_METER = new NoopMeter(); | ||
exports.NOOP_BOUND_COUNTER = new NoopBoundCounter(); | ||
exports.NOOP_COUNTER_METRIC = new NoopCounterMetric(exports.NOOP_BOUND_COUNTER); | ||
exports.NOOP_BOUND_MEASURE = new NoopBoundMeasure(); | ||
exports.NOOP_MEASURE_METRIC = new NoopMeasureMetric(exports.NOOP_BOUND_MEASURE); | ||
exports.NOOP_BOUND_VALUE_RECORDER = new NoopBoundValueRecorder(); | ||
exports.NOOP_VALUE_RECORDER_METRIC = new NoopValueRecorderMetric(exports.NOOP_BOUND_VALUE_RECORDER); | ||
exports.NOOP_OBSERVER_METRIC = new NoopObserverMetric(); | ||
//# sourceMappingURL=NoopMeter.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 { Meter } from './Meter'; | ||
@@ -17,0 +2,0 @@ import { MeterProvider } from './MeterProvider'; |
"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.NOOP_METER_PROVIDER = exports.NoopMeterProvider = void 0; | ||
const NoopMeter_1 = require("./NoopMeter"); | ||
@@ -20,0 +21,0 @@ /** |
@@ -1,16 +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. | ||
*/ | ||
import { Labels } from './Metric'; | ||
@@ -17,0 +2,0 @@ import { MetricObservable } from './MetricObservable'; |
"use strict"; | ||
/*! | ||
* Copyright 2020, OpenTelemetry Authors | ||
/* | ||
* Copyright The OpenTelemetry Authors | ||
* | ||
@@ -5,0 +5,0 @@ * Licensed under the Apache License, Version 2.0 (the "License"); |
@@ -1,18 +0,3 @@ | ||
/*! | ||
* 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. | ||
*/ | ||
/** only globals that common to node and browsers are allowed */ | ||
export declare const _globalThis: typeof globalThis; | ||
//# sourceMappingURL=globalThis.d.ts.map |
"use strict"; | ||
/*! | ||
* Copyright 2020, 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._globalThis = void 0; | ||
/** only globals that common to node and browsers are allowed */ | ||
@@ -20,0 +21,0 @@ // eslint-disable-next-line node/no-unsupported-features/es-builtins, no-undef |
@@ -1,17 +0,2 @@ | ||
/*! | ||
* 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. | ||
*/ | ||
export * from './globalThis'; | ||
//# sourceMappingURL=index.d.ts.map |
"use strict"; | ||
/*! | ||
* Copyright 2020, OpenTelemetry Authors | ||
/* | ||
* Copyright The OpenTelemetry Authors | ||
* | ||
@@ -17,7 +17,14 @@ * 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("./globalThis")); | ||
__exportStar(require("./globalThis"), exports); | ||
//# sourceMappingURL=index.js.map |
@@ -1,17 +0,2 @@ | ||
/*! | ||
* 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. | ||
*/ | ||
export * from './node'; | ||
//# sourceMappingURL=index.d.ts.map |
"use strict"; | ||
/*! | ||
* Copyright 2020, OpenTelemetry Authors | ||
/* | ||
* Copyright The OpenTelemetry Authors | ||
* | ||
@@ -17,7 +17,14 @@ * 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("./node")); | ||
__exportStar(require("./node"), exports); | ||
//# sourceMappingURL=index.js.map |
@@ -1,18 +0,3 @@ | ||
/*! | ||
* 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. | ||
*/ | ||
/** only globals that common to node and browsers are allowed */ | ||
export declare const _globalThis: typeof globalThis; | ||
//# sourceMappingURL=globalThis.d.ts.map |
"use strict"; | ||
/*! | ||
* Copyright 2020, 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._globalThis = void 0; | ||
/** only globals that common to node and browsers are allowed */ | ||
@@ -20,0 +21,0 @@ // eslint-disable-next-line node/no-unsupported-features/es-builtins |
@@ -1,17 +0,2 @@ | ||
/*! | ||
* 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. | ||
*/ | ||
export * from './globalThis'; | ||
//# sourceMappingURL=index.d.ts.map |
"use strict"; | ||
/*! | ||
* Copyright 2020, OpenTelemetry Authors | ||
/* | ||
* Copyright The OpenTelemetry Authors | ||
* | ||
@@ -17,7 +17,14 @@ * 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("./globalThis")); | ||
__exportStar(require("./globalThis"), exports); | ||
//# sourceMappingURL=index.js.map |
@@ -1,20 +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. | ||
*/ | ||
/** | ||
* Defines a attributes interface. | ||
* These attributes provides additional data about the {@link Span}. | ||
*/ | ||
export interface Attributes { | ||
@@ -21,0 +2,0 @@ [attributeKey: string]: unknown; |
"use strict"; | ||
/*! | ||
* 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. | ||
*/ | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=attributes.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 { Attributes } from './attributes'; | ||
@@ -17,0 +2,0 @@ /** A text annotation with a set of attributes. */ |
"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,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 { Logger } from '../../common/Logger'; | ||
@@ -17,0 +2,0 @@ import { TracerProvider } from '../tracer_provider'; |
"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,16 +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. | ||
*/ | ||
import { SpanContext } from './span_context'; | ||
@@ -17,0 +2,0 @@ /** |
"use strict"; | ||
/*! | ||
* Copyright 2020, OpenTelemetry Authors | ||
/* | ||
* Copyright The OpenTelemetry Authors | ||
* | ||
@@ -5,0 +5,0 @@ * Licensed under the Apache License, Version 2.0 (the "License"); |
@@ -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 { Attributes } from './attributes'; | ||
@@ -17,0 +2,0 @@ import { LinkContext } from './link_context'; |
"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,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 { TimeInput } from '../common/Time'; | ||
@@ -17,0 +2,0 @@ import { Attributes } from './attributes'; |
"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.NOOP_SPAN = exports.NoopSpan = exports.INVALID_SPAN_ID = exports.INVALID_TRACE_ID = void 0; | ||
const trace_flags_1 = require("./trace_flags"); | ||
@@ -20,0 +21,0 @@ exports.INVALID_TRACE_ID = '0'; |
@@ -1,16 +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. | ||
*/ | ||
import { Span, SpanOptions, Tracer } from '..'; | ||
@@ -17,0 +2,0 @@ /** |
"use strict"; | ||
/*! | ||
* Copyright 2020, 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.NOOP_TRACER = exports.NoopTracer = void 0; | ||
const NoopSpan_1 = require("./NoopSpan"); | ||
@@ -20,0 +21,0 @@ /** |
@@ -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 { Tracer } from './tracer'; | ||
@@ -17,0 +2,0 @@ import { TracerProvider } from './tracer_provider'; |
"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.NOOP_TRACER_PROVIDER = exports.NoopTracerProvider = void 0; | ||
const NoopTracer_1 = require("./NoopTracer"); | ||
@@ -20,0 +21,0 @@ /** |
@@ -1,17 +0,6 @@ | ||
/*! | ||
* 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 { SpanContext } from './span_context'; | ||
import { SpanKind } from './span_kind'; | ||
import { Attributes } from './attributes'; | ||
import { Link } from './link'; | ||
import { SamplingResult } from './SamplingResult'; | ||
/** | ||
@@ -26,8 +15,15 @@ * This interface represent a sampler. Sampling is a mechanism to control the | ||
* | ||
* TODO: Consider to add required arguments https://github.com/open-telemetry/opentelemetry-specification/blob/master/specification/sampling-api.md#shouldsample | ||
* @param [parentContext] Parent span context. Typically taken from the wire. | ||
* @param parentContext Parent span context. Typically taken from the wire. | ||
* Can be null. | ||
* @returns whether span should be sampled or not. | ||
* @param traceId of the span to be created. It can be different from the | ||
* traceId in the {@link SpanContext}. Typically in situations when the | ||
* span to be created starts a new trace. | ||
* @param spanName of the span to be created. | ||
* @param spanKind of the span to be created. | ||
* @param attributes Initial set of Attributes for the Span being constructed. | ||
* @param links Collection of links that will be associated with the Span to | ||
* be created. Typically useful for batch operations. | ||
* @returns a {@link SamplingResult}. | ||
*/ | ||
shouldSample(parentContext?: SpanContext): boolean; | ||
shouldSample(parentContext: SpanContext | undefined, traceId: string, spanName: string, spanKind: SpanKind, attributes: Attributes, links: Link[]): SamplingResult; | ||
/** Returns the sampler name or short description with the configuration. */ | ||
@@ -34,0 +30,0 @@ toString(): string; |
"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,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 { TraceFlags } from './trace_flags'; | ||
@@ -17,0 +2,0 @@ import { TraceState } from './trace_state'; |
"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,20 +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. | ||
*/ | ||
/** | ||
* Type of span. Can be used to specify additional relationships between spans | ||
* in addition to a parent/child relationship. | ||
*/ | ||
export declare enum SpanKind { | ||
@@ -21,0 +2,0 @@ /** Default value. Indicates that the span is used internally. */ |
"use strict"; | ||
/*! | ||
* Copyright 2019, OpenTelemetry Authors | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.SpanKind = void 0; | ||
/* | ||
* Copyright The OpenTelemetry Authors | ||
* | ||
@@ -17,7 +19,2 @@ * Licensed under the Apache License, Version 2.0 (the "License"); | ||
*/ | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
/** | ||
* Type of span. Can be used to specify additional relationships between spans | ||
* in addition to a parent/child relationship. | ||
*/ | ||
var SpanKind; | ||
@@ -24,0 +21,0 @@ (function (SpanKind) { |
@@ -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 { Attributes } from './attributes'; | ||
@@ -17,0 +2,0 @@ import { SpanContext } from './span_context'; |
"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,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 { Attributes } from './attributes'; | ||
@@ -17,0 +2,0 @@ import { Link } from './link'; |
"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,20 +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. | ||
*/ | ||
/** | ||
* The status of a Span by providing a standard CanonicalCode in conjunction | ||
* with an optional descriptive message. | ||
*/ | ||
export interface Status { | ||
@@ -21,0 +2,0 @@ /** The canonical code of this message. */ |
"use strict"; | ||
/*! | ||
* 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. | ||
*/ | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.CanonicalCode = void 0; | ||
/** | ||
@@ -19,0 +5,0 @@ * An enumeration of canonical status codes. |
@@ -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 { Event } from './Event'; | ||
@@ -17,0 +2,0 @@ import { HrTime } from '../common/Time'; |
"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,21 +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. | ||
*/ | ||
/** | ||
* An enumeration that represents global trace flags. These flags are | ||
* propagated to all child {@link Span}. These determine features such as | ||
* whether a Span should be traced. It is implemented as a bitmask. | ||
*/ | ||
export declare enum TraceFlags { | ||
@@ -22,0 +2,0 @@ /** Represents no flag set. */ |
"use strict"; | ||
/*! | ||
* Copyright 2019, OpenTelemetry Authors | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.TraceFlags = 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 }); | ||
/** | ||
* An enumeration that represents global trace flags. These flags are | ||
* propagated to all child {@link Span}. These determine features such as | ||
* whether a Span should be traced. It is implemented as a bitmask. | ||
*/ | ||
var TraceFlags; | ||
@@ -25,0 +21,0 @@ (function (TraceFlags) { |
@@ -1,21 +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. | ||
*/ | ||
/** | ||
* Tracestate carries system-specific configuration data, represented as a list | ||
* of key-value pairs. TraceState allows multiple tracing systems to | ||
* participate in the same trace. | ||
*/ | ||
export interface TraceState { | ||
@@ -22,0 +2,0 @@ /** |
"use strict"; | ||
/*! | ||
* 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. | ||
*/ | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=trace_state.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 { Tracer } from './tracer'; | ||
@@ -17,0 +2,0 @@ /** |
"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,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 '@opentelemetry/context-base'; | ||
@@ -17,0 +2,0 @@ import { Span } from './span'; |
"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/api", | ||
"version": "0.8.3", | ||
"version": "0.9.0", | ||
"description": "Public API for OpenTelemetry", | ||
@@ -54,26 +54,26 @@ "main": "build/src/index.js", | ||
"dependencies": { | ||
"@opentelemetry/context-base": "^0.8.3" | ||
"@opentelemetry/context-base": "^0.9.0" | ||
}, | ||
"devDependencies": { | ||
"@types/mocha": "^7.0.0", | ||
"@types/node": "^14.0.5", | ||
"@types/mocha": "7.0.2", | ||
"@types/node": "14.0.13", | ||
"@types/webpack-env": "1.15.2", | ||
"codecov": "^3.6.1", | ||
"gts": "^2.0.0", | ||
"istanbul-instrumenter-loader": "^3.0.1", | ||
"karma": "^5.0.5", | ||
"karma-chrome-launcher": "^3.1.0", | ||
"karma-coverage-istanbul-reporter": "^3.0.2", | ||
"karma-mocha": "^2.0.1", | ||
"karma-spec-reporter": "^0.0.32", | ||
"karma-webpack": "^4.0.2", | ||
"linkinator": "^2.0.3", | ||
"mocha": "^7.1.2", | ||
"nyc": "^15.0.0", | ||
"ts-loader": "^6.0.4", | ||
"ts-mocha": "^7.0.0", | ||
"typedoc": "^0.15.0", | ||
"typescript": "3.7.2", | ||
"webpack": "^4.35.2" | ||
"codecov": "3.7.0", | ||
"gts": "2.0.2", | ||
"istanbul-instrumenter-loader": "3.0.1", | ||
"karma": "5.1.0", | ||
"karma-chrome-launcher": "3.1.0", | ||
"karma-coverage-istanbul-reporter": "3.0.3", | ||
"karma-mocha": "2.0.1", | ||
"karma-spec-reporter": "0.0.32", | ||
"karma-webpack": "4.0.2", | ||
"linkinator": "2.1.1", | ||
"mocha": "7.2.0", | ||
"nyc": "15.1.0", | ||
"ts-loader": "7.0.5", | ||
"ts-mocha": "7.0.0", | ||
"typedoc": "0.17.7", | ||
"typescript": "3.9.5", | ||
"webpack": "4.43.0" | ||
} | ||
} |
# OpenTelemetry API for JavaScript | ||
[![Gitter chat][gitter-image]][gitter-url] | ||
@@ -102,2 +103,3 @@ [![NPM Published Version][npm-img]][npm-url] | ||
## Advanced Use | ||
### API Registration Options | ||
@@ -180,2 +182,3 @@ | ||
## Useful links | ||
- For more information on OpenTelemetry, visit: <https://opentelemetry.io/> | ||
@@ -182,0 +185,0 @@ - For more about OpenTelemetry JavaScript: <https://github.com/open-telemetry/opentelemetry-js> |
99
212
142863
2922
+ Added@opentelemetry/context-base@0.9.0(transitive)
- Removed@opentelemetry/context-base@0.8.3(transitive)