[Discover][ES|QL] Update query for recommended database queries to use db.system.name (#225421)

## Summary

Relates to https://github.com/elastic/kibana/issues/222908.

While working on the recommended queries, I completely missed that
`db.system` has been replaced by `db.system.name` in the
[semconv](https://opentelemetry.io/docs/specs/semconv/non-normative/db-migration/#database-client-span-attributes).

The OTel demo is still using `db.system` for now, and since I was using
it to test, I didn't catch the change.
This commit is contained in:
Irene Blanco 2025-06-26 19:07:13 +02:00 committed by GitHub
parent b7e5336370
commit 9e88cd97cf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -29,7 +29,7 @@ const TRACES_ESQL_RECOMMENDED_QUERIES = [
name: i18n.translate('xpack.observability.recommendedQueries.slowDatabaseQueries.name', {
defaultMessage: 'Database queries',
}),
query: `FROM ${TRACES_INDEX_PATTERN} | WHERE QSTR("span.type:db OR db.system:*")`,
query: `FROM ${TRACES_INDEX_PATTERN} | WHERE QSTR("span.type:db OR db.system.name:*")`,
description: i18n.translate(
'xpack.observability.recommendedQueries.slowDatabaseQueries.description',
{