New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@opentelemetry/core

Package Overview
Dependencies
Maintainers
4
Versions
177
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.18.1-alpha.12 to 0.18.1-alpha.20

6

build/src/baggage/propagation/HttpBaggage.js

@@ -54,3 +54,3 @@ "use strict";

return keyPairs.reduce((hValue, current) => {
const value = `${hValue}${hValue != '' ? ITEMS_SEPARATOR : ''}${current}`;
const value = `${hValue}${hValue !== '' ? ITEMS_SEPARATOR : ''}${current}`;
return value.length > exports.MAX_TOTAL_LENGTH ? hValue : value;

@@ -69,3 +69,3 @@ }, '');

const baggage = {};
if (headerValue.length == 0) {
if (headerValue.length === 0) {
return context;

@@ -97,3 +97,3 @@ }

const keyPair = keyPairPart.split(KEY_PAIR_SEPARATOR);
if (keyPair.length != 2)
if (keyPair.length !== 2)
return;

@@ -100,0 +100,0 @@ const key = decodeURIComponent(keyPair[0].trim());

@@ -35,6 +35,10 @@ "use strict";

}
this._remoteParentSampled = (_a = config.remoteParentSampled) !== null && _a !== void 0 ? _a : new AlwaysOnSampler_1.AlwaysOnSampler();
this._remoteParentNotSampled = (_b = config.remoteParentNotSampled) !== null && _b !== void 0 ? _b : new AlwaysOffSampler_1.AlwaysOffSampler();
this._localParentSampled = (_c = config.localParentSampled) !== null && _c !== void 0 ? _c : new AlwaysOnSampler_1.AlwaysOnSampler();
this._localParentNotSampled = (_d = config.localParentNotSampled) !== null && _d !== void 0 ? _d : new AlwaysOffSampler_1.AlwaysOffSampler();
this._remoteParentSampled =
(_a = config.remoteParentSampled) !== null && _a !== void 0 ? _a : new AlwaysOnSampler_1.AlwaysOnSampler();
this._remoteParentNotSampled =
(_b = config.remoteParentNotSampled) !== null && _b !== void 0 ? _b : new AlwaysOffSampler_1.AlwaysOffSampler();
this._localParentSampled =
(_c = config.localParentSampled) !== null && _c !== void 0 ? _c : new AlwaysOnSampler_1.AlwaysOnSampler();
this._localParentNotSampled =
(_d = config.localParentNotSampled) !== null && _d !== void 0 ? _d : new AlwaysOffSampler_1.AlwaysOffSampler();
}

@@ -41,0 +45,0 @@ shouldSample(context, traceId, spanName, spanKind, attributes, links) {

@@ -124,3 +124,3 @@ "use strict";

const theLevel = logLevelMap[value.toUpperCase()];
if (theLevel != undefined) {
if (theLevel != null) {
environment[key] = theLevel;

@@ -127,0 +127,0 @@ }

{
"name": "@opentelemetry/core",
"version": "0.18.1-alpha.12+6540b54a",
"version": "0.18.1-alpha.20+24bcfe82",
"description": "OpenTelemetry Core provides default and no-op implementations of the OpenTelemetry types for trace and metrics",

@@ -53,7 +53,7 @@ "main": "build/src/index.js",

"devDependencies": {
"@opentelemetry/propagator-b3": "^0.18.1-alpha.12+6540b54a",
"@types/mocha": "8.2.0",
"@types/node": "14.14.20",
"@opentelemetry/propagator-b3": "^0.18.1-alpha.20+24bcfe82",
"@types/mocha": "8.2.2",
"@types/node": "14.14.35",
"@types/semver": "7.3.4",
"@types/sinon": "9.0.10",
"@types/sinon": "9.0.11",
"@types/webpack-env": "1.16.0",

@@ -72,14 +72,14 @@ "codecov": "3.8.1",

"rimraf": "3.0.2",
"sinon": "9.2.3",
"ts-loader": "8.0.14",
"sinon": "9.2.4",
"ts-loader": "8.0.18",
"ts-mocha": "8.0.0",
"ts-node": "9.1.1",
"typescript": "4.1.3",
"typescript": "4.2.3",
"webpack": "4.46.0"
},
"dependencies": {
"@opentelemetry/api": "^0.18.0",
"@opentelemetry/api": "^0.18.1",
"semver": "^7.1.3"
},
"gitHead": "6540b54a8bd49746e164ab730269188237f89b1c"
"gitHead": "24bcfe82340e02e605c5c722b0f955da50bf82cf"
}

@@ -19,5 +19,6 @@ # OpenTelemetry Core

- [Built-in Sampler](#built-in-sampler)
- [Always Sampler](#always-sampler)
- [Never Sampler](#never-sampler)
- [Probability Sampler](#probability-sampler)
- [AlwaysOn Sampler](#alwayson-sampler)
- [AlwaysOff Sampler](#alwaysoff-sampler)
- [TraceIdRatioBased Sampler](#traceidratiobased-sampler)
- [ParentBased Sampler](#parentbased-sampler)
- [Useful links](#useful-links)

@@ -70,3 +71,3 @@ - [License](#license)

#### AlwaysOn
#### AlwaysOn Sampler

@@ -86,3 +87,3 @@ Samples every trace regardless of upstream sampling decisions.

#### AlwaysOff
#### AlwaysOff Sampler

@@ -100,3 +101,3 @@ Doesn't sample any trace, regardless of upstream sampling decisions.

#### TraceIdRatioBased
#### TraceIdRatioBased Sampler

@@ -123,3 +124,3 @@ Samples some percentage of traces, calculated deterministically using the trace ID.

#### ParentBasedSampler
#### ParentBased Sampler

@@ -126,0 +127,0 @@ - This is a composite sampler. `ParentBased` helps distinguished between the

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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