-
Notifications
You must be signed in to change notification settings - Fork 144
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
Update http Response code attribute names #513
Conversation
854f3ce
to
fc659c0
Compare
Creates a new constructor that receives the Builder, so no changes on the constructor are needed when Builder is updated
fc659c0
to
8ca9fa4
Compare
instrumentation-test/src/main/java/com/newrelic/agent/introspec/ExternalRequest.java
Show resolved
Hide resolved
...umentation-test/src/main/java/com/newrelic/agent/introspec/internal/ExternalRequestImpl.java
Outdated
Show resolved
Hide resolved
} | ||
|
||
@Test | ||
public void testGetBucketLocation() { | ||
createBucketNoTxn(); | ||
getBucketLocation(); | ||
assertMetrics("getBucketLocation"); | ||
assertMetrics("getBucketLocation", 200); | ||
} | ||
|
||
// This test passes but it consistently takes 60s to complete |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So do we ever uncomment and run this test or should it go?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can uncomment it now that we have GE.
...-4/src/main/java/org/apache/http/nio/protocol/HttpAsyncResponseConsumer_Instrumentation.java
Outdated
Show resolved
Hide resolved
...tp-client-1.0/src/main/java/com/nr/agent/instrumentation/asynchttpclient/NRAsyncHandler.java
Outdated
Show resolved
Hide resolved
@@ -151,6 +153,8 @@ public void testCat() throws Exception { | |||
ExternalRequest externalRequest = externalRequests.iterator().next(); | |||
assertEquals(1, externalRequest.getCount()); | |||
assertEquals(host, externalRequest.getHostname()); | |||
assertEquals(Integer.valueOf(200), externalRequest.getStatusCode()); | |||
assertEquals("OK ", externalRequest.getStatusText()); // the test server does return the trailing space, this client does not trim it |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are good examples of comments on the "Why".
Overview
This adds the
http.statusCode
andhttp.statusText
to spans and transactions.Related Github Issue
#225
Checks
[y] Are your contributions backwards compatible with relevant frameworks and APIs?
[n] Does your code contain any breaking changes? Please describe.
[n] Does your code introduce any new dependencies? Please describe.