@bymax-one/nest-logger 1.4.23 → 1.4.24

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.
@@ -23,6 +23,7 @@ var RESERVED_LOG_KEYS = Object.freeze({
23
23
  METHOD_SLOW_EXECUTION: "METHOD_SLOW_EXECUTION",
24
24
  LOGGER_DESTINATION_INIT_FAILED: "LOGGER_DESTINATION_INIT_FAILED",
25
25
  LOGGER_DESTINATION_WRITE_FAILED: "LOGGER_DESTINATION_WRITE_FAILED",
26
+ LOGGER_DESTINATION_SHUTDOWN_FAILED: "LOGGER_DESTINATION_SHUTDOWN_FAILED",
26
27
  LOGGER_ENTRY_TRUNCATED: "LOGGER_ENTRY_TRUNCATED",
27
28
  LOGGER_REDACTION_FAILED: "LOGGER_REDACTION_FAILED",
28
29
  LOGGER_OTEL_API_BROKEN: "LOGGER_OTEL_API_BROKEN"
@@ -244,6 +244,7 @@ declare const RESERVED_LOG_KEYS: Readonly<{
244
244
  readonly METHOD_SLOW_EXECUTION: "METHOD_SLOW_EXECUTION";
245
245
  readonly LOGGER_DESTINATION_INIT_FAILED: "LOGGER_DESTINATION_INIT_FAILED";
246
246
  readonly LOGGER_DESTINATION_WRITE_FAILED: "LOGGER_DESTINATION_WRITE_FAILED";
247
+ readonly LOGGER_DESTINATION_SHUTDOWN_FAILED: "LOGGER_DESTINATION_SHUTDOWN_FAILED";
247
248
  readonly LOGGER_ENTRY_TRUNCATED: "LOGGER_ENTRY_TRUNCATED";
248
249
  readonly LOGGER_REDACTION_FAILED: "LOGGER_REDACTION_FAILED";
249
250
  readonly LOGGER_OTEL_API_BROKEN: "LOGGER_OTEL_API_BROKEN";
@@ -244,6 +244,7 @@ declare const RESERVED_LOG_KEYS: Readonly<{
244
244
  readonly METHOD_SLOW_EXECUTION: "METHOD_SLOW_EXECUTION";
245
245
  readonly LOGGER_DESTINATION_INIT_FAILED: "LOGGER_DESTINATION_INIT_FAILED";
246
246
  readonly LOGGER_DESTINATION_WRITE_FAILED: "LOGGER_DESTINATION_WRITE_FAILED";
247
+ readonly LOGGER_DESTINATION_SHUTDOWN_FAILED: "LOGGER_DESTINATION_SHUTDOWN_FAILED";
247
248
  readonly LOGGER_ENTRY_TRUNCATED: "LOGGER_ENTRY_TRUNCATED";
248
249
  readonly LOGGER_REDACTION_FAILED: "LOGGER_REDACTION_FAILED";
249
250
  readonly LOGGER_OTEL_API_BROKEN: "LOGGER_OTEL_API_BROKEN";
@@ -21,6 +21,7 @@ var RESERVED_LOG_KEYS = Object.freeze({
21
21
  METHOD_SLOW_EXECUTION: "METHOD_SLOW_EXECUTION",
22
22
  LOGGER_DESTINATION_INIT_FAILED: "LOGGER_DESTINATION_INIT_FAILED",
23
23
  LOGGER_DESTINATION_WRITE_FAILED: "LOGGER_DESTINATION_WRITE_FAILED",
24
+ LOGGER_DESTINATION_SHUTDOWN_FAILED: "LOGGER_DESTINATION_SHUTDOWN_FAILED",
24
25
  LOGGER_ENTRY_TRUNCATED: "LOGGER_ENTRY_TRUNCATED",
25
26
  LOGGER_REDACTION_FAILED: "LOGGER_REDACTION_FAILED",
26
27
  LOGGER_OTEL_API_BROKEN: "LOGGER_OTEL_API_BROKEN"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bymax-one/nest-logger",
3
- "version": "1.4.23",
3
+ "version": "1.4.24",
4
4
  "description": "Structured JSON logging for NestJS based on Pino 10, with optional OpenTelemetry correlation.",
5
5
  "author": "Bymax One <support@bymax.one>",
6
6
  "license": "MIT",
@@ -41,6 +41,16 @@
41
41
  "default": "./dist/shared/index.cjs"
42
42
  }
43
43
  },
44
+ "./observability": {
45
+ "import": {
46
+ "types": "./dist/observability/index.d.ts",
47
+ "default": "./dist/observability/index.mjs"
48
+ },
49
+ "require": {
50
+ "types": "./dist/observability/index.d.cts",
51
+ "default": "./dist/observability/index.cjs"
52
+ }
53
+ },
44
54
  "./package.json": "./package.json"
45
55
  },
46
56
  "main": "./dist/server/index.cjs",
@@ -50,6 +60,9 @@
50
60
  "*": {
51
61
  "shared": [
52
62
  "./dist/shared/index.d.cts"
63
+ ],
64
+ "observability": [
65
+ "./dist/observability/index.d.cts"
53
66
  ]
54
67
  }
55
68
  },
@@ -94,24 +107,33 @@
94
107
  ]
95
108
  },
96
109
  "peerDependencies": {
110
+ "@bymax-one/nest-core": "^1.6.10",
97
111
  "@nestjs/common": "^11.0.16",
98
112
  "@nestjs/core": "^11.1.18",
99
113
  "@opentelemetry/api": "^1.9.0",
100
114
  "pino": "^10.0.0",
101
115
  "pino-pretty": "^13.0.0",
116
+ "prom-client": "^15.0.0",
102
117
  "reflect-metadata": "^0.2.0",
103
118
  "rxjs": "^7.8.0"
104
119
  },
105
120
  "peerDependenciesMeta": {
121
+ "@bymax-one/nest-core": {
122
+ "optional": true
123
+ },
106
124
  "@opentelemetry/api": {
107
125
  "optional": true
108
126
  },
109
127
  "pino-pretty": {
110
128
  "optional": true
129
+ },
130
+ "prom-client": {
131
+ "optional": true
111
132
  }
112
133
  },
113
134
  "devDependencies": {
114
135
  "@arethetypeswrong/cli": "^0.18.5",
136
+ "@bymax-one/nest-core": "1.6.10",
115
137
  "@commitlint/cli": "^21.0.2",
116
138
  "@commitlint/config-conventional": "^21.0.2",
117
139
  "@eslint/js": "^9.39.4",
@@ -142,6 +164,7 @@
142
164
  "pino": "^10.0.0",
143
165
  "pino-pretty": "^13.0.0",
144
166
  "prettier": "^3.8.3",
167
+ "prom-client": "15.1.3",
145
168
  "reflect-metadata": "^0.2.2",
146
169
  "rxjs": "^7.8.0",
147
170
  "supertest": "^7.3.1",