Skip to content

Commit

Permalink
Update packages/core/src/shared/telemetry/telemetryLogger.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Justin M. Keyes <[email protected]>
  • Loading branch information
Hweinstock and justinmk3 authored Oct 14, 2024
1 parent 77a5806 commit 37266d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/shared/telemetry/telemetryLogger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export class TelemetryLogger {
}

/**
* Queries telemetry for metrics with metadata containing a keyword in the key or value
* Queries telemetry for metrics with metadata key or value matching the given regex.
*/
public queryRegex(re: RegExp | string): MetricDatum[] {
return this._metrics.filter((m) => m.Metadata?.some((md) => md.Value?.match(re) || md.Key?.match(re)))
Expand Down

0 comments on commit 37266d2

Please sign in to comment.