maduabuchi
04/20/2022, 4:09 PMsrc/public/utils/redis.ts:15:40 - error TS2769: No overload matches this call.
#11 37.34 The last overload gave the following error.
#11 37.34 Argument of type '{ host: string; port: string; }' is not assignable to parameter of type 'ClientOpts'.
#11 37.34 Types of property 'port' are incompatible.
#11 37.34 Type 'string' is not assignable to type 'number'.
#11 37.34
#11 37.34 15 const redisClient = redis.createClient(redisClientConfig);
each time I try to start the applicationPranay
Prashant Shahi
04/20/2022, 6:42 PMport
is set as string
, it is required to be of type number
For example:
const redisClientConfig: redis.ClientOpts = {
host: '127.0.0.1',
port: 6379
};
maduabuchi
04/20/2022, 6:46 PM@opentelemetry/api
• @opentelemetry/auto-instrumentations-node
• @opentelemetry/exporter-otlp-grpc
• @opentelemetry/sdk-node
@opentelemetry/api
• @opentelemetry/auto-instrumentations-node
• @opentelemetry/exporter-otlp-grpc
• @opentelemetry/sdk-node
then I created a tracing.js page and added the instrumentation codePrashant Shahi
04/21/2022, 10:08 AM