Skip to content

Commit

Permalink
chore: code in backticks, format graphql
Browse files Browse the repository at this point in the history
  • Loading branch information
brnhensley authored Feb 21, 2025
1 parent 482fb33 commit 90183c3
Showing 1 changed file with 16 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ This guide covers the major changes between the 7.x and 8.x series of the Java a

## Changed and removed transaction and span attributes [#changed_and_removed_attributes]

To provide consistency across our APM agents and better align with industry standards, we changed transaction and span attributes in the Java agent. Starting in Java agent version 7.6.0, we introduced the new standard attributes <DNT>**http.statusCode**</DNT> and <DNT>**http.statusText**</DNT> and marked <DNT>**httpResponseCode**</DNT>, <DNT>**response.status**</DNT>, and <DNT>**response.statusMessage**</DNT> as deprecated.
To provide consistency across our APM agents and better align with industry standards, we changed transaction and span attributes in the Java agent. Starting in Java agent version 7.6.0, we introduced the new standard attributes `http.statusCode` and `http.statusText` and marked `httpResponseCode`, `response.status`, and `response.statusMessage` as deprecated.

| Deprecated Attribute | New Attribute | Data Type Change |
| ------------------------------------- | ------------------------------ | ---------------------------- |
| <DNT>**httpResponseCode**</DNT> | <DNT>**http.statusCode**</DNT> | <DNT>**String to INT**</DNT> |
| <DNT>**response.status**</DNT> | <DNT>**http.statusCode**</DNT> | <DNT>**String to INT**</DNT> |
| <DNT>**response.statusMessage**</DNT> | <DNT>**http.statusText**</DNT> | <DNT>**N/A**</DNT> |
| Deprecated Attribute | New Attribute | Data Type Change |
| ------------------------ | ----------------- | ---------------------------- |
| `httpResponseCode` | `http.statusCode` | <DNT>**String to INT**</DNT> |
| `response.status` | `http.statusCode` | <DNT>**String to INT**</DNT> |
| `response.statusMessage` | `http.statusText` | <DNT>**N/A**</DNT> |

## Recommended Actions

Expand All @@ -39,15 +39,15 @@ To find and fix impacted alerts:

1. Use the [NerdGraph Explorer](https://one.newrelic.com/nerdgraph-graphiql) and search for alerts using the `queryLike` operator for each attribute you are looking for. For example:

```
```graphql
{
actor {
user {
name
}
account(id: <ACCOUNTID>) {
account(id: ACCOUNT_ID) {
alerts {
nrqlConditionsSearch(searchCriteria: {queryLike: "httpResponseCode"}) {
nrqlConditionsSearch(searchCriteria: { queryLike: "httpResponseCode" }) {
nrqlConditions {
nrql {
query
Expand Down Expand Up @@ -75,10 +75,10 @@ To find the impacted queries for a dashboard:

1. Using the NerdGraph Explorer and the entity guid located in the metadata of a dashboard, you can get all the NRQL queries for a dashboard.

```
{
```graphql
{
actor {
entity(guid: "[ENTITY GUID]") {
entity(guid: "ENTITY_GUID") {
... on DashboardEntity {
guid
name
Expand All @@ -99,8 +99,8 @@ To find the impacted queries for a dashboard:

You can also get the list of entity guids for all dashboards with the following query:

```
{
```graphql
{
actor {
entitySearch(query: "domain IN ('VIZ')") {
results {
Expand All @@ -116,15 +116,15 @@ You can also get the list of entity guids for all dashboards with the following

### Fixing impacted alerts and dashboards NRQL statements [#fixing_nrql]

<DNT>**http.statusCode**</DNT> would replace references to either <DNT>**httpResponseCode**</DNT> or <DNT>**response.status**</DNT>, which also has a different data type. Previously you would have used a reference like:
`http.statusCode` would replace references to either `httpResponseCode` or `response.status`, which also has a different data type. Previously you would have used a reference like:

`[...] WHERE (Numeric(response.status)\>399 [...]`

to convert the string datatype to a number. You no longer need to do this and can instead use simple numeric operations such as:

`[...] WHERE (http.statusCode \>399) [...]`

<DNT>**http.statusText**</DNT> would replace references to <DNT>**response.statusMessage**</DNT>. The data type for this attribute has not changed.
`http.statusText` would replace references to `response.statusMessage`. The data type for this attribute has not changed.

## Removed instrumentation [#removed_instrumentation]

Expand Down

0 comments on commit 90183c3

Please sign in to comment.