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

NEWRELIC-4831 Clean up deprecated attributes #1125

Merged
merged 3 commits into from
Jan 23, 2023

Conversation

jtduffy
Copy link
Contributor

@jtduffy jtduffy commented Jan 20, 2023

Overview

Remove deprecated attributes: httpResponseCode, httpResponseMessage

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.

* when the ServerStream is closed or cancelled.
*
* @param status The {@link Status} of the completed/cancelled operation
*/
public static void setServerStreamResponseStatus(Status status) {
if (status != null) {
NewRelic.addCustomParameter("response.status", status.getCode().value());
NewRelic.addCustomParameter("http.statusCode", status.getCode().value());
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice catch. This instrumentation module was around the same time the attribute name change happened, but the author did not notice that.

@jtduffy jtduffy merged commit 4e36bc5 into main Jan 23, 2023
@jtduffy jtduffy deleted the NEWRELIC-4831-remove-http-attributes branch January 23, 2023 18:31
meiao added a commit that referenced this pull request Dec 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants