mirror of
https://github.com/apricote/Listory.git
synced 2026-01-13 21:21:02 +00:00
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:
parent
7983df1af6
commit
99cc06bbbc
5 changed files with 3540 additions and 4039 deletions
|
|
@ -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
|
||||
},
|
||||
},
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ const anyEnabled = metricsEnabled || tracesEnabled;
|
|||
let sdkOptions: Partial<NodeSDKConfiguration> = {};
|
||||
|
||||
if (metricsEnabled) {
|
||||
sdkOptions.metricExporter = new PrometheusExporter();
|
||||
sdkOptions.metricReader = new PrometheusExporter();
|
||||
}
|
||||
|
||||
if (tracesEnabled) {
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue