Socket
Socket
Sign inDemoInstall

@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.3 to 0.23.1-alpha.13

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.3+6ed8d925",
"version": "0.23.1-alpha.13+5aabcc75",
"description": "OpenTelemetry Web Tracer",

@@ -50,5 +50,5 @@ "main": "build/src/index.js",

"@opentelemetry/api": "^1.0.1",
"@opentelemetry/context-zone": "^0.23.1-alpha.3+6ed8d925",
"@opentelemetry/propagator-b3": "^0.23.1-alpha.3+6ed8d925",
"@opentelemetry/resources": "^0.23.1-alpha.3+6ed8d925",
"@opentelemetry/context-zone": "^0.23.0",
"@opentelemetry/propagator-b3": "^0.23.0",
"@opentelemetry/resources": "^0.23.0",
"@types/jquery": "3.5.5",

@@ -84,7 +84,7 @@ "@types/mocha": "8.2.2",

"dependencies": {
"@opentelemetry/core": "^0.23.1-alpha.3+6ed8d925",
"@opentelemetry/semantic-conventions": "^0.23.1-alpha.3+6ed8d925",
"@opentelemetry/tracing": "^0.23.1-alpha.3+6ed8d925"
"@opentelemetry/core": "^0.23.0",
"@opentelemetry/semantic-conventions": "^0.23.0",
"@opentelemetry/tracing": "^0.23.0"
},
"gitHead": "6ed8d92559df68ef1fd3273598a1860ee5197e53"
"gitHead": "5aabcc750125d45f77eb0e7b2e0d59b5242e523c"
}

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