Skip to content

Commit c934305

Browse files
authored
Improve error message when overrides fail to parse (#5787)
* Improve error message when overrides fail to parse * chlog * better
1 parent a3e0bf4 commit c934305

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
* [ENHANCEMENT] Unsafe search hints for frontend performance tests [#5723](https://github.com/grafana/tempo/pull/5723) (@ruslan-mikhailov)
1414
* [ENHANCEMENT] Add new livestore alert to the tempo-mixin [#5752](https://github.com/grafana/tempo/pull/5752) (@javiermolinar)
1515
* [ENHANCEMENT] Improve shutdown time in the first 30 seconds [#5725](https://github.com/grafana/tempo/pull/5725) (@ldufr)
16-
* [ENHANCEMENT] Add metric for tracking added latency to write requests [#](https://github.com/grafana/tempo/pull/) (@mapno)
16+
* [ENHANCEMENT] Add metric for tracking added latency to write requests [#5781](https://github.com/grafana/tempo/pull/5781) (@mapno)
17+
* [ENHANCEMENT] Improve error message when overrides fail to parse [#5787](https://github.com/grafana/tempo/pull/5787) (@mapno)
1718
* [BUGFIX] Fix compactor to properly consider SSE-KMS information during metadata copy [#5774](https://github.com/grafana/tempo/pull/5774) (@steffsas)
1819
* [BUGFIX] Correctly track and reject too large traces in live stores. [#5757](https://github.com/grafana/tempo/pull/5757) (@joe-elliott)
1920
* [BUGFIX] Fix issues related to integer dedicated columns in vParquet5-preview2 [#5716](https://github.com/grafana/tempo/pull/5716) (@stoewer)

modules/overrides/config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,8 +249,8 @@ func (c *Config) UnmarshalYAML(unmarshal func(interface{}) error) error {
249249
legacyCfg.PerTenantOverridePeriod = c.PerTenantOverridePeriod
250250
legacyCfg.UserConfigurableOverridesConfig = c.UserConfigurableOverridesConfig
251251

252-
if err := unmarshal(&legacyCfg); err != nil {
253-
return err
252+
if legacyErr := unmarshal(&legacyCfg); legacyErr != nil {
253+
return fmt.Errorf("failed to unmarshal config: %w; also failed in legacy format: %w", err, legacyErr)
254254
}
255255

256256
c.Defaults = legacyCfg.DefaultOverrides.toNewLimits()

0 commit comments

Comments
 (0)