@opencensus/instrumentation-http2
Advanced tools
Comparing version 0.0.17 to 0.0.18
@@ -51,3 +51,2 @@ "use strict"; | ||
shimmer.wrap(client, 'request', original => plugin.getPatchRequestFunction()(original, authority)); | ||
shimmer.unwrap(plugin.moduleExports, 'connect'); | ||
return client; | ||
@@ -108,3 +107,5 @@ }; | ||
const userAgent = headers['user-agent'] || headers['User-Agent'] || null; | ||
const host = url.parse(authority).host; | ||
const host = (authority instanceof url.URL | ||
? authority | ||
: url.parse(authority)).host; | ||
if (host) { | ||
@@ -111,0 +112,0 @@ span.addAttribute(Http2Plugin.ATTRIBUTE_HTTP_HOST, host); |
{ | ||
"name": "@opencensus/instrumentation-http2", | ||
"version": "0.0.17", | ||
"version": "0.0.18", | ||
"description": "Opencensus http2 automatic instrumentation package.", | ||
@@ -66,4 +66,4 @@ "main": "build/src/index.js", | ||
"dependencies": { | ||
"@opencensus/core": "^0.0.17", | ||
"@opencensus/instrumentation-http": "^0.0.17", | ||
"@opencensus/core": "^0.0.18", | ||
"@opencensus/instrumentation-http": "^0.0.18", | ||
"semver": "^6.0.0", | ||
@@ -70,0 +70,0 @@ "shimmer": "^1.2.0" |
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
26545
281
+ Added@opencensus/core@0.0.18(transitive)
+ Added@opencensus/instrumentation-http@0.0.18(transitive)
- Removed@opencensus/core@0.0.17(transitive)
- Removed@opencensus/instrumentation-http@0.0.17(transitive)
Updated@opencensus/core@^0.0.18