Replies: 2 comments 1 reply
-
hi @surbhiia! IIRC |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Had a question on HttpURLConnection instrumentation - The instrumentation here does not close spans unless an exception occurs or getInputStream is called. It seems to miss a lot of other scenarios like for example:
//Example 1: No exception occurs and getInputStream is not called
URL url = new URL("http://example.com/”);
URLConnection urlConnection = url.openConnection();
Map<String, List> map = urlConnection.getHeaderFields();
// Or any other similar api’s other than getInputStream that read from connection are called
//Example 2: Post scenario
URL url = new URL("http://example/.com”);
URLConnection urlConnection = url.openConnection();
urlConnection.setDoOutput(true);
OutputStreamWriter out = new OutputStreamWriter(urlConnection.getOutputStream());
out.write("Output test content");
out.close()
Am I wrong in my understanding Or was it discussed before that this was not meant to cover all such possible scenarios?
I found a similar issue that touched this before here but my concern is more from having a complete instrumentation (that covers all possible general scenarios) perspective.
Beta Was this translation helpful? Give feedback.
All reactions