You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 4, 2020. It is now read-only.
I'm trying to use this middleware with Nest.js framework (which normally works with Express middlewares as the core of the framework is Express).
Here is sample of my server instance bootstrap file:
`import { NestFactory } from '@nestjs/core';
import { AppModule } from './app/app.module';
// import * as metrics from 'prometheus-api-metrics';
import * as tricorder from '@trussle/tricorder';
import * as logger from 'express-bunyan-logger';
async function bootstrap() {
const app = await NestFactory.create(AppModule);
// app.use(metrics());
app.use(logger());
tricorder.instrument(app as any);
await app.listen(process.env.PORT || 3000);
}
bootstrap(); There is a type conflict as nestJs server instance has a extended Express type, but this can be dealt like this:tricorder.instrument(app as any);`
Then I'm getting this issue:
Which leads me to user your competitor prometheus-api-metrics ... (good place to check how they handling nest?)
I do prefer tricoder because https_total_requests metrics addition which is very useful.
Nest.js is very quickly growing framework so this should be worth attention.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hello,
I'm trying to use this middleware with Nest.js framework (which normally works with Express middlewares as the core of the framework is Express).
Here is sample of my server instance bootstrap file:
`import { NestFactory } from '@nestjs/core';
import { AppModule } from './app/app.module';
// import * as metrics from 'prometheus-api-metrics';
import * as tricorder from '@trussle/tricorder';
import * as logger from 'express-bunyan-logger';
async function bootstrap() {
const app = await NestFactory.create(AppModule);
// app.use(metrics());
app.use(logger());
tricorder.instrument(app as any);
await app.listen(process.env.PORT || 3000);
}
bootstrap();
There is a type conflict as nestJs server instance has a extended Express type, but this can be dealt like this:
tricorder.instrument(app as any);`Then I'm getting this issue:

Which leads me to user your competitor
prometheus-api-metrics
... (good place to check how they handling nest?)I do prefer tricoder because https_total_requests metrics addition which is very useful.
Nest.js is very quickly growing framework so this should be worth attention.
The text was updated successfully, but these errors were encountered: