Skip to content

Commit e0cfb3f

Browse files
support regex
Co-authored-by: Justin M. Keyes <[email protected]>
1 parent 0b44e48 commit e0cfb3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/shared/telemetry/telemetryLogger.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ export class TelemetryLogger {
122122
/**
123123
* Queries telemetry for metrics with metadata containing a keyword in the key or value
124124
*/
125-
public queryKeyword(keyword: string): MetricDatum[] {
125+
public queryRegex(re: RegExp): MetricDatum[] {
126126
return this._metrics.filter((m) =>
127127
m.Metadata?.some((md) => md.Value?.includes(keyword) || md.Key?.includes(keyword))
128128
)

0 commit comments

Comments
 (0)