Skip to content

Commit

Permalink
fix: provide err.data.fingerprint of DATASTORE_TIMEOUT
Browse files Browse the repository at this point in the history
  • Loading branch information
kirillgroshkov committed Jan 28, 2022
1 parent df9e60e commit 0e67249
Show file tree
Hide file tree
Showing 2 changed files with 315 additions and 303 deletions.
4 changes: 4 additions & 0 deletions src/datastore.db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,10 @@ export class DatastoreDB extends BaseCommonDB implements CommonDB {
const r = await pTimeout(this.ds().get(keys), {
timeout: this.cfg.timeout,
name: `datastore.getByIds(${table}) second try`,
errorData: {
// This error will be grouped ACROSS all endpoints and usages
fingerprint: ['DATASTORE_TIMEOUT'],
},
})
rows = r[0]
}
Expand Down
Loading

0 comments on commit 0e67249

Please sign in to comment.