# Java Agent grpc not working

**URL:** <https://discuss.elastic.co/t/java-agent-grpc-not-working/226795>\
**Category:** APM\
**Tags:** java\
**Created:** [April 6, 2020, 11:01pm UTC](https://discuss.elastic.co/t/java-agent-grpc-not-working/226795 "2020-04-06T23:01:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gjermund\_Bjaanes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gjermund_bjaanes/32/65774_2.png) [@Gjermund\_Bjaanes](https://discuss.elastic.co/u/Gjermund_Bjaanes)\
**Post date:** [April 6, 2020, 11:01pm UTC](https://discuss.elastic.co/t/java-agent-grpc-not-working/226795/1 "2020-04-06T23:01:36Z")

</div>

**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:

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

```

Server:

```auto
        <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

```auto
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

```

---

<div class="post-metadata">

**Author:** ![felixbarny](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/felixbarny/32/27341_2.png) [@felixbarny](https://discuss.elastic.co/u/felixbarny)\
**Post date:** [April 15, 2020, 9:01am UTC](https://discuss.elastic.co/t/java-agent-grpc-not-working/226795/2 "2020-04-15T09:01:01Z")

</div>

Hi and welcome to the forum 👋

Grpc support is supposed to work out-of-the-box.  
Could you upload your [full debug logs](https://www.elastic.co/guide/en/apm/agent/java/current/trouble-shooting.html)?

---

<div class="post-metadata">

**Author:** ![Sylvain\_Juge](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sylvain_juge/32/55521_2.png) [@Sylvain\_Juge](https://discuss.elastic.co/u/Sylvain_Juge)\
**Post date:** [April 29, 2020, 4:25pm UTC](https://discuss.elastic.co/t/java-agent-grpc-not-working/226795/3 "2020-04-29T16:25:38Z")

</div>

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](https://oss.sonatype.org/service/local/artifact/maven/redirect?r=snapshots&g=co.elastic.apm&a=elastic-apm-agent&v=LATEST)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 20, 2020, 12:25pm UTC](https://discuss.elastic.co/t/java-agent-grpc-not-working/226795/4 "2020-05-20T12:25:39Z")

</div>

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