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

@opentelemetry/instrumentation-document-load

Package Overview
Dependencies
Maintainers
2
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opentelemetry/instrumentation-document-load - npm Package Compare versions

Comparing version 0.31.0 to 0.31.1

2

build/esm/version.d.ts

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

export declare const VERSION = "0.31.0";
export declare const VERSION = "0.31.1";
//# sourceMappingURL=version.d.ts.map

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

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

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

const metaElement = Array.from(document.getElementsByTagName('meta')).find(e => e.getAttribute('name') === core_1.TRACE_PARENT_HEADER);
const entries = utils_1.getPerformanceNavigationEntries();
const entries = (0, utils_1.getPerformanceNavigationEntries)();
const traceparent = (metaElement && metaElement.content) || '';

@@ -83,3 +83,3 @@ api_1.context.with(api_1.propagation.extract(api_1.ROOT_CONTEXT, { traceparent }), () => {

api_1.context.with(api_1.trace.setSpan(api_1.context.active(), fetchSpan), () => {
sdk_trace_web_1.addSpanNetworkEvents(fetchSpan, entries);
(0, sdk_trace_web_1.addSpanNetworkEvents)(fetchSpan, entries);
this._endSpan(fetchSpan, sdk_trace_web_1.PerformanceTimingNames.RESPONSE_END, entries);

@@ -92,12 +92,12 @@ });

this._addResourcesSpans(rootSpan);
sdk_trace_web_1.addSpanNetworkEvent(rootSpan, sdk_trace_web_1.PerformanceTimingNames.FETCH_START, entries);
sdk_trace_web_1.addSpanNetworkEvent(rootSpan, sdk_trace_web_1.PerformanceTimingNames.UNLOAD_EVENT_START, entries);
sdk_trace_web_1.addSpanNetworkEvent(rootSpan, sdk_trace_web_1.PerformanceTimingNames.UNLOAD_EVENT_END, entries);
sdk_trace_web_1.addSpanNetworkEvent(rootSpan, sdk_trace_web_1.PerformanceTimingNames.DOM_INTERACTIVE, entries);
sdk_trace_web_1.addSpanNetworkEvent(rootSpan, sdk_trace_web_1.PerformanceTimingNames.DOM_CONTENT_LOADED_EVENT_START, entries);
sdk_trace_web_1.addSpanNetworkEvent(rootSpan, sdk_trace_web_1.PerformanceTimingNames.DOM_CONTENT_LOADED_EVENT_END, entries);
sdk_trace_web_1.addSpanNetworkEvent(rootSpan, sdk_trace_web_1.PerformanceTimingNames.DOM_COMPLETE, entries);
sdk_trace_web_1.addSpanNetworkEvent(rootSpan, sdk_trace_web_1.PerformanceTimingNames.LOAD_EVENT_START, entries);
sdk_trace_web_1.addSpanNetworkEvent(rootSpan, sdk_trace_web_1.PerformanceTimingNames.LOAD_EVENT_END, entries);
utils_1.addSpanPerformancePaintEvents(rootSpan);
(0, sdk_trace_web_1.addSpanNetworkEvent)(rootSpan, sdk_trace_web_1.PerformanceTimingNames.FETCH_START, entries);
(0, sdk_trace_web_1.addSpanNetworkEvent)(rootSpan, sdk_trace_web_1.PerformanceTimingNames.UNLOAD_EVENT_START, entries);
(0, sdk_trace_web_1.addSpanNetworkEvent)(rootSpan, sdk_trace_web_1.PerformanceTimingNames.UNLOAD_EVENT_END, entries);
(0, sdk_trace_web_1.addSpanNetworkEvent)(rootSpan, sdk_trace_web_1.PerformanceTimingNames.DOM_INTERACTIVE, entries);
(0, sdk_trace_web_1.addSpanNetworkEvent)(rootSpan, sdk_trace_web_1.PerformanceTimingNames.DOM_CONTENT_LOADED_EVENT_START, entries);
(0, sdk_trace_web_1.addSpanNetworkEvent)(rootSpan, sdk_trace_web_1.PerformanceTimingNames.DOM_CONTENT_LOADED_EVENT_END, entries);
(0, sdk_trace_web_1.addSpanNetworkEvent)(rootSpan, sdk_trace_web_1.PerformanceTimingNames.DOM_COMPLETE, entries);
(0, sdk_trace_web_1.addSpanNetworkEvent)(rootSpan, sdk_trace_web_1.PerformanceTimingNames.LOAD_EVENT_START, entries);
(0, sdk_trace_web_1.addSpanNetworkEvent)(rootSpan, sdk_trace_web_1.PerformanceTimingNames.LOAD_EVENT_END, entries);
(0, utils_1.addSpanPerformancePaintEvents)(rootSpan);
this._endSpan(rootSpan, sdk_trace_web_1.PerformanceTimingNames.LOAD_EVENT_END, entries);

@@ -115,3 +115,3 @@ });

