Elastic apm cannot collect GRPC requests

I try the new SNAPSHOT. Here is the issue

2020-04-29T03:30:58.901970508Z java.lang.NoClassDefFoundError: io/grpc/Metadata

2020-04-29T03:30:58.902067306Z at co.elastic.apm.agent.grpc.helper.GrpcHelperImpl$GrpcHeaderGetter.getFirstHeader(GrpcHelperImpl.java:307)

2020-04-29T03:30:58.902085661Z at co.elastic.apm.agent.impl.transaction.TraceContext$3.asChildOf(TraceContext.java:131)

2020-04-29T03:30:58.902098372Z at co.elastic.apm.agent.impl.transaction.TraceContext$3.asChildOf(TraceContext.java:123)

2020-04-29T03:30:58.902557798Z at co.elastic.apm.agent.impl.transaction.Transaction.start(Transaction.java:109)

2020-04-29T03:30:58.902578106Z at co.elastic.apm.agent.impl.ElasticApmTracer.startChildTransaction(ElasticApmTracer.java:249)

2020-04-29T03:30:58.902603261Z at co.elastic.apm.agent.impl.ElasticApmTracer.startChildTransaction(ElasticApmTracer.java:227)

2020-04-29T03:30:58.902614705Z at co.elastic.apm.agent.grpc.helper.GrpcHelperImpl.startTransaction(GrpcHelperImpl.java:106)

2020-04-29T03:30:58.902624486Z at io.grpc.stub.ServerCalls$UnaryServerCallHandler.startCall(ServerCalls.java:116)

2020-04-29T03:30:58.902646062Z at io.grpc.internal.ServerImpl$ServerTransportListenerImpl.startWrappedCall(ServerImpl.java:560)

2020-04-29T03:30:58.902660515Z at io.grpc.internal.ServerImpl$ServerTransportListenerImpl.startCall(ServerImpl.java:541)

2020-04-29T03:30:58.902672347Z at io.grpc.internal.ServerImpl$ServerTransportListenerImpl.access$1800(ServerImpl.java:361)

2020-04-29T03:30:58.90268329Z at io.grpc.internal.ServerImpl$ServerTransportListenerImpl$1StreamCreated.runInContext(ServerImpl.java:477)

2020-04-29T03:30:58.902695193Z at io.grpc.internal.ContextRunnable.run(ContextRunnable.java:37)

2020-04-29T03:30:58.90278821Z at io.grpc.internal.SerializingExecutor.run(SerializingExecutor.java:123)

2020-04-29T03:30:58.902808115Z at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

2020-04-29T03:30:58.902821037Z at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

2020-04-29T03:30:58.902846355Z at java.lang.Thread.run(Thread.java:748)


I noticed that you have discovered this problem. Is there a way to solve it?