[O11y][MSSQL] Add optional mssql.query field to performance data stream for debugging purposes - #12212
Conversation
There was a problem hiding this comment.
Lets wait till the beats code change, This can be an array.
There was a problem hiding this comment.
array won't be supported.
Error: building package failed: invalid content found in built zip package: found 1 validation error:
- file "/github_repo/harnish_repo/integrations/build/packages/microsoft_sqlserver-2.9.5.zip/data_stream/performance/fields/fields.yml" is invalid: field 0.fields.1.type: 0.fields.1.type must be one of the following: "aggregate_metric_double", "alias", "histogram", "constant_keyword", "text", "match_only_text", "keyword", "long", "integer", "short", "byte", "double", "float", "half_float", "scaled_float", "date", "date_nanos", "boolean", "binary", "integer_range", "float_range", "long_range", "double_range", "date_range", "ip_range", "group", "geo_point", "object", "ip", "nested", "flattened", "wildcard", "version", "unsigned_long"
🚀 Benchmarks reportTo see the full report comment with |
performance data stream for debugging purposes
shmsr
left a comment
There was a problem hiding this comment.
same comments for the other PR too
There was a problem hiding this comment.
| - name: preserve_sql_queries | |
| required: true | |
| show_user: false | |
| title: Preserve SQL queries (debug) | |
| description: Preserve the SQL queries used. Enable for debugging purposes only. This feature becomes available in Kibana version 8.18 onwards. | |
| type: bool | |
| multi: false | |
| default: false | |
| - name: preserve_sql_queries | |
| required: true | |
| show_user: false | |
| title: Preserve SQL Queries | |
| description: Preserves SQL queries for debugging purposes. This feature is available in Elastic stack version 8.18 and later. | |
| type: bool | |
| multi: false | |
| default: false |
There was a problem hiding this comment.
https://github.com/elastic/integrations/pull/12097/files
^^
Here we are not accepting tags from users as of now. But see this PR where because of indentation we faced issue when user input was also there.
There was a problem hiding this comment.
Updated, thanks!
There was a problem hiding this comment.
| description: Executed queries by this package. | |
| description: The SQL queries executed. |
💚 Build Succeeded
History
cc @harnish-elastic |
|
|
Package microsoft_sqlserver - 2.10.0 containing this change is available at https://epr.elastic.co/package/microsoft_sqlserver/2.10.0/ |
…ream for debugging purposes (elastic#12212) * Remove unnecessary processor in performance data stream * add changelog entry * added debug flag that can preserve mssql.query field when enabled * Update packages/microsoft_sqlserver/data_stream/performance/manifest.yml Co-authored-by: Lalit Satapathy <69236064+lalit-satapathy@users.noreply.github.com> * update tag name * minor change in pipeline and system tests * minor change in tag description * address review comments --------- Co-authored-by: Lalit Satapathy <69236064+lalit-satapathy@users.noreply.github.com>
…ream for debugging purposes (elastic#12212) * Remove unnecessary processor in performance data stream * add changelog entry * added debug flag that can preserve mssql.query field when enabled * Update packages/microsoft_sqlserver/data_stream/performance/manifest.yml Co-authored-by: Lalit Satapathy <69236064+lalit-satapathy@users.noreply.github.com> * update tag name * minor change in pipeline and system tests * minor change in tag description * address review comments --------- Co-authored-by: Lalit Satapathy <69236064+lalit-satapathy@users.noreply.github.com>




Proposed commit message
perfromancedata stream uses the merge_results: true parameter. From this parameter, I observed that all the sql_queries results are being merged in single event and we are not receiving thesql.queryfield in the response. Referpreserve_sql_queriesflag that can be used as preserve sql.query field, if it's enabled.Checklist
changelog.ymlfile.Related issues
Screenshot