chore(deps): upgrade to NestJS 9

chore(deps): update dependency nestjs-otel to v4
chore(deps): update opentelemetry-js monorepo
This commit is contained in:
Julian Tölle 2022-07-12 20:33:10 +02:00
parent 7983df1af6
commit 99cc06bbbc
5 changed files with 3540 additions and 4039 deletions

View file

@ -8,10 +8,8 @@ import { UrlValueParserService } from "./url-value-parser.service";
UpstreamModule.forRoot({
metrics: {
hostMetrics: true, // Includes Host Metrics
defaultMetrics: true, // Includes Default Metrics
apiMetrics: {
enable: true, // Includes api metrics
timeBuckets: [], // You can change the default time buckets
ignoreUndefinedRoutes: false, //Records metrics for all URLs, even undefined ones
},
},

View file

@ -21,7 +21,7 @@ const anyEnabled = metricsEnabled || tracesEnabled;
let sdkOptions: Partial<NodeSDKConfiguration> = {};
if (metricsEnabled) {
sdkOptions.metricExporter = new PrometheusExporter();
sdkOptions.metricReader = new PrometheusExporter();
}
if (tracesEnabled) {

View file

@ -42,7 +42,7 @@ export class MetricsInterceptor extends AxiosInterceptor<SpotifyApiMetricsConfig
{
description:
"HTTP latency value recorder in seconds for requests made to Spotify API",
boundaries: [0.025, 0.05, 0.1, 0.25, 0.5, 1, 2.5, 5, 10],
unit: "seconds",
}
);
}