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

@opentelemetry/exporter-collector

Package Overview
Dependencies
Maintainers
4
Versions
167
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opentelemetry/exporter-collector - npm Package Compare versions

Comparing version 0.24.1-alpha.9 to 0.24.1-alpha.14

2

build/esm/platform/browser/CollectorExporterBrowserBase.js

@@ -90,3 +90,3 @@ /*

else {
sendWithBeacon(body, _this.url, _onSuccess, _onError);
sendWithBeacon(body, _this.url, { type: 'application/json' }, _onSuccess, _onError);
}

@@ -93,0 +93,0 @@ });

@@ -8,3 +8,3 @@ import * as collectorTypes from '../../types';

*/
export declare function sendWithBeacon(body: string, url: string, onSuccess: () => void, onError: (error: collectorTypes.CollectorExporterError) => void): void;
export declare function sendWithBeacon(body: string, url: string, blobPropertyBag: BlobPropertyBag, onSuccess: () => void, onError: (error: collectorTypes.CollectorExporterError) => void): void;
/**

@@ -11,0 +11,0 @@ * function to send metrics/spans using browser XMLHttpRequest

@@ -35,4 +35,4 @@ var __assign = (this && this.__assign) || function () {

*/
export function sendWithBeacon(body, url, onSuccess, onError) {
if (navigator.sendBeacon(url, body)) {
export function sendWithBeacon(body, url, blobPropertyBag, onSuccess, onError) {
if (navigator.sendBeacon(url, new Blob([body], blobPropertyBag))) {
diag.debug('sendBeacon - can send', body);

@@ -39,0 +39,0 @@ onSuccess();

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

else {
util_2.sendWithBeacon(body, this.url, _onSuccess, _onError);
util_2.sendWithBeacon(body, this.url, { type: 'application/json' }, _onSuccess, _onError);
}

@@ -77,0 +77,0 @@ });

@@ -8,3 +8,3 @@ import * as collectorTypes from '../../types';

*/
export declare function sendWithBeacon(body: string, url: string, onSuccess: () => void, onError: (error: collectorTypes.CollectorExporterError) => void): void;
export declare function sendWithBeacon(body: string, url: string, blobPropertyBag: BlobPropertyBag, onSuccess: () => void, onError: (error: collectorTypes.CollectorExporterError) => void): void;
/**

@@ -11,0 +11,0 @@ * function to send metrics/spans using browser XMLHttpRequest

@@ -27,4 +27,4 @@ "use strict";

*/
function sendWithBeacon(body, url, onSuccess, onError) {
if (navigator.sendBeacon(url, body)) {
function sendWithBeacon(body, url, blobPropertyBag, onSuccess, onError) {
if (navigator.sendBeacon(url, new Blob([body], blobPropertyBag))) {
api_1.diag.debug('sendBeacon - can send', body);

@@ -31,0 +31,0 @@ onSuccess();

{
"name": "@opentelemetry/exporter-collector",
"version": "0.24.1-alpha.9+46a42a18",
"version": "0.24.1-alpha.14+4553b29d",
"description": "OpenTelemetry Collector Exporter allows user to send collected traces to the OpenTelemetry Collector",

@@ -88,8 +88,8 @@ "main": "build/src/index.js",

"@opentelemetry/api-metrics": "^0.24.0",
"@opentelemetry/core": "^0.24.0",
"@opentelemetry/resources": "^0.24.0",
"@opentelemetry/sdk-metrics-base": "^0.24.0",
"@opentelemetry/sdk-trace-base": "^0.24.1-alpha.9+46a42a18"
"@opentelemetry/core": "^0.24.1-alpha.14+4553b29d",
"@opentelemetry/resources": "^0.24.1-alpha.14+4553b29d",
"@opentelemetry/sdk-metrics-base": "^0.24.1-alpha.14+4553b29d",
"@opentelemetry/sdk-trace-base": "^0.24.1-alpha.14+4553b29d"
},
"gitHead": "46a42a18570da8a0b2ae027c80018ebfb6c8096f"
"gitHead": "4553b29d4a04b5b7e4bf87cad64dc2fc8c740d8e"
}

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