Open iseekyouu opened 11 months ago
Also i tried get yours test middleware
export function createTestServerMiddleware<Ext>(
contextExt: Ext,
actions: any[],
actionTypePrefix = '',
): ServerMiddleware<Ext> {
and put it into my server
this.grpcServer.use(createTestServerMiddleware(
{ test1: 'test-value-1' },
actions,
'middleware1-',
));
after that done some calls throught BloomRPC and actions array still empty
The server.use
method does not mutate the server instance, but creates a new instance with the middleware attached.
Try to change this:
this.grpcServer.use(prometheusServerMiddleware());
to this:
this.grpcServer = this.grpcServer.use(prometheusServerMiddleware());
trying to implement prometheus-middlewares and got nothing
//server
// metrics endpoint
after that i called my rpc with BloomRPC and got nothing in metrics