koatty_trace
Advanced tools
Comparing version 1.10.3 to 1.10.4
@@ -5,2 +5,9 @@ # Changelog | ||
### [1.10.4](https://github.com/koatty/koatty_trace/compare/v1.10.3...v1.10.4) (2023-12-14) | ||
### Bug Fixes | ||
* options ([a34d74d](https://github.com/koatty/koatty_trace/commit/a34d74d4785711dc9b0a6d30193b13c339d5bfa6)) | ||
### [1.10.3](https://github.com/koatty/koatty_trace/compare/v1.10.2...v1.10.3) (2023-12-14) | ||
@@ -7,0 +14,0 @@ |
/*! | ||
* @Author: richen | ||
* @Date: 2023-12-14 22:44:39 | ||
* @Date: 2023-12-14 23:21:59 | ||
* @License: BSD (3-Clause) | ||
@@ -40,11 +40,11 @@ * @Copyright (c) - <richenlin(at)gmail.com> | ||
export declare interface TraceOptions { | ||
RequestIdHeaderName: string; | ||
RequestIdName: string; | ||
IdFactory: any; | ||
Timeout: number; | ||
Encoding: string; | ||
OpenTrace: boolean; | ||
AsyncHooks: boolean; | ||
RequestIdHeaderName?: string; | ||
RequestIdName?: string; | ||
IdFactory?: any; | ||
Timeout?: number; | ||
Encoding?: string; | ||
OpenTrace?: boolean; | ||
AsyncHooks?: boolean; | ||
} | ||
export { } |
/*! | ||
* @Author: richen | ||
* @Date: 2023-12-14 22:44:25 | ||
* @Date: 2023-12-14 23:21:45 | ||
* @License: BSD (3-Clause) | ||
@@ -457,3 +457,3 @@ * @Copyright (c) - <richenlin(at)gmail.com> | ||
* @LastEditors: Please set LastEditors | ||
* @LastEditTime: 2023-12-14 22:28:02 | ||
* @LastEditTime: 2023-12-14 22:49:54 | ||
* @License: BSD (3-Clause) | ||
@@ -469,3 +469,6 @@ * @Copyright (c) - <richenlin(at)gmail.com> | ||
function GetTraceId(options) { | ||
const rid = options?.IdFactory(); | ||
let rid; | ||
if (Helper.Helper.isFunction(options.IdFactory)) { | ||
rid = options?.IdFactory(); | ||
} | ||
return rid || uuid.v4(); | ||
@@ -472,0 +475,0 @@ } |
{ | ||
"name": "koatty_trace", | ||
"version": "1.10.3", | ||
"version": "1.10.4", | ||
"description": "Full link tracking and error interception for koatty.", | ||
@@ -12,2 +12,3 @@ "scripts": { | ||
"eslint": "eslint --ext .ts,.js ./", | ||
"lock": "npm i --package-lock-only", | ||
"prepublishOnly": "npm test && npm run build && git push --follow-tags origin", | ||
@@ -84,2 +85,3 @@ "prerelease": "npm test && npm run build", | ||
"ts-node": "^10.x.x", | ||
"tslib": "^2.x.x", | ||
"typescript": "^4.x.x" | ||
@@ -92,2 +94,3 @@ }, | ||
"koatty_lib": "^1.x.x", | ||
"koatty_logger": "^2.x.x", | ||
"opentracing": "^0.14.7", | ||
@@ -100,4 +103,5 @@ "uuid": "^9.0.1" | ||
"koatty_exception": "^1.x.x", | ||
"koatty_lib": "^1.x.x" | ||
"koatty_lib": "^1.x.x", | ||
"koatty_logger": "^2.x.x" | ||
} | ||
} |
{ | ||
"name": "koatty_trace", | ||
"version": "1.10.3", | ||
"version": "1.10.4", | ||
"description": "Full link tracking and error interception for koatty.", | ||
@@ -12,2 +12,3 @@ "scripts": { | ||
"eslint": "eslint --ext .ts,.js ./", | ||
"lock": "npm i --package-lock-only", | ||
"prepublishOnly": "npm test && npm run build && git push --follow-tags origin", | ||
@@ -84,2 +85,3 @@ "prerelease": "npm test && npm run build", | ||
"ts-node": "^10.x.x", | ||
"tslib": "^2.x.x", | ||
"typescript": "^4.x.x" | ||
@@ -92,2 +94,3 @@ }, | ||
"koatty_lib": "^1.x.x", | ||
"koatty_logger": "^2.x.x", | ||
"opentracing": "^0.14.7", | ||
@@ -100,4 +103,5 @@ "uuid": "^9.0.1" | ||
"koatty_exception": "^1.x.x", | ||
"koatty_lib": "^1.x.x" | ||
"koatty_lib": "^1.x.x", | ||
"koatty_logger": "^2.x.x" | ||
} | ||
} |
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
53922
1213
12
28
+ Addedkoatty_logger@^2.x.x