Skip to content

Commit

Permalink
docs: document new usage reporting option (#7107)
Browse files Browse the repository at this point in the history
Also tweak a comment.
  • Loading branch information
glasser authored Oct 31, 2022
1 parent fae90e7 commit 57012d5
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .changeset/quick-ghosts-reply.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
16 changes: 16 additions & 0 deletions docs/source/api/plugin/usage-reporting.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,22 @@ The default value is `100`.
<tr>
<td>

###### `requestTimeoutMs`

`number`
</td>
<td>

Timeout for each individual attempt to send a report to Apollo. (This is for
each HTTP POST, not for all potential retries.)

The default value is `30000` (30 seconds).
</td>
</tr>

<tr>
<td>

###### `logger`

[`Logger`](https://www.npmjs.com/package/@apollo/utils.logger)
Expand Down
6 changes: 3 additions & 3 deletions packages/server/src/plugin/usageReporting/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -326,9 +326,9 @@ export interface ApolloServerPluginUsageReportingOptions<
*/
minimumRetryDelayMs?: number;
/**
* Default timeout for each individual attempt to send a report to Apollo.
* (This is for each HTTP POST, not for all potential retries.) Defaults to 30
* seconds (30000ms).
* Timeout for each individual attempt to send a report to Apollo. (This is
* for each HTTP POST, not for all potential retries.) Defaults to 30 seconds
* (30000ms).
*/
requestTimeoutMs?: number;
/**
Expand Down

0 comments on commit 57012d5

Please sign in to comment.