elastic-apm-utils
Advanced tools
Comparing version 3.0.1 to 3.0.2
{ | ||
"name": "elastic-apm-utils", | ||
"description": "Utilities for Elastic APM", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"github": "https://github.com/MartinKolarik/elastic-apm-utils/", | ||
@@ -6,0 +6,0 @@ "main": "./src/index.js", |
@@ -111,3 +111,6 @@ const _ = require('lodash'); | ||
let parsed = url.parse(origin); | ||
apmClient.setLabel('origin', `${parsed.protocol}//${parsed.host}`); | ||
if (parsed.protocol && parsed.host) { | ||
apmClient.setLabel('origin', `${parsed.protocol}//${parsed.host}`); | ||
} | ||
} | ||
@@ -114,0 +117,0 @@ } |
6853
100