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

@opentelemetry/instrumentation-xml-http-request

Package Overview
Dependencies
Maintainers
4
Versions
183
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opentelemetry/instrumentation-xml-http-request - npm Package Compare versions

Comparing version 0.24.1-alpha.31 to 0.25.1-alpha.21

2

build/esm/version.d.ts

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

export declare const VERSION = "0.24.0";
export declare const VERSION = "0.25.0";
//# sourceMappingURL=version.d.ts.map

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

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

@@ -35,3 +35,3 @@ /*

import { SemanticAttributes } from '@opentelemetry/semantic-conventions';
import { addSpanNetworkEvents, getResource, parseUrl, PerformanceTimingNames as PTN, shouldPropagateTraceHeaders, getUrlNormalizingAnchor } from '@opentelemetry/web';
import { addSpanNetworkEvents, getResource, parseUrl, PerformanceTimingNames as PTN, shouldPropagateTraceHeaders, getUrlNormalizingAnchor } from '@opentelemetry/sdk-trace-web';
import { EventNames } from './enums/EventNames';

@@ -38,0 +38,0 @@ import { VERSION } from './version';

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

export declare const VERSION = "0.24.0";
export declare const VERSION = "0.25.0";
//# sourceMappingURL=version.d.ts.map

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

// this is autogenerated file, see scripts/version-update.js
exports.VERSION = '0.24.0';
exports.VERSION = '0.25.0';
//# sourceMappingURL=version.js.map

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

const semantic_conventions_1 = require("@opentelemetry/semantic-conventions");
const web_1 = require("@opentelemetry/web");
const sdk_trace_web_1 = require("@opentelemetry/sdk-trace-web");
const EventNames_1 = require("./enums/EventNames");

@@ -57,3 +57,3 @@ const version_1 = require("./version");

_addHeaders(xhr, spanUrl) {
if (!web_1.shouldPropagateTraceHeaders(spanUrl, this._getConfig().propagateTraceHeaderCorsUrls)) {
if (!sdk_trace_web_1.shouldPropagateTraceHeaders(spanUrl, this._getConfig().propagateTraceHeaderCorsUrls)) {
const headers = {};

@@ -81,6 +81,6 @@ api.propagation.inject(api.context.active(), headers);

const childSpan = this.tracer.startSpan('CORS Preflight', {
startTime: corsPreFlightRequest[web_1.PerformanceTimingNames.FETCH_START],
startTime: corsPreFlightRequest[sdk_trace_web_1.PerformanceTimingNames.FETCH_START],
});
web_1.addSpanNetworkEvents(childSpan, corsPreFlightRequest);
childSpan.end(corsPreFlightRequest[web_1.PerformanceTimingNames.RESPONSE_END]);
sdk_trace_web_1.addSpanNetworkEvents(childSpan, corsPreFlightRequest);
childSpan.end(corsPreFlightRequest[sdk_trace_web_1.PerformanceTimingNames.RESPONSE_END]);
});

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

if (typeof spanUrl === 'string') {
const parsedUrl = web_1.parseUrl(spanUrl);
const parsedUrl = sdk_trace_web_1.parseUrl(spanUrl);
if (xhrMem.status !== undefined) {

@@ -141,3 +141,3 @@ span.setAttribute(semantic_conventions_1.SemanticAttributes.HTTP_STATUS_CODE, xhrMem.status);

const entries = list.getEntries();
const urlNormalizingAnchor = web_1.getUrlNormalizingAnchor();
const urlNormalizingAnchor = sdk_trace_web_1.getUrlNormalizingAnchor();
urlNormalizingAnchor.href = spanUrl;

@@ -188,3 +188,3 @@ entries.forEach(entry => {

}
const resource = web_1.getResource(spanUrl, startTime, endTime, resources, this._usedResources);
const resource = sdk_trace_web_1.getResource(spanUrl, startTime, endTime, resources, this._usedResources);
if (resource.mainRequest) {

@@ -198,3 +198,3 @@ const mainRequest = resource.mainRequest;

}
web_1.addSpanNetworkEvents(span, mainRequest);
sdk_trace_web_1.addSpanNetworkEvents(span, mainRequest);
}

@@ -201,0 +201,0 @@ }

{
"name": "@opentelemetry/instrumentation-xml-http-request",
"version": "0.24.1-alpha.31+fd2410cc",
"version": "0.25.1-alpha.21+0ef1fc28",
"description": "OpenTelemetry XMLHttpRequest automatic instrumentation package.",

@@ -49,9 +49,9 @@ "main": "build/src/index.js",

"devDependencies": {
"@babel/core": "7.14.8",
"@opentelemetry/api": "^1.0.1",
"@opentelemetry/context-zone": "^0.24.1-alpha.31+fd2410cc",
"@opentelemetry/propagator-b3": "^0.24.1-alpha.31+fd2410cc",
"@opentelemetry/tracing": "^0.24.1-alpha.31+fd2410cc",
"@babel/core": "7.15.0",
"@opentelemetry/api": "^1.0.2",
"@opentelemetry/context-zone": "^0.25.1-alpha.21+0ef1fc28",
"@opentelemetry/propagator-b3": "^0.25.1-alpha.21+0ef1fc28",
"@opentelemetry/sdk-trace-base": "^0.25.1-alpha.21+0ef1fc28",
"@types/mocha": "8.2.3",
"@types/node": "14.17.5",
"@types/node": "14.17.9",
"@types/sinon": "10.0.2",

@@ -76,15 +76,15 @@ "@types/webpack-env": "1.16.2",

"webpack": "4.46.0",
"webpack-cli": "4.7.2",
"webpack-cli": "4.8.0",
"webpack-merge": "5.8.0"
},
"peerDependencies": {
"@opentelemetry/api": "^1.0.1"
"@opentelemetry/api": "^1.0.2"
},
"dependencies": {
"@opentelemetry/core": "^0.24.1-alpha.31+fd2410cc",
"@opentelemetry/instrumentation": "^0.24.1-alpha.31+fd2410cc",
"@opentelemetry/semantic-conventions": "^0.24.1-alpha.31+fd2410cc",
"@opentelemetry/web": "^0.24.1-alpha.31+fd2410cc"
"@opentelemetry/core": "^0.25.1-alpha.21+0ef1fc28",
"@opentelemetry/instrumentation": "^0.25.1-alpha.21+0ef1fc28",
"@opentelemetry/sdk-trace-web": "^0.25.1-alpha.21+0ef1fc28",
"@opentelemetry/semantic-conventions": "^0.25.1-alpha.21+0ef1fc28"
},
"gitHead": "fd2410cc9e8d43210b6ea44b8193fa70ee900499"
"gitHead": "0ef1fc28d366b74d98b73b5d6334ffdc75342fe2"
}

@@ -19,4 +19,4 @@ # OpenTelemetry XMLHttpRequest Instrumentation for web

```js
import { ConsoleSpanExporter, SimpleSpanProcessor } from '@opentelemetry/tracing';
import { WebTracerProvider } from '@opentelemetry/web';
import { ConsoleSpanExporter, SimpleSpanProcessor } from '@opentelemetry/sdk-trace-base';
import { WebTracerProvider } from '@opentelemetry/sdk-trace-web';
import { XMLHttpRequestInstrumentation } from '@opentelemetry/instrumentation-xml-http-request';

@@ -23,0 +23,0 @@ import { ZoneContextManager } from '@opentelemetry/context-zone';

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