feat(api): metrics for Spotify API http requests

This will help evaluate how much we are being rate limited, and on what
routes it happens most.
This commit is contained in:
Julian Tölle 2022-06-29 19:58:01 +02:00
parent 85c31705ef
commit 41dfae3c50
7 changed files with 229 additions and 3 deletions

View file

@ -26,6 +26,7 @@
},
"dependencies": {
"@hapi/joi": "17.1.1",
"@narando/nest-axios-interceptor": "2.1.0",
"@nestjs/axios": "0.0.8",
"@nestjs/common": "8.4.7",
"@nestjs/config": "2.1.0",
@ -39,6 +40,7 @@
"@nestjs/terminus": "8.1.0",
"@nestjs/typeorm": "8.1.4",
"@opentelemetry/api": "1.0.4",
"@opentelemetry/api-metrics": "0.27.0",
"@opentelemetry/context-async-hooks": "1.0.1",
"@opentelemetry/exporter-prometheus": "0.27.0",
"@opentelemetry/exporter-trace-otlp-http": "0.27.0",