Java - Request and response data missing when Annotations or using apm-agent-api

Kibana version: 6.7.0

Elasticsearch version: 6.7.0

APM Server version: 6.7.0

APM Agent language and version: Java, 1.5.0

Browser version: Mozilla firefox

Original install method (e.g. download page, yum, deb, from source, etc.) and version: Elastico deployment

Fresh install or upgraded from other version?: Fresh install

Description of the problem including expected versus actual behavior. Please include screenshots (if relevant): In a spring boot project (version 2.0.4.RELEASE), the request and response data from a transaction disappear when using annotations (@CaptureTransaction) or creating it manually :
Transaction transaction = ElasticApm.startTransactionWithRemoteParent(key -> request.getHeader(key));
try (final Scope scope = transaction.activate()) {
String name = "Controller#test";
transaction.setName(name);
transaction.setType(Transaction.TYPE_REQUEST);
....
} catch (Exception e) {
transaction.captureException(e);
throw e;
} finally {
transaction.end();
}

imagen

Transaction made by automatic instrumentation:


Steps to reproduce:

How can I fill request/response data or make it appear.

Thanks

Hi and welcome to the forum :tada:

This is currently not possible with the API, unfortunately. There is https://github.com/elastic/apm-agent-java/issues/433 which you can upvote. Other than that, you can currently only use tags.

Hi Felix,

Ok, thank you very much for your quick response.

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