0
votes

I'm creating custom spans for outgoing requests for my java app. It works and it's great ;) But... when I compare my custom span on Kibana's APM board with other spans from springboot applications, which are created by elastic-apm-agent, then I can see that my spans are very low on additional details. I would like to have at least the URL details included in my custom span. The apm-agent-api doesn't allow this.

Is there a way to set additional details, like url, to custom span? (I don't want to use labels for this)

Thanks

1

1 Answers

1
votes

Using labels should be the best way to add custom details to the transaction/span but you can also use the addCustomContext() method:

https://www.elastic.co/guide/en/apm/agent/java/current/public-api.html#api-transaction-add-custom-context