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 graphql-mobile-requests.mdx #15856

Merged
merged 1 commit into from
Jan 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ To custom name your GraphQL requests, you'll need to:

1. Identify the network request URL. For example, this could be a request related to a customer checkout process with the URL `https://www.YOUR_MOBILE_APP.com/checkout`.

2. Use the `addHTTPHeadersTracking method` to set the `X-APOLLO-OPERATION-NAME` header for the identified request. For example, requests related to the customer checkout process could be named `checkout`. The name must meet the following requirements:
2. Use the `addHTTPHeaderTracking method` to set the `X-APOLLO-OPERATION-NAME` header for the identified request. For example, requests related to the customer checkout process could be named `checkout`. The name must meet the following requirements:

* Length: Be a string between 1 and 1024 characters.
* Characters: Consist exclusively of [ASCII characters](https://www.ascii-code.com/characters).
Expand All @@ -57,7 +57,7 @@ Follow the platform-specific instructions below:
1. When you start the agent, add the `operationName` header:

```objectivec
[NewRelic addHTTPHeadersTrackingFor:@[@"operationName"]];
[NewRelic addHTTPHeaderTrackingFor:@[@"operationName"]];
```

2. In the GraphQL HTTP request header, add your request URL and custom name:
Expand All @@ -81,7 +81,7 @@ Follow the platform-specific instructions below:
```java
List<String> headers = new ArrayList<>();
headers.add("operationName");
NewRelic.addHTTPHeadersTrackingFor(headers);
NewRelic.addHTTPHeaderTrackingFor(headers);
```

2. In the GraphQL HTTP request header, add your request URL and custom name:
Expand All @@ -105,7 +105,7 @@ Follow the platform-specific instructions below:
val headers = mutableListOf<String>()
headers.add("operationName")

NewRelic.addHTTPHeadersTrackingFor(headers);
NewRelic.addHTTPHeaderTrackingFor(headers);
```

2. In the GraphQL HTTP request header, add your request URL and custom name:
Expand Down Expand Up @@ -162,4 +162,4 @@ Now that you're looking at just your GraphQL requests, click into a specific req
title="Request details"
alt="Screenshot of clicking into a specific request"
src={mobileRequestDetails}
/>
/>