@openapi-typescript-infra/service 6.0.0 → 6.1.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/build/express-app/app.js +3 -1
- package/build/express-app/app.js.map +1 -1
- package/build/telemetry/instrumentations.d.ts +2 -2
- package/build/telemetry/instrumentations.js +2 -2
- package/build/telemetry/instrumentations.js.map +1 -1
- package/build/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/express-app/app.ts +3 -1
- package/src/telemetry/instrumentations.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openapi-typescript-infra/service",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.1.0",
|
|
4
4
|
"description": "An opinionated framework for building configuration driven services - web, api, or ob. Uses OpenAPI, pino logging, express, confit, Typescript and vitest.",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -77,10 +77,10 @@
|
|
|
77
77
|
"@opentelemetry/instrumentation-generic-pool": "^0.51.0",
|
|
78
78
|
"@opentelemetry/instrumentation-graphql": "^0.55.0",
|
|
79
79
|
"@opentelemetry/instrumentation-http": "^0.207.0",
|
|
80
|
-
"@opentelemetry/instrumentation-ioredis": "^0.55.0",
|
|
81
80
|
"@opentelemetry/instrumentation-net": "^0.51.0",
|
|
82
81
|
"@opentelemetry/instrumentation-pg": "^0.60.0",
|
|
83
82
|
"@opentelemetry/instrumentation-pino": "^0.54.0",
|
|
83
|
+
"@opentelemetry/instrumentation-redis": "^0.56.0",
|
|
84
84
|
"@opentelemetry/instrumentation-undici": "^0.18.0",
|
|
85
85
|
"@opentelemetry/resource-detector-container": "^0.7.10",
|
|
86
86
|
"@opentelemetry/resource-detector-gcp": "^0.42.0",
|
package/src/express-app/app.ts
CHANGED
|
@@ -380,7 +380,9 @@ export async function listen<SLocals extends AnyServiceLocals = ServiceLocals<Co
|
|
|
380
380
|
shutdownInProgress = true;
|
|
381
381
|
app.locals.logger.info('Shutdown requested');
|
|
382
382
|
if (app.locals.internalApp) {
|
|
383
|
-
app.locals.internalApp.locals.server?.
|
|
383
|
+
if (app.locals.internalApp.locals.server?.listening) {
|
|
384
|
+
app.locals.internalApp.locals.server?.close();
|
|
385
|
+
}
|
|
384
386
|
}
|
|
385
387
|
shutdownApp(app);
|
|
386
388
|
}
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
HttpInstrumentation,
|
|
8
8
|
IgnoreIncomingRequestFunction,
|
|
9
9
|
} from '@opentelemetry/instrumentation-http';
|
|
10
|
-
import {
|
|
10
|
+
import { RedisInstrumentation } from '@opentelemetry/instrumentation-redis';
|
|
11
11
|
import { NetInstrumentation } from '@opentelemetry/instrumentation-net';
|
|
12
12
|
import { GraphQLInstrumentation } from '@opentelemetry/instrumentation-graphql';
|
|
13
13
|
import { PgInstrumentation } from '@opentelemetry/instrumentation-pg';
|
|
@@ -20,7 +20,7 @@ const InstrumentationMap = {
|
|
|
20
20
|
'@opentelemetry/instrumentation-graphql': GraphQLInstrumentation,
|
|
21
21
|
'@opentelemetry/instrumentation-undici': UndiciInstrumentation,
|
|
22
22
|
'@opentelemetry/instrumentation-generic-pool': GenericPoolInstrumentation,
|
|
23
|
-
'@opentelemetry/instrumentation-
|
|
23
|
+
'@opentelemetry/instrumentation-redis': RedisInstrumentation,
|
|
24
24
|
'@opentelemetry/instrumentation-net': NetInstrumentation,
|
|
25
25
|
'@opentelemetry/instrumentation-pg': PgInstrumentation,
|
|
26
26
|
'@opentelemetry/instrumentation-pino': PinoInstrumentation,
|