@opentelemetry/otlp-exporter-base
Advanced tools
Comparing version 0.33.0 to 0.34.0
@@ -16,6 +16,5 @@ /** | ||
* @param url | ||
* @param path | ||
* @returns url | ||
*/ | ||
export declare function appendRootPathToUrlIfNeeded(url: string, path: string): string; | ||
export declare function appendRootPathToUrlIfNeeded(url: string): string; | ||
/** | ||
@@ -22,0 +21,0 @@ * Configure exporter trace timeout value from passed in value or environment variables |
@@ -68,10 +68,16 @@ /* | ||
* @param url | ||
* @param path | ||
* @returns url | ||
*/ | ||
export function appendRootPathToUrlIfNeeded(url, path) { | ||
if (!url.includes(path) && !url.endsWith('/')) { | ||
url = url + '/'; | ||
export function appendRootPathToUrlIfNeeded(url) { | ||
try { | ||
var parsedUrl = new URL(url); | ||
if (parsedUrl.pathname === '') { | ||
parsedUrl.pathname = parsedUrl.pathname + '/'; | ||
} | ||
return parsedUrl.toString(); | ||
} | ||
return url; | ||
catch (_a) { | ||
diag.warn("Could not parse export URL: '" + url + "'"); | ||
return url; | ||
} | ||
} | ||
@@ -78,0 +84,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = "0.33.0"; | ||
export declare const VERSION = "0.34.0"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -17,3 +17,3 @@ /* | ||
// this is autogenerated file, see scripts/version-update.js | ||
export var VERSION = '0.33.0'; | ||
export var VERSION = '0.34.0'; | ||
//# sourceMappingURL=version.js.map |
@@ -16,6 +16,5 @@ /** | ||
* @param url | ||
* @param path | ||
* @returns url | ||
*/ | ||
export declare function appendRootPathToUrlIfNeeded(url: string, path: string): string; | ||
export declare function appendRootPathToUrlIfNeeded(url: string): string; | ||
/** | ||
@@ -22,0 +21,0 @@ * Configure exporter trace timeout value from passed in value or environment variables |
@@ -50,10 +50,16 @@ /* | ||
* @param url | ||
* @param path | ||
* @returns url | ||
*/ | ||
export function appendRootPathToUrlIfNeeded(url, path) { | ||
if (!url.includes(path) && !url.endsWith('/')) { | ||
url = url + '/'; | ||
export function appendRootPathToUrlIfNeeded(url) { | ||
try { | ||
const parsedUrl = new URL(url); | ||
if (parsedUrl.pathname === '') { | ||
parsedUrl.pathname = parsedUrl.pathname + '/'; | ||
} | ||
return parsedUrl.toString(); | ||
} | ||
return url; | ||
catch (_a) { | ||
diag.warn(`Could not parse export URL: '${url}'`); | ||
return url; | ||
} | ||
} | ||
@@ -60,0 +66,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = "0.33.0"; | ||
export declare const VERSION = "0.34.0"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -17,3 +17,3 @@ /* | ||
// this is autogenerated file, see scripts/version-update.js | ||
export const VERSION = '0.33.0'; | ||
export const VERSION = '0.34.0'; | ||
//# sourceMappingURL=version.js.map |
@@ -16,6 +16,5 @@ /** | ||
* @param url | ||
* @param path | ||
* @returns url | ||
*/ | ||
export declare function appendRootPathToUrlIfNeeded(url: string, path: string): string; | ||
export declare function appendRootPathToUrlIfNeeded(url: string): string; | ||
/** | ||
@@ -22,0 +21,0 @@ * Configure exporter trace timeout value from passed in value or environment variables |
@@ -55,10 +55,16 @@ "use strict"; | ||
* @param url | ||
* @param path | ||
* @returns url | ||
*/ | ||
function appendRootPathToUrlIfNeeded(url, path) { | ||
if (!url.includes(path) && !url.endsWith('/')) { | ||
url = url + '/'; | ||
function appendRootPathToUrlIfNeeded(url) { | ||
try { | ||
const parsedUrl = new URL(url); | ||
if (parsedUrl.pathname === '') { | ||
parsedUrl.pathname = parsedUrl.pathname + '/'; | ||
} | ||
return parsedUrl.toString(); | ||
} | ||
return url; | ||
catch (_a) { | ||
api_1.diag.warn(`Could not parse export URL: '${url}'`); | ||
return url; | ||
} | ||
} | ||
@@ -65,0 +71,0 @@ exports.appendRootPathToUrlIfNeeded = appendRootPathToUrlIfNeeded; |
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = "0.33.0"; | ||
export declare const VERSION = "0.34.0"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -20,3 +20,3 @@ "use strict"; | ||
// this is autogenerated file, see scripts/version-update.js | ||
exports.VERSION = '0.33.0'; | ||
exports.VERSION = '0.34.0'; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@opentelemetry/otlp-exporter-base", | ||
"version": "0.33.0", | ||
"version": "0.34.0", | ||
"description": "OpenTelemetry OTLP Exporter base (for internal use only)", | ||
@@ -64,7 +64,7 @@ "main": "build/src/index.js", | ||
"dependencies": { | ||
"@opentelemetry/core": "1.7.0" | ||
"@opentelemetry/core": "1.8.0" | ||
}, | ||
"devDependencies": { | ||
"@opentelemetry/api": "^1.0.0", | ||
"@types/mocha": "9.1.1", | ||
"@types/mocha": "10.0.0", | ||
"@types/node": "18.6.5", | ||
@@ -86,3 +86,4 @@ "@types/sinon": "10.0.13", | ||
"homepage": "https://github.com/open-telemetry/opentelemetry-js/tree/main/experimental/packages/otlp-exporter-base", | ||
"gitHead": "ad88c3d9aa0100fe259b93f4b660e84417b757ac" | ||
"sideEffects": false, | ||
"gitHead": "7972edf6659fb6e0d5928a5cf7a35f26683e168f" | ||
} |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
247600
2757
+ Added@opentelemetry/api@1.3.0(transitive)
+ Added@opentelemetry/core@1.8.0(transitive)
+ Added@opentelemetry/semantic-conventions@1.8.0(transitive)
- Removed@opentelemetry/api@1.2.0(transitive)
- Removed@opentelemetry/core@1.7.0(transitive)
- Removed@opentelemetry/semantic-conventions@1.7.0(transitive)
Updated@opentelemetry/core@1.8.0