You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Standardize unit interpretation of lookback_time in config for top_query_collection (open-telemetry#43618)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description
As a standard, all type of interval values in collector config currently
requires an 's' suffix to interpret the unit. But the recently
introduced lookback_time in top_query_collection does not follow this
pattern. This needs to be fixed to maintain consistency and avoid
ambiguity in unit interpretation.
<!-- Issue number (e.g. #1234) or full URL to issue, if applicable. -->
#### Link to tracking issue
Fixesopen-telemetry#43573
<!--Describe what testing was performed and which tests were added.-->
#### Testing
Unit tests updated
Copy file name to clipboardExpand all lines: receiver/sqlserverreceiver/README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -59,7 +59,7 @@ sqlserver:
59
59
db.server.top_query:
60
60
enabled: true
61
61
top_query_collection: # this collection exports the most expensive queries as logs
62
-
lookback_time: 60# which time window should we look for the top queries
62
+
lookback_time: 60s# which time window should we look for the top queries
63
63
max_query_sample_count: 1000# maximum number query we store in cache for top queries.
64
64
top_query_count: 200# The maximum number of active queries to report in a single run.
65
65
collection_interval: 60s# collection interval for top query collection specifically
@@ -87,7 +87,7 @@ Windows-specific options:
87
87
If specified, `instance_name` is also required to be defined. This option is ignored in non-Windows environments.
88
88
89
89
Top-Query collection specific options (only useful when top-query collection are enabled):
90
-
- `lookback_time` (optional, example = `60`, default = `2 * collection_interval`): The time window (in second) in which to query for top queries.
90
+
- `lookback_time` (optional, example = `60s`, default = `2 * collection_interval`): The time window (in second) in which to query for top queries.
91
91
- Queries that were finished execution outside the lookback window are not included in the collection. Increasing the lookback window (in seconds) will be useful for capturing long-running queries.
92
92
- `max_query_sample_count` (optional, example = `5000`, default = `1000`): The maximum number of records to fetch in a single run.
93
93
- `top_query_count`: (optional, example = `100`, default = `200`): The maximum number of active queries to report (to the next consumer) in a single run.
0 commit comments