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
3
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.36.0 to 0.37.0

10

build/esm/instrumentation.js

@@ -37,3 +37,3 @@ /*

import { VERSION } from './version';
import { SemanticAttributes } from '@opentelemetry/semantic-conventions';
import { SEMATTRS_HTTP_URL, SEMATTRS_HTTP_USER_AGENT, } from '@opentelemetry/semantic-conventions';
import { addSpanPerformancePaintEvents, getPerformanceNavigationEntries, } from './utils';

@@ -100,3 +100,3 @@ /**

if (fetchSpan) {
fetchSpan.setAttribute(SemanticAttributes.HTTP_URL, location.href);
fetchSpan.setAttribute(SEMATTRS_HTTP_URL, location.href);
context.with(trace.setSpan(context.active(), fetchSpan), function () {

@@ -110,4 +110,4 @@ var _a;

});
rootSpan.setAttribute(SemanticAttributes.HTTP_URL, location.href);
rootSpan.setAttribute(SemanticAttributes.HTTP_USER_AGENT, navigator.userAgent);
rootSpan.setAttribute(SEMATTRS_HTTP_URL, location.href);
rootSpan.setAttribute(SEMATTRS_HTTP_USER_AGENT, navigator.userAgent);
_this._addResourcesSpans(rootSpan);

@@ -155,3 +155,3 @@ addSpanNetworkEvent(rootSpan, PTN.FETCH_START, entries);

if (span) {
span.setAttribute(SemanticAttributes.HTTP_URL, resource.name);
span.setAttribute(SEMATTRS_HTTP_URL, resource.name);
addSpanNetworkEvents(span, resource);

@@ -158,0 +158,0 @@ this._addCustomAttributesOnResourceSpan(span, resource, (_a = this._getConfig().applyCustomAttributesOnSpan) === null || _a === void 0 ? void 0 : _a.resourceFetch);

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

export declare const VERSION = "0.36.0";
export declare const VERSION = "0.37.0";
//# sourceMappingURL=version.d.ts.map

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

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

@@ -22,3 +22,3 @@ /*

import { VERSION } from './version';
import { SemanticAttributes } from '@opentelemetry/semantic-conventions';
import { SEMATTRS_HTTP_URL, SEMATTRS_HTTP_USER_AGENT, } from '@opentelemetry/semantic-conventions';
import { addSpanPerformancePaintEvents, getPerformanceNavigationEntries, } from './utils';

@@ -79,3 +79,3 @@ /**

if (fetchSpan) {
fetchSpan.setAttribute(SemanticAttributes.HTTP_URL, location.href);
fetchSpan.setAttribute(SEMATTRS_HTTP_URL, location.href);
context.with(trace.setSpan(context.active(), fetchSpan), () => {

@@ -89,4 +89,4 @@ var _a;

});
rootSpan.setAttribute(SemanticAttributes.HTTP_URL, location.href);
rootSpan.setAttribute(SemanticAttributes.HTTP_USER_AGENT, navigator.userAgent);
rootSpan.setAttribute(SEMATTRS_HTTP_URL, location.href);
rootSpan.setAttribute(SEMATTRS_HTTP_USER_AGENT, navigator.userAgent);
this._addResourcesSpans(rootSpan);

@@ -134,3 +134,3 @@ addSpanNetworkEvent(rootSpan, PTN.FETCH_START, entries);

if (span) {
span.setAttribute(SemanticAttributes.HTTP_URL, resource.name);
span.setAttribute(SEMATTRS_HTTP_URL, resource.name);
addSpanNetworkEvents(span, resource);

@@ -137,0 +137,0 @@ this._addCustomAttributesOnResourceSpan(span, resource, (_a = this._getConfig().applyCustomAttributesOnSpan) === null || _a === void 0 ? void 0 : _a.resourceFetch);

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

export declare const VERSION = "0.36.0";
export declare const VERSION = "0.37.0";
//# sourceMappingURL=version.d.ts.map

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

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

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

if (fetchSpan) {
fetchSpan.setAttribute(semantic_conventions_1.SemanticAttributes.HTTP_URL, location.href);
fetchSpan.setAttribute(semantic_conventions_1.SEMATTRS_HTTP_URL, location.href);
api_1.context.with(api_1.trace.setSpan(api_1.context.active(), fetchSpan), () => {

@@ -91,4 +91,4 @@ var _a;

});
rootSpan.setAttribute(semantic_conventions_1.SemanticAttributes.HTTP_URL, location.href);
rootSpan.setAttribute(semantic_conventions_1.SemanticAttributes.HTTP_USER_AGENT, navigator.userAgent);
rootSpan.setAttribute(semantic_conventions_1.SEMATTRS_HTTP_URL, location.href);
rootSpan.setAttribute(semantic_conventions_1.SEMATTRS_HTTP_USER_AGENT, navigator.userAgent);
this._addResourcesSpans(rootSpan);

@@ -136,3 +136,3 @@ (0, sdk_trace_web_1.addSpanNetworkEvent)(rootSpan, sdk_trace_web_1.PerformanceTimingNames.FETCH_START, entries);

if (span) {
span.setAttribute(semantic_conventions_1.SemanticAttributes.HTTP_URL, resource.name);
span.setAttribute(semantic_conventions_1.SEMATTRS_HTTP_URL, resource.name);
(0, sdk_trace_web_1.addSpanNetworkEvents)(span, resource);

@@ -139,0 +139,0 @@ this._addCustomAttributesOnResourceSpan(span, resource, (_a = this._getConfig().applyCustomAttributesOnSpan) === null || _a === void 0 ? void 0 : _a.resourceFetch);

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

export declare const VERSION = "0.36.0";
export declare const VERSION = "0.37.0";
//# sourceMappingURL=version.d.ts.map

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

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

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

"prepublishOnly": "npm run compile",
"tdd": "karma start",
"test:browser": "nyc karma start --single-run",
"tdd": "wtr --watch",
"test:browser": "wtr --coverage",
"watch": "tsc --build -watch tsconfig.json tsconfig.esm.json tsconfig.esnext.json"

@@ -58,34 +58,24 @@ },

"@opentelemetry/api": "^1.3.0",
"@rollup/plugin-commonjs": "^25.0.7",
"@rollup/plugin-node-resolve": "^15.2.3",
"@types/chai": "^4.3.10",
"@types/mocha": "8.2.3",
"@types/node": "18.6.5",
"@types/sinon": "10.0.18",
"@types/webpack-env": "1.16.2",
"babel-loader": "8.2.2",
"karma": "6.3.16",
"karma-chrome-launcher": "^3.1.1",
"karma-coverage-istanbul-reporter": "3.0.3",
"karma-mocha": "2.0.1",
"karma-spec-reporter": "0.0.36",
"karma-webpack": "4.0.2",
"mocha": "7.2.0",
"nise": "5.1.5",
"nyc": "15.1.0",
"rimraf": "5.0.5",
"@web/dev-server-esbuild": "^1.0.1",
"@web/dev-server-rollup": "^0.6.1",
"@web/test-runner": "^0.18.0",
"chai": "^4.3.10",
"sinon": "15.2.0",
"ts-loader": "8.3.0",
"ts-mocha": "10.0.0",
"typescript": "4.4.4",
"webpack": "4.46.0",
"webpack-cli": "4.7.2",
"webpack-merge": "5.8.0"
"typescript": "4.4.4"
},
"dependencies": {
"@opentelemetry/core": "^1.8.0",
"@opentelemetry/instrumentation": "^0.49.1",
"@opentelemetry/instrumentation": "^0.50.0",
"@opentelemetry/sdk-trace-base": "^1.0.0",
"@opentelemetry/sdk-trace-web": "^1.15.0",
"@opentelemetry/semantic-conventions": "^1.0.0"
"@opentelemetry/semantic-conventions": "^1.22.0"
},
"homepage": "https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/plugins/web/opentelemetry-instrumentation-document-load#readme",
"gitHead": "fcea8ca0c83cb1dcd8ac736e5ea4d22ff20dc982"
"gitHead": "17a0bc1da3baa472ba9b867eee3c60730cc130fb"
}

@@ -114,2 +114,13 @@ # OpenTelemetry Instrumentation Document Load

## Semantic Conventions
This package uses `@opentelemetry/semantic-conventions` version `1.22+`, which implements Semantic Convention [Version 1.7.0](https://github.com/open-telemetry/opentelemetry-specification/blob/v1.7.0/semantic_conventions/README.md)
Attributes collected:
| Attribute | Short Description | Notes |
| ----------------- | ------------------------------------------------------------------------------ | ------------------------------- |
| `http.url` | Full HTTP request URL in the form `scheme://host[:port]/path?query[#fragment]` | Key: `SEMATTRS_HTTP_URL` |
| `http.user_agent` | Value of the HTTP User-Agent header sent by the client | Key: `SEMATTRS_HTTP_USER_AGENT` |
## Useful links

@@ -116,0 +127,0 @@

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

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