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

Update http Response code attribute names #513

Merged
merged 16 commits into from
Nov 17, 2021
Merged

Conversation

meiao
Copy link
Contributor

@meiao meiao commented Oct 26, 2021

Overview

This adds the http.statusCode and http.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.

@meiao meiao changed the title Aonuki/http status code Update http Response code attribute names Oct 26, 2021
@meiao meiao marked this pull request as ready for review November 4, 2021 16:30
}

@Test
public void testGetBucketLocation() {
createBucketNoTxn();
getBucketLocation();
assertMetrics("getBucketLocation");
assertMetrics("getBucketLocation", 200);
}

// This test passes but it consistently takes 60s to complete
Copy link
Contributor

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?

Copy link
Contributor Author

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.

@@ -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
Copy link
Contributor

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".

@jasonjkeller jasonjkeller merged commit bf6cb39 into main Nov 17, 2021
@jasonjkeller jasonjkeller deleted the aonuki/http-status-code branch November 17, 2021 18:11
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.

3 participants