Skip to content

Commit

Permalink
chore(update-metrics): updated event metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
asalem1 committed Jul 27, 2020
1 parent 8025db7 commit b881a55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/src/shared/apis/queryCache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class QueryCache {
this.resetCacheByID(id)
return null
}
event('Query Cache successful Get', {context: 'queryCache'})
event('Query Cache successful Get', {context: 'queryCache', queryID: id})
return this.cache[id].values
}

Expand Down Expand Up @@ -112,7 +112,7 @@ class QueryCache {
hashedVariables: string,
values: RunQueryResult
): void => {
event('Query Cache was Set', {context: 'queryCache'})
event('Query Cache was Set', {context: 'queryCache', queryID})
this.cache[queryID] = {
...this.initializeCacheByID(queryID, hashedVariables),
dateSet: Date.now(),
Expand Down

0 comments on commit b881a55

Please sign in to comment.