@opentelemetry/instrumentation-koa
Advanced tools
Comparing version 0.16.0 to 0.20.0
@@ -1,2 +0,2 @@ | ||
export * from './koa'; | ||
export * from './instrumentation'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -28,3 +28,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__exportStar(require("./koa"), exports); | ||
__exportStar(require("./instrumentation"), exports); | ||
//# sourceMappingURL=index.js.map |
@@ -15,6 +15,2 @@ /// <reference types="koa__router" /> | ||
export declare type KoaContext = ParameterizedContext<DefaultState, RouterParamContext>; | ||
export declare enum AttributeNames { | ||
KOA_TYPE = "koa.type", | ||
KOA_NAME = "koa.name" | ||
} | ||
export declare enum KoaLayerType { | ||
@@ -21,0 +17,0 @@ ROUTER = "router", |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.KoaComponentName = exports.KoaLayerType = exports.AttributeNames = exports.kLayerPatched = void 0; | ||
exports.KoaComponentName = exports.KoaLayerType = exports.kLayerPatched = void 0; | ||
/** | ||
@@ -9,7 +9,2 @@ * This symbol is used to mark a Koa layer as being already instrumented | ||
exports.kLayerPatched = Symbol('koa-layer-patched'); | ||
var AttributeNames; | ||
(function (AttributeNames) { | ||
AttributeNames["KOA_TYPE"] = "koa.type"; | ||
AttributeNames["KOA_NAME"] = "koa.name"; | ||
})(AttributeNames = exports.AttributeNames || (exports.AttributeNames = {})); | ||
var KoaLayerType; | ||
@@ -16,0 +11,0 @@ (function (KoaLayerType) { |
@@ -20,2 +20,3 @@ "use strict"; | ||
const types_1 = require("./types"); | ||
const AttributeNames_1 = require("./enums/AttributeNames"); | ||
const semantic_conventions_1 = require("@opentelemetry/semantic-conventions"); | ||
@@ -27,4 +28,4 @@ const getMiddlewareMetadata = (context, layer, isRouter, layerPath) => { | ||
attributes: { | ||
[types_1.AttributeNames.KOA_NAME]: layerPath, | ||
[types_1.AttributeNames.KOA_TYPE]: types_1.KoaLayerType.ROUTER, | ||
[AttributeNames_1.AttributeNames.KOA_NAME]: layerPath, | ||
[AttributeNames_1.AttributeNames.KOA_TYPE]: types_1.KoaLayerType.ROUTER, | ||
[semantic_conventions_1.SemanticAttributes.HTTP_ROUTE]: layerPath, | ||
@@ -38,4 +39,4 @@ }, | ||
attributes: { | ||
[types_1.AttributeNames.KOA_NAME]: (_a = layer.name) !== null && _a !== void 0 ? _a : 'middleware', | ||
[types_1.AttributeNames.KOA_TYPE]: types_1.KoaLayerType.MIDDLEWARE, | ||
[AttributeNames_1.AttributeNames.KOA_NAME]: (_a = layer.name) !== null && _a !== void 0 ? _a : 'middleware', | ||
[AttributeNames_1.AttributeNames.KOA_TYPE]: types_1.KoaLayerType.MIDDLEWARE, | ||
}, | ||
@@ -42,0 +43,0 @@ name: `middleware - ${layer.name}`, |
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = "0.16.0"; | ||
export declare const VERSION = "0.20.0"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -20,3 +20,3 @@ "use strict"; | ||
// this is autogenerated file, see scripts/version-update.js | ||
exports.VERSION = '0.16.0'; | ||
exports.VERSION = '0.20.0'; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@opentelemetry/instrumentation-koa", | ||
"version": "0.16.0", | ||
"version": "0.20.0", | ||
"description": "OpenTelemetry Koa automatic instrumentation package.", | ||
@@ -47,12 +47,10 @@ "main": "build/src/index.js", | ||
"@koa/router": "9.4.0", | ||
"@opentelemetry/context-async-hooks": "0.19.0", | ||
"@opentelemetry/node": "0.19.0", | ||
"@opentelemetry/tracing": "0.19.0", | ||
"@types/koa": "2.11.4", | ||
"@types/koa__router": "8.0.2", | ||
"@opentelemetry/context-async-hooks": "0.20.0", | ||
"@opentelemetry/node": "0.20.0", | ||
"@opentelemetry/tracing": "0.20.0", | ||
"@types/mocha": "7.0.2", | ||
"@types/node": "12.12.47", | ||
"codecov": "3.7.1", | ||
"@types/node": "12.20.14", | ||
"codecov": "3.8.2", | ||
"gts": "3.1.0", | ||
"koa": "2.13.0", | ||
"koa": "2.13.1", | ||
"mocha": "7.2.0", | ||
@@ -62,12 +60,13 @@ "nyc": "15.1.0", | ||
"ts-mocha": "8.0.0", | ||
"tslint-consistent-codestyle": "1.16.0", | ||
"tslint-microsoft-contrib": "6.2.0", | ||
"typescript": "4.1.3" | ||
"typescript": "4.3.2" | ||
}, | ||
"dependencies": { | ||
"@opentelemetry/api": "^1.0.0-rc.0", | ||
"@opentelemetry/instrumentation": "^0.19.0", | ||
"@opentelemetry/semantic-conventions": "^0.19.0" | ||
"@opentelemetry/api": "^0.20.0", | ||
"@opentelemetry/core": "^0.20.0", | ||
"@opentelemetry/instrumentation": "^0.20.0", | ||
"@opentelemetry/semantic-conventions": "^0.20.0", | ||
"@types/koa": "2.13.3", | ||
"@types/koa__router": "8.0.4" | ||
}, | ||
"gitHead": "5ecccc916e8f4eecaf6629a0350fc672edcba1be" | ||
"gitHead": "5d73dc2d11a8fd57b21a0c6286861cb992556ca1" | ||
} |
@@ -18,5 +18,7 @@ # OpenTelemetry Koa Instrumentation for Node.js | ||
``` | ||
### Supported Versions | ||
- Koa `^2.0.0` | ||
- Koa `^2.0.0` | ||
## Usage | ||
@@ -38,3 +40,2 @@ | ||
], | ||
tracerProvider: provider, | ||
}); | ||
@@ -50,2 +51,3 @@ ``` | ||
## Useful links | ||
- For more information on OpenTelemetry, visit: <https://opentelemetry.io/> | ||
@@ -52,0 +54,0 @@ - For more about OpenTelemetry JavaScript: <https://github.com/open-telemetry/opentelemetry-js> |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
31269
14
15
329
67
6
1
+ Added@opentelemetry/core@^0.20.0
+ Added@types/koa@2.13.3
+ Added@types/koa__router@8.0.4
+ Added@opentelemetry/api@0.20.0(transitive)
+ Added@opentelemetry/api-metrics@0.20.0(transitive)
+ Added@opentelemetry/core@0.20.0(transitive)
+ Added@opentelemetry/instrumentation@0.20.0(transitive)
+ Added@opentelemetry/semantic-conventions@0.20.0(transitive)
+ Added@types/accepts@1.3.7(transitive)
+ Added@types/body-parser@1.19.5(transitive)
+ Added@types/connect@3.4.38(transitive)
+ Added@types/content-disposition@0.5.8(transitive)
+ Added@types/cookies@0.9.0(transitive)
+ Added@types/express@4.17.21(transitive)
+ Added@types/express-serve-static-core@4.19.5(transitive)
+ Added@types/http-assert@1.5.5(transitive)
+ Added@types/http-errors@2.0.4(transitive)
+ Added@types/keygrip@1.0.6(transitive)
+ Added@types/koa@2.13.3(transitive)
+ Added@types/koa-compose@3.2.8(transitive)
+ Added@types/koa__router@8.0.4(transitive)
+ Added@types/mime@1.3.5(transitive)
+ Added@types/node@22.5.5(transitive)
+ Added@types/qs@6.9.16(transitive)
+ Added@types/range-parser@1.2.7(transitive)
+ Added@types/send@0.17.4(transitive)
+ Added@types/serve-static@1.15.7(transitive)
+ Addedundici-types@6.19.8(transitive)
- Removed@opentelemetry/api@1.9.0(transitive)
- Removed@opentelemetry/api-metrics@0.19.0(transitive)
- Removed@opentelemetry/instrumentation@0.19.0(transitive)
- Removed@opentelemetry/semantic-conventions@0.19.0(transitive)
Updated@opentelemetry/api@^0.20.0