Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix httpurlconnection inst #885

Merged
merged 10 commits into from
Jul 5, 2022
Merged

Fix httpurlconnection inst #885

merged 10 commits into from
Jul 5, 2022

Conversation

jasonjkeller
Copy link
Contributor

@jasonjkeller jasonjkeller commented Jun 16, 2022

Updates the httpurlconnection instrumentation to use the newer reportAsExternal and distributed tracing APIs. The external call span now correctly is marked as external in distributed traces and contains the expected http.* attributes.

Fixes #387

The external AIT will pass once this PR is merged: https://github.com/newrelic/java-agent-integration-tests/pull/55

distributed-trace

Copy link
Contributor

@twcrone twcrone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. If possible I would like to talk through it next week perhaps.

@jasonjkeller
Copy link
Contributor Author

Here's an example of one instrumented service service making an external call to another instrumented service using the HttpURLConnection client. The second service then makes an external call to an uninstrumented domain, also using the HttpURLConnection client.

Screen Shot 2022-07-05 at 2 56 27 PM

@jasonjkeller jasonjkeller merged commit 86a28f9 into main Jul 5, 2022
@jasonjkeller jasonjkeller deleted the fix-httpurlconnection-inst branch July 5, 2022 22:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

HttpURLConnection instrumentation does not mark trace as external
2 participants