Does node APM agent supports grpc framework

I am trying to integrate elastic apm in my node application, we are using express for http endpoints and grpc for service to service communication. I am able to see transactions for http calls but there is no transaction for grpc calls. Kindly let me know if grpc is supported and if so how can I troubleshoot this.

@vinodmb Currently, no, the Node.js APM agent does not directly support any gRPC node packages. Would you mind adding a note to support grpc? · Issue #300 · elastic/apm-agent-nodejs · GitHub mentioning which gRPC node package(s) you are using, and if you are most interesting in gRPC client or server (or both) support?

gRPC support is on our radar but not something that is currently scheduled.

Note as well that there is Transiting traceparent over custom transports · Issue #978 · elastic/apm-agent-nodejs · GitHub which has some discussion, code, and a possible work-around for the short term.

@trentm thanks for the reply... i went through Issue #978 and also document on apm.addPatch to implement for grpc module. But from the document its not clear on the handler( patch function) part. Could you kindly guide me if there is any other example for the same.

Unfortunately, no. apm.addPatch() is very low-level. Probably the best resource for how to write those handlers is all the instrumentations that are part of the agent itself: apm-agent-nodejs/lib/instrumentation/modules at main · elastic/apm-agent-nodejs · GitHub

Each of the .js files under this directory implement an addPatch handler.

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.