logixia 1.6.8 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.tsbuildinfo +1 -1
- package/dist/index.d.mts +2 -43
- package/dist/index.d.mts.map +1 -1
- package/dist/index.d.ts +2 -43
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.mjs +2 -2
- package/dist/{logitron-logger.module-CvsNL7ZQ.d.mts → logitron-logger.module-B9Bqe7Bm.d.ts} +51 -5
- package/dist/logitron-logger.module-B9Bqe7Bm.d.ts.map +1 -0
- package/dist/{logitron-logger.module-D0CiAXF8.d.ts → logitron-logger.module-BMyk18wV.d.mts} +51 -5
- package/dist/logitron-logger.module-BMyk18wV.d.mts.map +1 -0
- package/dist/{logitron-logger.module-BxSqEjAo.js → logitron-logger.module-BcCtbMEe.js} +13 -1
- package/dist/logitron-logger.module-BcCtbMEe.js.map +1 -0
- package/dist/{logitron-logger.module-B5FJ9Jjv.mjs → logitron-logger.module-DnRTDcoz.mjs} +8 -2
- package/dist/logitron-logger.module-DnRTDcoz.mjs.map +1 -0
- package/dist/nest.d.mts +1 -1
- package/dist/nest.d.ts +1 -1
- package/dist/nest.js +1 -1
- package/dist/nest.mjs +1 -1
- package/package.json +1 -1
- package/dist/logitron-logger.module-B5FJ9Jjv.mjs.map +0 -1
- package/dist/logitron-logger.module-BxSqEjAo.js.map +0 -1
- package/dist/logitron-logger.module-CvsNL7ZQ.d.mts.map +0 -1
- package/dist/logitron-logger.module-D0CiAXF8.d.ts.map +0 -1
|
@@ -807,6 +807,8 @@ var v4_default = v4;
|
|
|
807
807
|
|
|
808
808
|
//#endregion
|
|
809
809
|
//#region src/utils/trace.utils.ts
|
|
810
|
+
/** The key under which the trace ID is stored in AsyncLocalStorage. */
|
|
811
|
+
const TRACE_CONTEXT_KEY = "traceId";
|
|
810
812
|
const traceStorage = new AsyncLocalStorage();
|
|
811
813
|
/**
|
|
812
814
|
* Default trace ID generator using UUID v4
|
|
@@ -1640,6 +1642,10 @@ let LogixiaLoggerService = _LogixiaLoggerService = class LogixiaLoggerService$1
|
|
|
1640
1642
|
getCurrentTraceId() {
|
|
1641
1643
|
return getCurrentTraceId();
|
|
1642
1644
|
}
|
|
1645
|
+
/** The AsyncLocalStorage key under which the trace ID is stored ('traceId'). */
|
|
1646
|
+
get traceContextKey() {
|
|
1647
|
+
return TRACE_CONTEXT_KEY;
|
|
1648
|
+
}
|
|
1643
1649
|
async close() {
|
|
1644
1650
|
return this.logger.close();
|
|
1645
1651
|
}
|
|
@@ -10918,5 +10924,5 @@ let LogixiaLoggerModule = class LogixiaLoggerModule$1 {
|
|
|
10918
10924
|
LogixiaLoggerModule = _LogixiaLoggerModule = __decorate([Module({})], LogixiaLoggerModule);
|
|
10919
10925
|
|
|
10920
10926
|
//#endregion
|
|
10921
|
-
export {
|
|
10922
|
-
//# sourceMappingURL=logitron-logger.module-
|
|
10927
|
+
export { getOtelMetaFields as A, usePlugin as B, flushOnExit as C, redactObject as D, applyRedaction as E, DEFAULT_LOG_COLORS as F, createExpressContextMiddleware as H, DEFAULT_LOG_LEVELS as I, LogLevel as L, isError as M, normalizeError as N, disableOtelBridge as O, serializeError as P, PluginRegistry as R, deregisterFromShutdown as S, resetShutdownHandlers as T, createFastifyContextHook as U, LogixiaContext as V, generateTraceId as _, TraceMiddleware as a, setTraceId as b, LogixiaLoggerService as c, LogixiaLogger as d, createLogger as f, extractTraceId as g, createTraceMiddleware as h, WebSocketTraceInterceptor as i, initOtelBridge as j, getActiveOtelContext as k, __decorate as l, TRACE_CONTEXT_KEY as m, LOGIXIA_LOGGER_PREFIX as n, __decorateParam as o, DEFAULT_TRACE_HEADERS$1 as p, LogixiaLoggerModule as r, KafkaTraceInterceptor as s, LOGIXIA_LOGGER_CONFIG as t, __decorateMetadata as u, getCurrentTraceId as v, registerForShutdown as w, traceStorage as x, runWithTraceId as y, globalPluginRegistry as z };
|
|
10928
|
+
//# sourceMappingURL=logitron-logger.module-DnRTDcoz.mjs.map
|