Socket
Socket
Sign inDemoInstall

@opentelemetry/instrumentation-koa

Package Overview
Dependencies
Maintainers
4
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opentelemetry/instrumentation-koa - npm Package Compare versions

Comparing version 0.16.0 to 0.20.0

build/src/enums/AttributeNames.d.ts

2

build/src/index.d.ts

@@ -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>

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc