fix(deps): update typescript-projects (#32759)
Co-authored-by: Daniel Dietzler <mail@ddietzler.dev> (cherry picked from commit f26b9c83adb12848e94bcfc77e1b67be1756bdc9)
This commit is contained in:
+7
-7
@@ -50,16 +50,16 @@
|
||||
"@nestjs/schedule": "^12.0.1",
|
||||
"@nestjs/swagger": "^12.0.0",
|
||||
"@nestjs/websockets": "^12.0.0",
|
||||
"@opentelemetry/api": "^1.9.0",
|
||||
"@opentelemetry/api": "^1.10.0",
|
||||
"@opentelemetry/context-async-hooks": "^3.0.0",
|
||||
"@opentelemetry/exporter-prometheus": "^0.223.0",
|
||||
"@opentelemetry/instrumentation-http": "^0.223.0",
|
||||
"@opentelemetry/instrumentation-ioredis": "^0.71.0",
|
||||
"@opentelemetry/instrumentation-nestjs-core": "^0.70.0",
|
||||
"@opentelemetry/instrumentation-pg": "^0.76.0",
|
||||
"@opentelemetry/exporter-prometheus": "^0.300.0",
|
||||
"@opentelemetry/instrumentation-http": "^0.300.0",
|
||||
"@opentelemetry/instrumentation-ioredis": "^0.72.0",
|
||||
"@opentelemetry/instrumentation-nestjs-core": "^0.71.0",
|
||||
"@opentelemetry/instrumentation-pg": "^0.77.0",
|
||||
"@opentelemetry/resources": "^3.0.0",
|
||||
"@opentelemetry/sdk-metrics": "^3.0.0",
|
||||
"@opentelemetry/sdk-node": "^0.223.0",
|
||||
"@opentelemetry/sdk-node": "^0.300.0",
|
||||
"@opentelemetry/semantic-conventions": "^1.34.0",
|
||||
"@simplewebauthn/server": "14.0.3",
|
||||
"@socket.io/redis-adapter": "^8.3.0",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { Injectable } from '@nestjs/common';
|
||||
import { Reflector } from '@nestjs/core';
|
||||
import { MetricOptions } from '@opentelemetry/api';
|
||||
import { MetricOptions, ValueType } from '@opentelemetry/api';
|
||||
import { AsyncLocalStorageContextManager } from '@opentelemetry/context-async-hooks';
|
||||
import { PrometheusExporter } from '@opentelemetry/exporter-prometheus';
|
||||
import { HttpInstrumentation } from '@opentelemetry/instrumentation-http';
|
||||
@@ -9,7 +9,7 @@ import { NestInstrumentation } from '@opentelemetry/instrumentation-nestjs-core'
|
||||
import { PgInstrumentation } from '@opentelemetry/instrumentation-pg';
|
||||
import { resourceFromAttributes } from '@opentelemetry/resources';
|
||||
import { AggregationType } from '@opentelemetry/sdk-metrics';
|
||||
import { NodeSDK, contextBase } from '@opentelemetry/sdk-node';
|
||||
import { NodeSDK } from '@opentelemetry/sdk-node';
|
||||
import { ATTR_SERVICE_NAME, ATTR_SERVICE_VERSION } from '@opentelemetry/semantic-conventions';
|
||||
import { snakeCase, startCase } from 'lodash-es';
|
||||
import { MetricService } from 'nestjs-otel';
|
||||
@@ -68,7 +68,7 @@ export const bootstrapTelemetry = (port: number) => {
|
||||
[ATTR_SERVICE_NAME]: `immich`,
|
||||
[ATTR_SERVICE_VERSION]: serverVersion.toString(),
|
||||
}),
|
||||
metricReader: new PrometheusExporter({ port }),
|
||||
metricReaders: [new PrometheusExporter({ port })],
|
||||
contextManager: new AsyncLocalStorageContextManager(),
|
||||
instrumentations: [
|
||||
new HttpInstrumentation({
|
||||
@@ -162,7 +162,7 @@ export class TelemetryRepository {
|
||||
prefix: 'immich',
|
||||
description: `The elapsed time in ${unit} for the ${startCase(className)} to ${propertyName.toLowerCase()}`,
|
||||
unit,
|
||||
valueType: contextBase.ValueType.DOUBLE,
|
||||
valueType: ValueType.DOUBLE,
|
||||
});
|
||||
|
||||
descriptor.value = function (...args: any[]) {
|
||||
|
||||
Reference in New Issue
Block a user