if (span) {
if (sdk_trace_web_1.hasKey(entries, performanceName)) {
if ((0, sdk_trace_web_1.hasKey)(entries, performanceName)) {
span.end(entries[performanceName]);

@@ -134,3 +134,3 @@ }

span.setAttribute(semantic_conventions_1.SemanticAttributes.HTTP_URL, resource.name);
sdk_trace_web_1.addSpanNetworkEvents(span, resource);
(0, sdk_trace_web_1.addSpanNetworkEvents)(span, resource);
this._endSpan(span, sdk_trace_web_1.PerformanceTimingNames.RESPONSE_END, resource);

@@ -147,3 +147,3 @@ }

_startSpan(spanName, performanceName, entries, parentSpan) {
if (sdk_trace_web_1.hasKey(entries, performanceName) &&
if ((0, sdk_trace_web_1.hasKey)(entries, performanceName) &&
typeof entries[performanceName] === 'number') {

@@ -150,0 +150,0 @@ const span = this.tracer.startSpan(spanName, {

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

keys.forEach((key) => {
if (sdk_trace_web_1.hasKey(performanceNavigationTiming, key)) {
if ((0, sdk_trace_web_1.hasKey)(performanceNavigationTiming, key)) {
const value = performanceNavigationTiming[key];

@@ -45,3 +45,3 @@ if (typeof value === 'number') {

keys.forEach((key) => {
if (sdk_trace_web_1.hasKey(performanceTiming, key)) {
if ((0, sdk_trace_web_1.hasKey)(performanceTiming, key)) {
const value = performanceTiming[key];

@@ -67,3 +67,3 @@ if (typeof value === 'number') {

performancePaintTiming.forEach(({ name, startTime }) => {
if (sdk_trace_web_1.hasKey(performancePaintNames, name)) {
if ((0, sdk_trace_web_1.hasKey)(performancePaintNames, name)) {
span.addEvent(performancePaintNames[name], startTime);

@@ -70,0 +70,0 @@ }

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

export declare const VERSION = "0.31.0";
export declare const VERSION = "0.31.1";
//# sourceMappingURL=version.d.ts.map

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

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

@@ -71,6 +71,6 @@ "main": "build/src/index.js",

"rimraf": "3.0.2",
"sinon": "14.0.0",
"sinon": "15.0.1",
"ts-loader": "8.3.0",
"ts-mocha": "10.0.0",
"typescript": "4.3.5",
"typescript": "4.4.4",
"webpack": "4.46.0",

@@ -82,3 +82,3 @@ "webpack-cli": "4.7.2",

"@opentelemetry/core": "^1.8.0",
"@opentelemetry/instrumentation": "^0.34.0",
"@opentelemetry/instrumentation": "^0.35.1",
"@opentelemetry/sdk-trace-base": "^1.0.0",

@@ -89,3 +89,3 @@ "@opentelemetry/sdk-trace-web": "^1.8.0",

"homepage": "https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/plugins/web/opentelemetry-instrumentation-document-load#readme",
"gitHead": "59fa57cfd0dff4ae0e6f3833dff73c55dfd79ee5"
"gitHead": "63e0fc9b6b862f74304abf0343c506a5bd415191"
}

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