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

@opentelemetry/web

Package Overview
Dependencies
Maintainers
4
Versions
150
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opentelemetry/web - npm Package Compare versions

Comparing version 0.23.1-alpha.18 to 0.23.1-alpha.23

1

build/esm/enums/PerformanceTimingNames.d.ts
export declare enum PerformanceTimingNames {
CONNECT_END = "connectEnd",
CONNECT_START = "connectStart",
DECODED_BODY_SIZE = "decodedBodySize",
DOM_COMPLETE = "domComplete",

@@ -5,0 +6,0 @@ DOM_CONTENT_LOADED_EVENT_END = "domContentLoadedEventEnd",

@@ -20,2 +20,3 @@ /*

PerformanceTimingNames["CONNECT_START"] = "connectStart";
PerformanceTimingNames["DECODED_BODY_SIZE"] = "decodedBodySize";
PerformanceTimingNames["DOM_COMPLETE"] = "domComplete";

@@ -22,0 +23,0 @@ PerformanceTimingNames["DOM_CONTENT_LOADED_EVENT_END"] = "domContentLoadedEventEnd";

@@ -5,2 +5,3 @@ import { PerformanceTimingNames } from './enums/PerformanceTimingNames';

[PerformanceTimingNames.CONNECT_START]?: number;
[PerformanceTimingNames.DECODED_BODY_SIZE]?: number;
[PerformanceTimingNames.DOM_COMPLETE]?: number;

@@ -7,0 +8,0 @@ [PerformanceTimingNames.DOM_CONTENT_LOADED_EVENT_END]?: number;

11

build/esm/utils.js

@@ -65,6 +65,11 @@ /*

addSpanNetworkEvent(span, PTN.RESPONSE_END, resource);
var contentLength = resource[PTN.ENCODED_BODY_SIZE];
if (contentLength !== undefined) {
span.setAttribute(SemanticAttributes.HTTP_RESPONSE_CONTENT_LENGTH, contentLength);
var encodedLength = resource[PTN.ENCODED_BODY_SIZE];
if (encodedLength !== undefined) {
span.setAttribute(SemanticAttributes.HTTP_RESPONSE_CONTENT_LENGTH, encodedLength);
}
var decodedLength = resource[PTN.DECODED_BODY_SIZE];
// Spec: Not set if transport encoding not used (in which case encoded and decoded sizes match)
if (decodedLength !== undefined && encodedLength !== decodedLength) {
span.setAttribute(SemanticAttributes.HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED, decodedLength);
}
}

@@ -71,0 +76,0 @@ /**

export declare enum PerformanceTimingNames {
CONNECT_END = "connectEnd",
CONNECT_START = "connectStart",
DECODED_BODY_SIZE = "decodedBodySize",
DOM_COMPLETE = "domComplete",

@@ -5,0 +6,0 @@ DOM_CONTENT_LOADED_EVENT_END = "domContentLoadedEventEnd",

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

PerformanceTimingNames["CONNECT_START"] = "connectStart";
PerformanceTimingNames["DECODED_BODY_SIZE"] = "decodedBodySize";
PerformanceTimingNames["DOM_COMPLETE"] = "domComplete";

@@ -25,0 +26,0 @@ PerformanceTimingNames["DOM_CONTENT_LOADED_EVENT_END"] = "domContentLoadedEventEnd";

@@ -5,2 +5,3 @@ import { PerformanceTimingNames } from './enums/PerformanceTimingNames';

[PerformanceTimingNames.CONNECT_START]?: number;
[PerformanceTimingNames.DECODED_BODY_SIZE]?: number;
[PerformanceTimingNames.DOM_COMPLETE]?: number;

@@ -7,0 +8,0 @@ [PerformanceTimingNames.DOM_CONTENT_LOADED_EVENT_END]?: number;

@@ -71,6 +71,11 @@ "use strict";

addSpanNetworkEvent(span, PerformanceTimingNames_1.PerformanceTimingNames.RESPONSE_END, resource);
const contentLength = resource[PerformanceTimingNames_1.PerformanceTimingNames.ENCODED_BODY_SIZE];
if (contentLength !== undefined) {
span.setAttribute(semantic_conventions_1.SemanticAttributes.HTTP_RESPONSE_CONTENT_LENGTH, contentLength);
const encodedLength = resource[PerformanceTimingNames_1.PerformanceTimingNames.ENCODED_BODY_SIZE];
if (encodedLength !== undefined) {
span.setAttribute(semantic_conventions_1.SemanticAttributes.HTTP_RESPONSE_CONTENT_LENGTH, encodedLength);
}
const decodedLength = resource[PerformanceTimingNames_1.PerformanceTimingNames.DECODED_BODY_SIZE];
// Spec: Not set if transport encoding not used (in which case encoded and decoded sizes match)
if (decodedLength !== undefined && encodedLength !== decodedLength) {
span.setAttribute(semantic_conventions_1.SemanticAttributes.HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED, decodedLength);
}
}

@@ -77,0 +82,0 @@ exports.addSpanNetworkEvents = addSpanNetworkEvents;

{
"name": "@opentelemetry/web",
"version": "0.23.1-alpha.18+4b3425dd",
"version": "0.23.1-alpha.23+884d20ab",
"description": "OpenTelemetry Web Tracer",

@@ -48,14 +48,14 @@ "main": "build/src/index.js",

"devDependencies": {
"@babel/core": "7.14.6",
"@babel/core": "7.14.8",
"@opentelemetry/api": "^1.0.1",
"@opentelemetry/context-zone": "^0.23.1-alpha.18+4b3425dd",
"@opentelemetry/propagator-b3": "^0.23.1-alpha.18+4b3425dd",
"@opentelemetry/resources": "^0.23.1-alpha.18+4b3425dd",
"@types/jquery": "3.5.5",
"@types/mocha": "8.2.2",
"@types/node": "14.17.4",
"@opentelemetry/context-zone": "^0.23.1-alpha.23+884d20ab",
"@opentelemetry/propagator-b3": "^0.23.1-alpha.23+884d20ab",
"@opentelemetry/resources": "^0.23.1-alpha.23+884d20ab",
"@types/jquery": "3.5.6",
"@types/mocha": "8.2.3",
"@types/node": "14.17.5",
"@types/sinon": "10.0.2",
"@types/webpack-env": "1.16.1",
"@types/webpack-env": "1.16.2",
"babel-loader": "8.2.2",
"codecov": "3.8.2",
"codecov": "3.8.3",
"istanbul-instrumenter-loader": "3.0.1",

@@ -75,3 +75,2 @@ "karma": "5.2.3",

"ts-mocha": "8.0.0",
"ts-node": "10.0.0",
"typescript": "4.3.5",

@@ -86,7 +85,7 @@ "webpack": "4.46.0",

"dependencies": {
"@opentelemetry/core": "^0.23.1-alpha.18+4b3425dd",
"@opentelemetry/semantic-conventions": "^0.23.1-alpha.18+4b3425dd",
"@opentelemetry/tracing": "^0.23.1-alpha.18+4b3425dd"
"@opentelemetry/core": "^0.23.1-alpha.23+884d20ab",
"@opentelemetry/semantic-conventions": "^0.23.1-alpha.23+884d20ab",
"@opentelemetry/tracing": "^0.23.1-alpha.23+884d20ab"
},
"gitHead": "4b3425dd09f0a7087c9d741d25c7a9a0be42770c"
"gitHead": "884d20ab417bf0283ec84a72b9a0fae8ebcb82a1"
}

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