Skip to content

Commit

Permalink
Add colons back into sendErrorsInTraces
Browse files Browse the repository at this point in the history
  • Loading branch information
rkoron007 committed Aug 17, 2022
1 parent 89a763c commit 199f88e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/source/data/errors.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ new ApolloServer({
ApolloServerPluginUsageReporting({
// If you pass unmodified: true to the usage reporting
// plugin, Apollo Studio receives ALL error details
sendErrorsInTraces { unmodified: true },
sendErrorsInTraces: { unmodified: true },
}),
],
});
Expand All @@ -460,7 +460,7 @@ new ApolloServer({
// etc.
plugins: [
ApolloServerPluginUsageReporting({
sendErrorsInTraces {
sendErrorsInTraces: {
transform: (err) => {
if (err.extensions.code === 'MY_CUSTOM_CODE') {
// returning null will skip reporting this error
Expand Down
4 changes: 2 additions & 2 deletions docs/source/migration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -955,7 +955,7 @@ you can now write:
// monoliths
new ApolloServer({
plugins: [ApolloServerPluginUsageReporting({
sendErrorsInTraces { transform: rewriteError },
sendErrorsInTraces: { transform: rewriteError },
})],
// ...
})
Expand Down Expand Up @@ -1592,7 +1592,7 @@ To restore the Apollo Server 3 behavior, you can pass `{ unmodified: true }` to
// monoliths
new ApolloServer({
plugins: [ApolloServerPluginUsageReporting({
sendErrorsInTraces { unmodified: true },
sendErrorsInTraces: { unmodified: true },
})],
// ...
})
Expand Down

0 comments on commit 199f88e

Please sign in to comment.