Skip to content

Commit

Permalink
Update deprecated to use rewriteError
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelwatson93 committed Apr 16, 2019
1 parent 9fb8015 commit b18302c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/apollo-engine-reporting/src/agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export interface EngineReportingOptions<TContext> {
handleSignals?: boolean;
// Sends the trace report immediately. This options is useful for stateless environments
sendReportsImmediately?: boolean;
// (DEPRECATED; Use `maskErrorDetails instead) To remove the error message
// (DEPRECATED; Use `rewriteError` instead) To remove the error message
// from traces, set this to true. Defaults to false.
maskErrorDetails?: boolean;
// By default, all errors get reported to Engine servers. You can specify a
Expand Down Expand Up @@ -186,7 +186,7 @@ export class EngineReportingAgent<TContext = any> {
if (
this.sendReportsImmediately ||
this.reportSize >=
(this.options.maxUncompressedReportSize || 4 * 1024 * 1024)
(this.options.maxUncompressedReportSize || 4 * 1024 * 1024)
) {
this.sendReportAndReportErrors();
}
Expand Down Expand Up @@ -273,7 +273,7 @@ export class EngineReportingAgent<TContext = any> {
// redirects.
throw new Error(
`Error sending report to Apollo Engine servers (HTTP status ${
response.status
response.status
}): ${await response.text()}`,
);
}
Expand Down

0 comments on commit b18302c

Please sign in to comment.