# HTTP Request details

**URL:** <https://discuss.elastic.co/t/http-request-details/327884>\
**Category:** APM\
**Tags:** java\
**Created:** [March 16, 2023, 9:11pm UTC](https://discuss.elastic.co/t/http-request-details/327884 "2023-03-16T21:11:35Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Scott\_Chapman1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/scott_chapman1/32/118292_2.png) [@Scott\_Chapman1](https://discuss.elastic.co/u/Scott_Chapman1)\
**Post date:** [March 16, 2023, 9:11pm UTC](https://discuss.elastic.co/t/http-request-details/327884/1 "2023-03-16T21:11:35Z")

</div>

I'm doing a new deployment, and playing around with the java APM agent. We are using Apache HTTPClient (supported version), and I can see that I can spans created for requests, but I don't see things like what the URL is for the request, just host, port, stuff like that. I did see I can capture the request body, but what about the rest of the URL?

---

<div class="post-metadata">

**Author:** ![Jonas\_Kunz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jonas_kunz/32/110740_2.png) [@Jonas\_Kunz](https://discuss.elastic.co/u/Jonas_Kunz)\
**Post date:** [March 20, 2023, 1:45pm UTC](https://discuss.elastic.co/t/http-request-details/327884/2 "2023-03-20T13:45:06Z")

</div>

Welcome @Scott_Chapman1 !

The URL (e.g. http path) should be captured out of the box.  
Could you provide the exact apache HTTPClient version you are using?

The elasticsearch document of the client-span and maybe a minimal code example to reproduce your problems would be very helpful aswell.

---

<div class="post-metadata">

**Author:** ![Scott\_Chapman1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/scott_chapman1/32/118292_2.png) [@Scott\_Chapman1](https://discuss.elastic.co/u/Scott_Chapman1)\
**Post date:** [March 20, 2023, 3:22pm UTC](https://discuss.elastic.co/t/http-request-details/327884/3 "2023-03-20T15:22:20Z")

</div>

I am using 4.3.3 version of the HTTPClient. When I look for information on the APM page (I am running 8.5) I see transactions for task that are run, and I see the HTTP requests in the dependencies where they are only showing me the the hostname & port.

---

<div class="post-metadata">

**Author:** ![Jonas\_Kunz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jonas_kunz/32/110740_2.png) [@Jonas\_Kunz](https://discuss.elastic.co/u/Jonas_Kunz)\
**Post date:** [March 21, 2023, 10:44am UTC](https://discuss.elastic.co/t/http-request-details/327884/4 "2023-03-21T10:44:28Z")

</div>

The dependencies tab and the service map only show the basic network connection information (host & port) as you said.

In order to see the details of outgoing HTTP requests, you need to open the details of the transactions containing the outgoing requests. There you can see the [distributed traces](https://www.elastic.co/guide/en/apm/guide/current/apm-distributed-tracing.html#visualize-distributed-tracing) for your transaction. Within those, you can click on the spans corresponding to your outgoing HTTP calls to see all the HTTP details.

---

<div class="post-metadata">

**Author:** ![Scott\_Chapman1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/scott_chapman1/32/118292_2.png) [@Scott\_Chapman1](https://discuss.elastic.co/u/Scott_Chapman1)\
**Post date:** [March 21, 2023, 2:15pm UTC](https://discuss.elastic.co/t/http-request-details/327884/5 "2023-03-21T14:15:51Z")

</div>

Ah, there we go. Is it possible for me to see transactions that contain spans that meet certain criteria? (like I want to see spans that include an HTTP request to a specific end point or that fail)

---

<div class="post-metadata">

**Author:** ![Jonas\_Kunz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jonas_kunz/32/110740_2.png) [@Jonas\_Kunz](https://discuss.elastic.co/u/Jonas_Kunz)\
**Post date:** [March 21, 2023, 2:59pm UTC](https://discuss.elastic.co/t/http-request-details/327884/6 "2023-03-21T14:59:26Z")

</div>

Unfortunately traces can currently only be searched based on transaction attributes, not on spans (which your HTTP calls are).

However, there is an experimental UI which does exactly what you want, the Trace explorer.  
You can enable it under the `Stack Management` settings as shown in the following screenshot:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/7/d/7df8ff780edda99b9b8b5a28b1a2d317f63514cc.jpeg)

This enabled the "Explorer"-Tab under the `Traces` APM UI. There you can filter traces based on span attributes:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/6/0/60287c0e9ba6bd100b2983ac2d9511c4c9476f41.png)

---

<div class="post-metadata">

**Author:** ![Scott\_Chapman1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/scott_chapman1/32/118292_2.png) [@Scott\_Chapman1](https://discuss.elastic.co/u/Scott_Chapman1)\
**Post date:** [March 21, 2023, 4:18pm UTC](https://discuss.elastic.co/t/http-request-details/327884/7 "2023-03-21T16:18:25Z")

</div>

Hmmm... I don't see that, is it new to 8.6?

---

<div class="post-metadata">

**Author:** ![Jonas\_Kunz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jonas_kunz/32/110740_2.png) [@Jonas\_Kunz](https://discuss.elastic.co/u/Jonas_Kunz)\
**Post date:** [March 22, 2023, 4:02pm UTC](https://discuss.elastic.co/t/http-request-details/327884/8 "2023-03-22T16:02:24Z")

</div>

I just checked with an 8.5.0 cluster, the setting is there. You have to navigate at the top right ("Burger") to `Management` and there click on `Stack Management` .  
This leads you to the view from my first screenshot, where you can then enable `APM Trace Explorer` after navigating to `Advanced Settings` on the left under `Kibana`.

---

<div class="post-metadata">

**Author:** ![Scott\_Chapman1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/scott_chapman1/32/118292_2.png) [@Scott\_Chapman1](https://discuss.elastic.co/u/Scott_Chapman1)\
**Post date:** [March 22, 2023, 5:05pm UTC](https://discuss.elastic.co/t/http-request-details/327884/9 "2023-03-22T17:05:54Z")

</div>

Turns out I lied; I am on 8.2, I'm going to be upgrading our operator and ES to current versions in the next day or so

---

<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:** [April 12, 2023, 1:06pm UTC](https://discuss.elastic.co/t/http-request-details/327884/10 "2023-04-12T13:06:37Z")

</div>

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