* expr/sql: enable SQL trace redaction for server-side expressions
Bumps the go-mysql-server fork to a build that includes the merged
upstream opt-in SQL trace redaction (dolthub/go-mysql-server#3537) and
opts the SSE SQL context into it via WithTraceRedaction(true).
GMS trace span attributes (the planbuilder "query" attr and the rowexec
"table"/"left"/"right" attrs) carry the user's SQL verbatim, including
table identifiers and literal filter values. With redaction enabled,
identifiers become stable tokens (n1, n2, ...) and literals become value
tokens ('v1', :v2, ...), deduped per query
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* Capture error_type label on metrics/traces
* Make error messages more helpful to user
* Use errutil, categorized errors, and tie them to error_type (category in code)
* Misc trace fixes
* Add metric to track SQL input conversion
Adds settings for SQL expressions:
sql_expression_cell_output_limit
Set the maximum number of cells that can be returned from a SQL expression. Default is 100000.
sql_expression_timeout
The duration a SQL expression will run before being cancelled. The default is 10s.
* Under feature flag `sqlExpressions` and is experimental
* Excluded from arm32
* Will not work with the Query Service yet
* Does not have limits in place yet
* Does not working with alerting yet
* Currently requires "prepare time series" Transform for time series viz
---------
Co-authored-by: Sam Jewell <sam.jewell@grafana.com>