@opentelemetry/exporter-collector
Advanced tools
Comparing version 0.24.1-alpha.9 to 0.24.1-alpha.14
@@ -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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
249150
+ Added@opentelemetry/sdk-metrics-base@0.24.1-alpha.20(transitive)
- Removed@opentelemetry/core@0.24.0(transitive)
- Removed@opentelemetry/resources@0.24.0(transitive)
Updated@opentelemetry/sdk-metrics-base@^0.24.1-alpha.14+4553b29d
Updated@opentelemetry/sdk-trace-base@^0.24.1-alpha.14+4553b29d