Java Agent grpc not working

Kibana version: v7.6.2

Elasticsearch version: v7.6.2

APM Server version: v7.6.2

APM Agent language and version: Java version 1.15

Fresh install or upgraded from other version? Fresh. Just started making sense of things.

Description of the problem including expected versus actual behavior. Please include screenshots (if relevant):
So my issue is that I don't get any traces over grpc. I added 3 microservices to APM and did some calls to my HTTP Api Gateway, but it does not detect or do anything smart when the grpc calls are made.

I saw that grpc support was added fairly recently, but I don't know if I need to enable the plugin or anything like that?

I am using this spring boot library for grpc:

Client:

        <dependency>
            <groupId>net.devh</groupId>
            <artifactId>grpc-client-spring-boot-starter</artifactId>
            <version>2.4.0.RELEASE</version>
        </dependency>

Server:

        <dependency>
            <groupId>net.devh</groupId>
            <artifactId>grpc-spring-boot-starter</artifactId>
            <version>2.4.0.RELEASE</version>
        </dependency>

In the microservice where I don't get any tracing I don't see anything happening in the logs either, just the config checking

2020-04-06 23:31:57.076 [elastic-apm-remote-config-poller] DEBUG co.elastic.apm.agent.configuration.ApmServerConfigurationSource - Configuration did not change
2020-04-06 23:31:57.076 [elastic-apm-remote-config-poller] DEBUG co.elastic.apm.agent.configuration.ApmServerConfigurationSource - Scheduling next remote configuration reload in 30s
2020-04-06 23:32:05.443 [elastic-apm-request-timeout-timer] DEBUG co.elastic.apm.agent.report.IntakeV2ReportingEventHandler - Request flush because the request timeout occurred
2020-04-06 23:32:05.448 [elastic-apm-server-reporter] DEBUG co.elastic.apm.agent.report.IntakeV2ReportingEventHandler - Receiving FLUSH event (sequence 17)
2020-04-06 23:32:05.451 [elastic-apm-server-reporter] DEBUG co.elastic.apm.agent.report.IntakeV2ReportingEventHandler - Flushing 1619 uncompressed 719 compressed bytes
2020-04-06 23:32:24.900 [elastic-apm-configuration-reloader] DEBUG co.elastic.apm.agent.impl.ElasticApmTracerBuilder - Beginning scheduled configuration reload (interval is 30 sec)...
2020-04-06 23:32:24.901 [elastic-apm-configuration-reloader] DEBUG co.elastic.apm.agent.impl.ElasticApmTracerBuilder - Finished scheduled configuration reload
2020-04-06 23:32:25.401 [elastic-apm-server-reporter] DEBUG co.elastic.apm.agent.report.IntakeV2ReportingEventHandler - Receiving METRICS event (sequence 18)
2020-04-06 23:32:25.401 [elastic-apm-server-reporter] DEBUG co.elastic.apm.agent.report.IntakeV2ReportingEventHandler - Starting new request to REDACTED
2020-04-06 23:32:25.419 [elastic-apm-server-reporter] DEBUG co.elastic.apm.agent.report.IntakeV2ReportingEventHandler - Scheduling request timeout in 10s
2020-04-06 23:32:27.077 [elastic-apm-remote-config-poller] DEBUG co.elastic.apm.agent.configuration.ApmServerConfigurationSource - Reloading configuration from APM Server REDACTED

Hi and welcome to the forum :wave:

Grpc support is supposed to work out-of-the-box.
Could you upload your full debug logs?

Hi @Gjermund_Bjaanes,

There was a couple of issues that made gRPC plugin not working as expected.
It's now fixed in latest snapshot, but not released yet.

You can download a copy of updated agent here : https://oss.sonatype.org/service/local/artifact/maven/redirect?r=snapshots&g=co.elastic.apm&a=elastic-apm-agent&v=LATEST

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