@opentelemetry/instrumentation-hapi
Advanced tools
Comparing version 0.38.0 to 0.39.0
@@ -28,6 +28,7 @@ "use strict"; | ||
constructor(config = {}) { | ||
super('@opentelemetry/instrumentation-hapi', version_1.VERSION, config); | ||
super(version_1.PACKAGE_NAME, version_1.PACKAGE_VERSION, config); | ||
} | ||
init() { | ||
return new instrumentation_1.InstrumentationNodeModuleDefinition(internal_types_1.HapiComponentName, ['>=17 <22'], (moduleExports) => { | ||
return new instrumentation_1.InstrumentationNodeModuleDefinition(internal_types_1.HapiComponentName, ['>=17 <22'], (module) => { | ||
const moduleExports = module[Symbol.toStringTag] === 'Module' ? module.default : module; | ||
if (!(0, instrumentation_1.isWrapped)(moduleExports.server)) { | ||
@@ -40,3 +41,4 @@ this._wrap(moduleExports, 'server', this._getServerPatch.bind(this)); | ||
return moduleExports; | ||
}, (moduleExports) => { | ||
}, (module) => { | ||
const moduleExports = module[Symbol.toStringTag] === 'Module' ? module.default : module; | ||
this._massUnwrap([moduleExports], ['server', 'Server']); | ||
@@ -43,0 +45,0 @@ }); |
@@ -57,4 +57,4 @@ "use strict"; | ||
attributes: { | ||
[semantic_conventions_1.SemanticAttributes.HTTP_ROUTE]: route.path, | ||
[semantic_conventions_1.SemanticAttributes.HTTP_METHOD]: route.method, | ||
[semantic_conventions_1.SEMATTRS_HTTP_ROUTE]: route.path, | ||
[semantic_conventions_1.SEMATTRS_HTTP_METHOD]: route.method, | ||
[AttributeNames_1.AttributeNames.HAPI_TYPE]: internal_types_1.HapiLayerType.PLUGIN, | ||
@@ -68,4 +68,4 @@ [AttributeNames_1.AttributeNames.PLUGIN_NAME]: pluginName, | ||
attributes: { | ||
[semantic_conventions_1.SemanticAttributes.HTTP_ROUTE]: route.path, | ||
[semantic_conventions_1.SemanticAttributes.HTTP_METHOD]: route.method, | ||
[semantic_conventions_1.SEMATTRS_HTTP_ROUTE]: route.path, | ||
[semantic_conventions_1.SEMATTRS_HTTP_METHOD]: route.method, | ||
[AttributeNames_1.AttributeNames.HAPI_TYPE]: internal_types_1.HapiLayerType.ROUTER, | ||
@@ -72,0 +72,0 @@ }, |
@@ -1,2 +0,3 @@ | ||
export declare const VERSION = "0.38.0"; | ||
export declare const PACKAGE_VERSION = "0.39.0"; | ||
export declare const PACKAGE_NAME = "@opentelemetry/instrumentation-hapi"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -18,5 +18,6 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.VERSION = void 0; | ||
exports.PACKAGE_NAME = exports.PACKAGE_VERSION = void 0; | ||
// this is autogenerated file, see scripts/version-update.js | ||
exports.VERSION = '0.38.0'; | ||
exports.PACKAGE_VERSION = '0.39.0'; | ||
exports.PACKAGE_NAME = '@opentelemetry/instrumentation-hapi'; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@opentelemetry/instrumentation-hapi", | ||
"version": "0.38.0", | ||
"description": "OpenTelemetry Hapi automatic instrumentation package.", | ||
"version": "0.39.0", | ||
"description": "OpenTelemetry instrumentation for `@hapi/hapi` http web application framework", | ||
"main": "build/src/index.js", | ||
@@ -49,2 +49,3 @@ "types": "build/src/index.d.ts", | ||
"@opentelemetry/context-async-hooks": "^1.8.0", | ||
"@opentelemetry/contrib-test-utils": "^0.40.0", | ||
"@opentelemetry/sdk-trace-base": "^1.8.0", | ||
@@ -64,7 +65,7 @@ "@opentelemetry/sdk-trace-node": "^1.8.0", | ||
"@opentelemetry/core": "^1.8.0", | ||
"@opentelemetry/instrumentation": "^0.51.0", | ||
"@opentelemetry/semantic-conventions": "^1.0.0" | ||
"@opentelemetry/instrumentation": "^0.52.0", | ||
"@opentelemetry/semantic-conventions": "^1.22.0" | ||
}, | ||
"homepage": "https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/plugins/node/opentelemetry-instrumentation-hapi#readme", | ||
"gitHead": "a2e2b5a1aa2910b903829d215184c43d2107b9ac" | ||
"gitHead": "0af1b70f7c3c9763c85ac51fa5e334c1e1512020" | ||
} |
@@ -69,2 +69,13 @@ # OpenTelemetry Hapi Instrumentation for Node.js | ||
## Semantic Conventions | ||
This package uses `@opentelemetry/semantic-conventions` version `1.22+`, which implements Semantic Convention [Version 1.7.0](https://github.com/open-telemetry/opentelemetry-specification/blob/v1.7.0/semantic_conventions/README.md) | ||
Attributes collected: | ||
| Attribute | Short Description | | ||
|---------------------|----------------------------------------------------| | ||
| `http.method` | HTTP method | | ||
| `http.route` | Route assigned to handler. Ex: `/users/:id` | | ||
## Useful links | ||
@@ -71,0 +82,0 @@ |
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
85652
647
95
15
+ Added@opentelemetry/api-logs@0.52.1(transitive)
+ Added@opentelemetry/instrumentation@0.52.1(transitive)
+ Addedimport-in-the-middle@1.11.2(transitive)
- Removed@opentelemetry/api-logs@0.51.1(transitive)
- Removed@opentelemetry/instrumentation@0.51.1(transitive)
- Removedimport-in-the-middle@1.7.4(transitive)