Skip to content

Commit

Permalink
Log filter function to Grafana (#603)
Browse files Browse the repository at this point in the history
  • Loading branch information
bvaughn authored Jul 5, 2024
1 parent 5b3f3b1 commit f2b1c82
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/loud-trainers-dress.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@replayio/test-utils": patch
---

Gather data about deprecated `filter` config usage (as preparation to remove it)
11 changes: 11 additions & 0 deletions packages/test-utils/src/reporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,17 @@ export default class ReplayReporter<
})
);
}

// Logging this here instead of in _parseConfig is intentional; the logger has been associated with the user's API key
if (config) {
if (config.filter) {
logger.info("ReplayReporter:Config:HasFilter", {
filter: config.filter.toString(),
});
} else {
logger.info("ReplayReporter:Config:NoFilter");
}
}
}

setTestRunnerVersion(version: TestRunner["version"]) {
Expand Down

0 comments on commit f2b1c82

Please sign in to comment.