Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@opentelemetry/core

Package Overview
Dependencies
Maintainers
3
Versions
173
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opentelemetry/core - npm Package Compare versions

Comparing version 0.8.3 to 0.9.0

15

build/src/common/ConsoleLogger.d.ts

@@ -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 '@opentelemetry/api';

@@ -17,0 +2,0 @@ import { LogLevel } from './types';

5

build/src/common/ConsoleLogger.js
"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.ConsoleLogger = void 0;
const types_1 = require("./types");

@@ -20,0 +21,0 @@ class ConsoleLogger {

@@ -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 '@opentelemetry/api';

@@ -17,0 +2,0 @@ /** No-op implementation of Logger */

"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.NoopLogger = void 0;
/** No-op implementation of Logger */

@@ -20,0 +21,0 @@ class NoopLogger {

@@ -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 api from '@opentelemetry/api';

@@ -17,0 +2,0 @@ /**

"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.isTimeInput = exports.isTimeInputHrTime = exports.hrTimeToMicroseconds = exports.hrTimeToMilliseconds = exports.hrTimeToNanoseconds = exports.hrTimeToTimeStamp = exports.hrTimeDuration = exports.timeInputToHrTime = exports.hrTime = void 0;
const platform_1 = require("../platform");

@@ -20,0 +21,0 @@ const NANOSECOND_DIGITS = 9;

@@ -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.
*/
/** Defines a log levels. */
export declare enum LogLevel {

@@ -18,0 +2,0 @@ ERROR = 0,

8

build/src/common/types.js
"use strict";
/*!
* Copyright 2019, OpenTelemetry Authors
Object.defineProperty(exports, "__esModule", { value: true });
exports.LogLevel = void 0;
/*
* Copyright The OpenTelemetry Authors
*

@@ -17,4 +19,2 @@ * Licensed under the Apache License, Version 2.0 (the "License");

*/
Object.defineProperty(exports, "__esModule", { value: true });
/** Defines a log levels. */
var LogLevel;

@@ -21,0 +21,0 @@ (function (LogLevel) {

@@ -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, SpanContext } from '@opentelemetry/api';

@@ -17,0 +2,0 @@ import { Context } from '@opentelemetry/context-base';

"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.getParentSpanContext = exports.setExtractedSpanContext = exports.getExtractedSpanContext = exports.setActiveSpan = exports.getActiveSpan = exports.ACTIVE_SPAN_KEY = void 0;
const context_base_1 = require("@opentelemetry/context-base");

@@ -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 { Context, GetterFunction, HttpTextPropagator, SetterFunction } from '@opentelemetry/api';

@@ -17,0 +2,0 @@ export declare const X_B3_TRACE_ID = "x-b3-traceid";

"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.B3Propagator = exports.X_B3_SAMPLED = exports.X_B3_SPAN_ID = exports.X_B3_TRACE_ID = void 0;
const api_1 = require("@opentelemetry/api");

@@ -20,0 +21,0 @@ const context_1 = require("../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 { Context, GetterFunction, HttpTextPropagator, SetterFunction } from '@opentelemetry/api';

@@ -17,0 +2,0 @@ import { CompositePropagatorConfig } from './types';

"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.CompositePropagator = void 0;
const NoopLogger_1 = require("../../common/NoopLogger");

@@ -29,4 +30,4 @@ /** Combines multiple propagators into a single propagator. */

var _a, _b;
this._propagators = (_a = config.propagators, (_a !== null && _a !== void 0 ? _a : []));
this._logger = (_b = config.logger, (_b !== null && _b !== void 0 ? _b : new NoopLogger_1.NoopLogger()));
this._propagators = (_a = config.propagators) !== null && _a !== void 0 ? _a : [];
this._logger = (_b = config.logger) !== null && _b !== void 0 ? _b : new NoopLogger_1.NoopLogger();
}

@@ -33,0 +34,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 { Context, GetterFunction, HttpTextPropagator, SetterFunction, SpanContext } from '@opentelemetry/api';

@@ -17,0 +2,0 @@ export declare const TRACE_PARENT_HEADER = "traceparent";

"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.HttpTraceContext = exports.parseTraceParent = exports.TRACE_STATE_HEADER = exports.TRACE_PARENT_HEADER = void 0;
const api_1 = require("@opentelemetry/api");

@@ -20,0 +21,0 @@ const TraceState_1 = require("../../trace/TraceState");

@@ -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 { HttpTextPropagator, Logger } from '@opentelemetry/api';

@@ -17,0 +2,0 @@ /** Configuration object for composite propagator */

"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 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 { CorrelationContext } from '@opentelemetry/api';

@@ -17,0 +2,0 @@ import { Context } from '@opentelemetry/context-base';

"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.setCorrelationContext = exports.getCorrelationContext = void 0;
const context_base_1 = require("@opentelemetry/context-base");

@@ -20,0 +21,0 @@ const CORRELATION_CONTEXT = context_base_1.Context.createKey('OpenTelemetry Distributed Contexts Key');

@@ -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, GetterFunction, HttpTextPropagator, SetterFunction } from '@opentelemetry/api';

@@ -17,0 +2,0 @@ export declare const CORRELATION_CONTEXT_HEADER = "otcorrelations";

"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.HttpCorrelationContext = exports.MAX_TOTAL_LENGTH = exports.MAX_PER_NAME_VALUE_PAIRS = exports.MAX_NAME_VALUE_PAIRS = exports.CORRELATION_CONTEXT_HEADER = void 0;
const correlation_context_1 = require("../correlation-context");

@@ -20,0 +21,0 @@ const KEY_PAIR_SEPARATOR = '=';

"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.ExportResult = void 0;
var ExportResult;

@@ -20,0 +21,0 @@ (function (ExportResult) {

@@ -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/ConsoleLogger';

@@ -17,0 +2,0 @@ export * from './common/NoopLogger';

"use strict";
/*!
* Copyright 2019, OpenTelemetry Authors
/*
* Copyright The OpenTelemetry Authors
*

@@ -17,25 +17,33 @@ * 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("./common/ConsoleLogger"));
__export(require("./common/NoopLogger"));
__export(require("./common/time"));
__export(require("./common/types"));
__export(require("./ExportResult"));
__export(require("./version"));
__export(require("./context/context"));
__export(require("./context/propagation/B3Propagator"));
__export(require("./context/propagation/composite"));
__export(require("./context/propagation/HttpTraceContext"));
__export(require("./correlation-context/correlation-context"));
__export(require("./correlation-context/propagation/HttpCorrelationContext"));
__export(require("./platform"));
__export(require("./trace/NoRecordingSpan"));
__export(require("./trace/sampler/ProbabilitySampler"));
__export(require("./trace/spancontext-utils"));
__export(require("./trace/TraceState"));
__export(require("./utils/url"));
__export(require("./utils/wrap"));
__exportStar(require("./common/ConsoleLogger"), exports);
__exportStar(require("./common/NoopLogger"), exports);
__exportStar(require("./common/time"), exports);
__exportStar(require("./common/types"), exports);
__exportStar(require("./ExportResult"), exports);
__exportStar(require("./version"), exports);
__exportStar(require("./context/context"), exports);
__exportStar(require("./context/propagation/B3Propagator"), exports);
__exportStar(require("./context/propagation/composite"), exports);
__exportStar(require("./context/propagation/HttpTraceContext"), exports);
__exportStar(require("./context/propagation/types"), exports);
__exportStar(require("./correlation-context/correlation-context"), exports);
__exportStar(require("./correlation-context/propagation/HttpCorrelationContext"), exports);
__exportStar(require("./platform"), exports);
__exportStar(require("./trace/NoRecordingSpan"), exports);
__exportStar(require("./trace/sampler/ProbabilitySampler"), exports);
__exportStar(require("./trace/spancontext-utils"), exports);
__exportStar(require("./trace/TraceState"), exports);
__exportStar(require("./utils/url"), exports);
__exportStar(require("./utils/wrap"), 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.
*/
/**

@@ -17,0 +2,0 @@ * Key is opaque string up to 256 characters printable. It MUST begin with a

"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.validateValue = exports.validateKey = void 0;
const VALID_KEY_CHAR_RANGE = '[_0-9a-z-*/]';

@@ -20,0 +21,0 @@ const VALID_KEY = `[a-z]${VALID_KEY_CHAR_RANGE}{0,255}`;

@@ -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, Plugin, Logger, PluginConfig, TracerProvider, PluginInternalFiles } from '@opentelemetry/api';

@@ -17,0 +2,0 @@ /** This class represent the base to patch plugin. */

"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.BaseAbstractPlugin = void 0;
/** This class represent the base to patch plugin. */

@@ -20,0 +21,0 @@ class BaseAbstractPlugin {

@@ -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 { Logger, Plugin, PluginConfig, TracerProvider } from '@opentelemetry/api';

@@ -17,0 +2,0 @@ import { BaseAbstractPlugin } from '../BaseAbstractPlugin';

"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.BasePlugin = void 0;
const BaseAbstractPlugin_1 = require("../BaseAbstractPlugin");

@@ -20,0 +21,0 @@ /** This class represent the base to patch plugin. */

@@ -1,21 +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.
*/
/**
* converts id string into base64
* @param hexStr - id of span
*/
export declare function hexToBase64(hexStr: string): string;
//# sourceMappingURL=hex-to-base64.d.ts.map
"use strict";
/*!
* Copyright 2019, OpenTelemetry Authors
Object.defineProperty(exports, "__esModule", { value: true });
exports.hexToBase64 = 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 });
/**
* converts id string into base64
* @param hexStr - id of span
*/
function hexToBase64(hexStr) {

@@ -24,0 +21,0 @@ const hexStrLen = hexStr.length;

@@ -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.
*/
/** Returns a random 16-byte trace ID formatted as a 32-char hex string. */

@@ -17,0 +2,0 @@ export declare function randomTraceId(): string;

"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.randomSpanId = exports.randomTraceId = void 0;
const cryptoLib = window.crypto || window.msCrypto;

@@ -19,0 +5,0 @@ const SPAN_ID_BYTES = 8;

@@ -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 './BasePlugin';

@@ -17,0 +2,0 @@ export * from './hex-to-base64';

"use strict";
/*!
* Copyright 2019, OpenTelemetry Authors
/*
* Copyright The OpenTelemetry Authors
*

@@ -17,12 +17,19 @@ * 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("./BasePlugin"));
__export(require("./hex-to-base64"));
__export(require("./id"));
__export(require("./performance"));
__export(require("./sdk-info"));
__export(require("./timer-util"));
__exportStar(require("./BasePlugin"), exports);
__exportStar(require("./hex-to-base64"), exports);
__exportStar(require("./id"), exports);
__exportStar(require("./performance"), exports);
__exportStar(require("./sdk-info"), exports);
__exportStar(require("./timer-util"), exports);
//# sourceMappingURL=index.js.map

@@ -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 otperformance: Performance;
//# sourceMappingURL=performance.d.ts.map
"use strict";
/*!
* Copyright 2019, OpenTelemetry Authors
/*
* Copyright The OpenTelemetry Authors
*

@@ -18,3 +18,4 @@ * Licensed under the Apache License, Version 2.0 (the "License");

Object.defineProperty(exports, "__esModule", { value: true });
exports.otperformance = void 0;
exports.otperformance = performance;
//# sourceMappingURL=performance.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.
*/
/** Constants describing the SDK in use */

@@ -17,0 +2,0 @@ export declare const SDK_INFO: {

"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.SDK_INFO = void 0;
const version_1 = require("../../version");

@@ -20,0 +21,0 @@ /** Constants describing the SDK in use */

@@ -1,18 +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.
*/
/** This is Node specific, does nothing in case of browser */
export declare function unrefTimer(timer: number): void;
//# sourceMappingURL=timer-util.d.ts.map
"use strict";
/**
* Copyright 2019, OpenTelemetry Authors
Object.defineProperty(exports, "__esModule", { value: true });
exports.unrefTimer = void 0;
/*
* Copyright The OpenTelemetry Authors
*

@@ -17,6 +19,4 @@ * Licensed under the Apache License, Version 2.0 (the "License");

*/
Object.defineProperty(exports, "__esModule", { value: true });
/** This is Node specific, does nothing in case of browser */
function unrefTimer(timer) { }
exports.unrefTimer = unrefTimer;
//# sourceMappingURL=timer-util.js.map

@@ -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 * from './node';
//# sourceMappingURL=index.d.ts.map
"use strict";
/*!
* Copyright 2019, OpenTelemetry Authors
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 });
/*
* Copyright The OpenTelemetry Authors
*

@@ -17,10 +28,3 @@ * 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];
}
Object.defineProperty(exports, "__esModule", { value: true });
// Use the node platform by default. The "browser" field of package.json is used
// to override this file to use `./browser/index.ts` when packaged with
// webpack, Rollup, etc.
__export(require("./node"));
__exportStar(require("./node"), 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 { Plugin, Logger, PluginConfig, TracerProvider } from '@opentelemetry/api';

@@ -17,0 +2,0 @@ import { BaseAbstractPlugin } from '../BaseAbstractPlugin';

"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.BasePlugin = void 0;
const semver = require("semver");

@@ -20,0 +21,0 @@ const path = require("path");

@@ -1,21 +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.
*/
/**
* converts id string into base64
* @param hexStr - id of span
*/
export declare function hexToBase64(hexStr: string): string;
//# sourceMappingURL=hex-to-base64.d.ts.map
"use strict";
/*!
* Copyright 2019, OpenTelemetry Authors
Object.defineProperty(exports, "__esModule", { value: true });
exports.hexToBase64 = 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 });
/**
* converts id string into base64
* @param hexStr - id of span
*/
function hexToBase64(hexStr) {

@@ -24,0 +21,0 @@ const hexStrLen = hexStr.length;

@@ -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.
*/
/**

@@ -17,0 +2,0 @@ * Returns a random 16-byte trace ID formatted/encoded as a 32 lowercase hex

"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.randomSpanId = exports.randomTraceId = void 0;
const crypto = require("crypto");

@@ -20,0 +21,0 @@ const SPAN_ID_BYTES = 8;

@@ -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 './BasePlugin';

@@ -17,0 +2,0 @@ export * from './id';

"use strict";
/*!
* Copyright 2019, OpenTelemetry Authors
/*
* Copyright The OpenTelemetry Authors
*

@@ -17,12 +17,19 @@ * 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("./BasePlugin"));
__export(require("./id"));
__export(require("./performance"));
__export(require("./sdk-info"));
__export(require("./timer-util"));
__export(require("./hex-to-base64"));
__exportStar(require("./BasePlugin"), exports);
__exportStar(require("./id"), exports);
__exportStar(require("./performance"), exports);
__exportStar(require("./sdk-info"), exports);
__exportStar(require("./timer-util"), exports);
__exportStar(require("./hex-to-base64"), exports);
//# sourceMappingURL=index.js.map

@@ -1,18 +0,3 @@

/*!
* 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.
*/
/// <reference types="node" />
export declare const otperformance: import("perf_hooks").Performance;
//# sourceMappingURL=performance.d.ts.map
"use strict";
/*!
* Copyright 2019, 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.otperformance = void 0;
const perf_hooks_1 = require("perf_hooks");
exports.otperformance = perf_hooks_1.performance;
//# sourceMappingURL=performance.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.
*/
/** Constants describing the SDK in use */

@@ -17,0 +2,0 @@ export declare const SDK_INFO: {

"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.SDK_INFO = void 0;
const version_1 = require("../../version");

@@ -20,0 +21,0 @@ /** Constants describing the SDK in use */

@@ -1,22 +0,3 @@

/**
* 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.
*/
/// <reference types="node" />
/**
* When called, the active Timeout object will not require the Node.js event
* loop to remain active.
*/
export declare function unrefTimer(timer: NodeJS.Timeout): void;
//# sourceMappingURL=timer-util.d.ts.map
"use strict";
/**
* Copyright 2019, OpenTelemetry Authors
Object.defineProperty(exports, "__esModule", { value: true });
exports.unrefTimer = 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 });
/**
* When called, the active Timeout object will not require the Node.js event
* loop to remain active.
*/
function unrefTimer(timer) {

@@ -24,0 +21,0 @@ timer.unref();

@@ -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 { SpanContext, NoopSpan } from '@opentelemetry/api';

@@ -17,0 +2,0 @@ /**

"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.NoRecordingSpan = void 0;
const api_1 = require("@opentelemetry/api");

@@ -20,0 +21,0 @@ const spancontext_utils_1 = require("../trace/spancontext-utils");

@@ -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 { Sampler, SpanContext } from '@opentelemetry/api';
import { Sampler, SpanContext, SamplingDecision } from '@opentelemetry/api';
/** Sampler that samples a given fraction of traces. */

@@ -21,3 +6,5 @@ export declare class ProbabilitySampler implements Sampler {

constructor(_probability?: number);
shouldSample(parentContext?: SpanContext): boolean;
shouldSample(parentContext?: SpanContext): {
decision: SamplingDecision;
};
toString(): string;

@@ -24,0 +11,0 @@ private _normalize;

"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.NEVER_SAMPLER = exports.ALWAYS_SAMPLER = exports.ProbabilitySampler = void 0;
const api_1 = require("@opentelemetry/api");

@@ -29,9 +30,13 @@ /** Sampler that samples a given fraction of traces. */

if (parentContext && typeof parentContext.traceFlags !== 'undefined') {
return ((api_1.TraceFlags.SAMPLED & parentContext.traceFlags) === api_1.TraceFlags.SAMPLED);
return {
decision: (api_1.TraceFlags.SAMPLED & parentContext.traceFlags) === api_1.TraceFlags.SAMPLED
? api_1.SamplingDecision.RECORD_AND_SAMPLED
: api_1.SamplingDecision.NOT_RECORD,
};
}
if (this._probability >= 1.0)
return true;
else if (this._probability <= 0)
return false;
return Math.random() < this._probability;
return {
decision: Math.random() < this._probability
? api_1.SamplingDecision.RECORD_AND_SAMPLED
: api_1.SamplingDecision.NOT_RECORD,
};
}

@@ -38,0 +43,0 @@ toString() {

@@ -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 { SpanContext } from '@opentelemetry/api';

@@ -17,0 +2,0 @@ export declare const INVALID_SPANID = "0";

"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.isValid = exports.INVALID_SPAN_CONTEXT = exports.INVALID_TRACEID = exports.INVALID_SPANID = void 0;
const api_1 = require("@opentelemetry/api");

@@ -20,0 +21,0 @@ exports.INVALID_SPANID = '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 * as api from '@opentelemetry/api';

@@ -17,0 +2,0 @@ /**

"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.TraceState = void 0;
const validators_1 = require("../internal/validators");

@@ -20,0 +21,0 @@ const MAX_TRACE_STATE_ITEMS = 32;

@@ -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.
*/
/**
* Check if {@param url} matches {@param urlToMatch}
* @param url
* @param urlToMatch
*/
export declare function urlMatches(url: string, urlToMatch: string | RegExp): boolean;

@@ -22,0 +2,0 @@ /**

"use strict";
/*!
* Copyright 2019, OpenTelemetry Authors
Object.defineProperty(exports, "__esModule", { value: true });
exports.isUrlIgnored = exports.urlMatches = 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 });
/**
* Check if {@param url} matches {@param urlToMatch}
* @param url
* @param urlToMatch
*/
function urlMatches(url, urlToMatch) {

@@ -25,0 +21,0 @@ if (typeof urlToMatch === 'string') {

@@ -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.
*/
/**

@@ -17,0 +2,0 @@ * Checks if certain function has been already wrapped

"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.isWrapped = void 0;
/**

@@ -20,0 +21,0 @@ * Checks if certain function has been already wrapped

@@ -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/core",
"version": "0.8.3",
"version": "0.9.0",
"description": "OpenTelemetry Core provides default and no-op implementations of the OpenTelemetry types for trace and metrics",

@@ -54,31 +54,31 @@ "main": "build/src/index.js",

"devDependencies": {
"@types/mocha": "^7.0.0",
"@types/node": "^14.0.5",
"@types/semver": "^6.2.0",
"@types/sinon": "^7.0.13",
"@types/mocha": "7.0.2",
"@types/node": "14.0.13",
"@types/semver": "7.2.0",
"@types/sinon": "9.0.4",
"@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",
"mocha": "^7.1.2",
"nyc": "^15.0.0",
"rimraf": "^3.0.0",
"sinon": "^7.5.0",
"ts-loader": "^6.0.4",
"ts-mocha": "^7.0.0",
"ts-node": "^8.6.2",
"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",
"mocha": "7.2.0",
"nyc": "15.1.0",
"rimraf": "3.0.2",
"sinon": "9.0.2",
"ts-loader": "7.0.5",
"ts-mocha": "7.0.0",
"ts-node": "8.10.2",
"typescript": "3.9.5",
"webpack": "4.43.0"
},
"dependencies": {
"@opentelemetry/api": "^0.8.3",
"@opentelemetry/context-base": "^0.8.3",
"@opentelemetry/api": "^0.9.0",
"@opentelemetry/context-base": "^0.9.0",
"semver": "^7.1.3"
}
}
# OpenTelemetry Core
[![Gitter chat][gitter-image]][gitter-url]

@@ -12,11 +13,15 @@ [![NPM Published Version][npm-img]][npm-url]

- [Built-in Propagators](#built-in-propagators)
* [HttpTraceContext Propagator](#httptracecontext-propagator)
* [B3 Propagator](#b3-propagator)
* [Composite Propagator](#composite-propagator)
* [Correlation Context Propagator](#correlation-context-propagator)
- [Built-in Sampler](#built-in-sampler)
* [Always Sampler](#always-sampler)
* [Never Sampler](#never-sampler)
* [Probability Sampler](#probability-sampler)
- [OpenTelemetry Core](#opentelemetry-core)
- [Built-in Implementations](#built-in-implementations)
- [Built-in Propagators](#built-in-propagators)
- [HttpTraceContext Propagator](#httptracecontext-propagator)
- [B3 Propagator](#b3-propagator)
- [Composite Propagator](#composite-propagator)
- [Correlation Context Propagator](#correlation-context-propagator)
- [Built-in Sampler](#built-in-sampler)
- [Always Sampler](#always-sampler)
- [Never Sampler](#never-sampler)
- [Probability Sampler](#probability-sampler)
- [Useful links](#useful-links)
- [License](#license)

@@ -26,2 +31,3 @@ ### Built-in Propagators

#### HttpTraceContext Propagator
OpenTelemetry provides a text-based approach to propagate context to remote services using the [W3C Trace Context](https://www.w3.org/TR/trace-context/) HTTP headers.

@@ -40,4 +46,5 @@

#### B3 Propagator
This is propagator for the B3 HTTP header format, which sends a `SpanContext` on the wire in an HTTP request, allowing other services to create spans with the right context. Based on: https://github.com/openzipkin/b3-propagation
This is propagator for the B3 HTTP header format, which sends a `SpanContext` on the wire in an HTTP request, allowing other services to create spans with the right context. Based on: <https://github.com/openzipkin/b3-propagation>
```js

@@ -52,2 +59,3 @@ const api = require("@opentelemetry/api");

#### Composite Propagator
Combines multiple propagators into a single propagator.

@@ -64,2 +72,3 @@

#### Correlation Context Propagator
Provides a text-based approach to propagate [correlation context](https://w3c.github.io/correlation-context/) to remote services using the [OpenTelemetry CorrelationContext Propagation](https://github.com/open-telemetry/opentelemetry-specification/blob/master/specification/correlationcontext/api.md#header-name) HTTP headers.

@@ -76,5 +85,7 @@

### Built-in Sampler
Sampler is used to make decisions on `Span` sampling.
#### Always Sampler
Samples every trace regardless of upstream sampling decisions.

@@ -94,2 +105,3 @@

#### Never Sampler
Doesn't sample any trace, regardless of upstream sampling decisions.

@@ -107,2 +119,3 @@

#### Probability Sampler
Samples a configurable percentage of traces, and additionally samples any trace that was sampled upstream.

@@ -120,2 +133,3 @@

## Useful links
- For more information on OpenTelemetry, visit: <https://opentelemetry.io/>

@@ -122,0 +136,0 @@ - For more about OpenTelemetry JavaScript: <https://github.com/open-telemetry/opentelemetry-js>

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc