Skip to content

Commit

Permalink
Backport #7107 (docs: document new usage reporting option)
Browse files Browse the repository at this point in the history
  • Loading branch information
glasser committed Oct 31, 2022
1 parent f519e1d commit 40fcd3d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
16 changes: 16 additions & 0 deletions docs/source/api/plugin/usage-reporting.md
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,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
Original file line number Diff line number Diff line change
Expand Up @@ -259,9 +259,9 @@ export interface ApolloServerPluginUsageReportingOptions<TContext> {
*/
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 40fcd3d

Please sign in to comment.