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

@opentelemetry/instrumentation-fetch

Package Overview
Dependencies
Maintainers
2
Versions
190
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opentelemetry/instrumentation-fetch - npm Package Compare versions

Comparing version

to
0.35.0

11

build/esm/fetch.js

@@ -204,3 +204,4 @@ /*

var _this = this;
var endTime = core.hrTime();
var endTime = core.millisToHrTime(Date.now());
var performanceEndTime = core.hrTime();
this._addFinalSpanAttributes(span, response);

@@ -210,3 +211,3 @@ setTimeout(function () {

(_a = spanData.observer) === null || _a === void 0 ? void 0 : _a.disconnect();
_this._findResourceAndAddNetworkEvents(span, spanData, endTime);
_this._findResourceAndAddNetworkEvents(span, spanData, performanceEndTime);
_this._tasksCount--;

@@ -313,4 +314,3 @@ _this._clearResources();

var _this = this;
var applyCustomAttributesOnSpan = this._getConfig()
.applyCustomAttributesOnSpan;
var applyCustomAttributesOnSpan = this._getConfig().applyCustomAttributesOnSpan;
if (applyCustomAttributesOnSpan) {

@@ -339,4 +339,3 @@ safeExecuteInTheMiddle(function () { return applyCustomAttributesOnSpan(span, request, result); }, function (error) {

perfObsEntries.forEach(function (entry) {
if (entry.initiatorType === 'fetch' &&
entry.name === spanUrl) {
if (entry.initiatorType === 'fetch' && entry.name === spanUrl) {
entries.push(entry);

@@ -343,0 +342,0 @@ }

@@ -1,2 +0,2 @@

export declare const VERSION = "0.34.0";
export declare const VERSION = "0.35.0";
//# sourceMappingURL=version.d.ts.map

@@ -17,3 +17,3 @@ /*

// this is autogenerated file, see scripts/version-update.js
export var VERSION = '0.34.0';
export var VERSION = '0.35.0';
//# sourceMappingURL=version.js.map

@@ -184,3 +184,4 @@ /*

_endSpan(span, spanData, response) {
const endTime = core.hrTime();
const endTime = core.millisToHrTime(Date.now());
const performanceEndTime = core.hrTime();
this._addFinalSpanAttributes(span, response);

@@ -190,3 +191,3 @@ setTimeout(() => {

(_a = spanData.observer) === null || _a === void 0 ? void 0 : _a.disconnect();
this._findResourceAndAddNetworkEvents(span, spanData, endTime);
this._findResourceAndAddNetworkEvents(span, spanData, performanceEndTime);
this._tasksCount--;

@@ -286,4 +287,3 @@ this._clearResources();

_applyAttributesAfterFetch(span, request, result) {
const applyCustomAttributesOnSpan = this._getConfig()
.applyCustomAttributesOnSpan;
const applyCustomAttributesOnSpan = this._getConfig().applyCustomAttributesOnSpan;
if (applyCustomAttributesOnSpan) {

@@ -312,4 +312,3 @@ safeExecuteInTheMiddle(() => applyCustomAttributesOnSpan(span, request, result), error => {

perfObsEntries.forEach(entry => {
if (entry.initiatorType === 'fetch' &&
entry.name === spanUrl) {
if (entry.initiatorType === 'fetch' && entry.name === spanUrl) {
entries.push(entry);

@@ -316,0 +315,0 @@ }

@@ -1,2 +0,2 @@

export declare const VERSION = "0.34.0";
export declare const VERSION = "0.35.0";
//# sourceMappingURL=version.d.ts.map

@@ -17,3 +17,3 @@ /*

// this is autogenerated file, see scripts/version-update.js
export const VERSION = '0.34.0';
export const VERSION = '0.35.0';
//# sourceMappingURL=version.js.map

@@ -187,3 +187,4 @@ "use strict";

_endSpan(span, spanData, response) {
const endTime = core.hrTime();
const endTime = core.millisToHrTime(Date.now());
const performanceEndTime = core.hrTime();
this._addFinalSpanAttributes(span, response);

@@ -193,3 +194,3 @@ setTimeout(() => {

(_a = spanData.observer) === null || _a === void 0 ? void 0 : _a.disconnect();
this._findResourceAndAddNetworkEvents(span, spanData, endTime);
this._findResourceAndAddNetworkEvents(span, spanData, performanceEndTime);
this._tasksCount--;

@@ -289,4 +290,3 @@ this._clearResources();

_applyAttributesAfterFetch(span, request, result) {
const applyCustomAttributesOnSpan = this._getConfig()
.applyCustomAttributesOnSpan;
const applyCustomAttributesOnSpan = this._getConfig().applyCustomAttributesOnSpan;
if (applyCustomAttributesOnSpan) {

@@ -315,4 +315,3 @@ (0, instrumentation_1.safeExecuteInTheMiddle)(() => applyCustomAttributesOnSpan(span, request, result), error => {

perfObsEntries.forEach(entry => {
if (entry.initiatorType === 'fetch' &&
entry.name === spanUrl) {
if (entry.initiatorType === 'fetch' && entry.name === spanUrl) {
entries.push(entry);

@@ -319,0 +318,0 @@ }

@@ -1,2 +0,2 @@

export declare const VERSION = "0.34.0";
export declare const VERSION = "0.35.0";
//# sourceMappingURL=version.d.ts.map

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

// this is autogenerated file, see scripts/version-update.js
exports.VERSION = '0.34.0';
exports.VERSION = '0.35.0';
//# sourceMappingURL=version.js.map
{
"name": "@opentelemetry/instrumentation-fetch",
"version": "0.34.0",
"version": "0.35.0",
"description": "OpenTelemetry fetch automatic instrumentation package.",

@@ -12,4 +12,4 @@ "main": "build/src/index.js",

"prepublishOnly": "npm run compile",
"compile": "tsc --build tsconfig.all.json",
"clean": "tsc --build --clean tsconfig.all.json",
"compile": "tsc --build tsconfig.json tsconfig.esm.json tsconfig.esnext.json",
"clean": "tsc --build --clean tsconfig.json tsconfig.esm.json tsconfig.esnext.json",
"lint": "eslint . --ext .ts",

@@ -21,3 +21,3 @@ "lint:fix": "eslint . --ext .ts --fix",

"test:browser": "nyc karma start --single-run",
"watch": "tsc --build --watch tsconfig.all.json",
"watch": "tsc --build --watch tsconfig.json tsconfig.esm.json tsconfig.esnext.json",
"precompile": "lerna run version --scope $(npm pkg get name) --include-dependencies",

@@ -61,5 +61,5 @@ "prewatch": "node ../../../scripts/version-update.js",

"@opentelemetry/api": "^1.0.0",
"@opentelemetry/context-zone": "1.8.0",
"@opentelemetry/propagator-b3": "1.8.0",
"@opentelemetry/sdk-trace-base": "1.8.0",
"@opentelemetry/context-zone": "1.9.0",
"@opentelemetry/propagator-b3": "1.9.0",
"@opentelemetry/sdk-trace-base": "1.9.0",
"@types/mocha": "10.0.0",

@@ -81,3 +81,3 @@ "@types/node": "18.6.5",

"rimraf": "3.0.2",
"sinon": "14.0.0",
"sinon": "15.0.0",
"ts-loader": "8.4.0",

@@ -94,10 +94,10 @@ "ts-mocha": "10.0.0",

"dependencies": {
"@opentelemetry/core": "1.8.0",
"@opentelemetry/instrumentation": "0.34.0",
"@opentelemetry/sdk-trace-web": "1.8.0",
"@opentelemetry/semantic-conventions": "1.8.0"
"@opentelemetry/core": "1.9.0",
"@opentelemetry/instrumentation": "0.35.0",
"@opentelemetry/sdk-trace-web": "1.9.0",
"@opentelemetry/semantic-conventions": "1.9.0"
},
"homepage": "https://github.com/open-telemetry/opentelemetry-js/tree/main/experimental/packages/opentelemetry-instrumentation-fetch",
"sideEffects": false,
"gitHead": "7972edf6659fb6e0d5928a5cf7a35f26683e168f"
"gitHead": "08f597f3a3d71a4852b0afbba120af15ca038121"
}

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet