-
Notifications
You must be signed in to change notification settings - Fork 544
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactoring: implement arrays for traceql.Static with reused fields (#…
…3827) * Refactore traceql.Static implementation with reused struct fields The new implementation is meant to support static values representing []int, []float, []bool, and []string in the future without increasing the struct size * Fix common errors with new traceql.Static in traceql pkg * Use traceql.StaticMapKey in maps instead of traceql.Static * Fix bug with .foo!=nil * Static value access methods return bolean ok value, not error * Use traceql.StaticMapKey as map key in traceqlmetrics * Adjust use of traceql.Static in vp2 * Adjust use of traceql.Static in vp3 * Add method Static.StrictEquals(o) * Adjust use of traceql.Static in vp4 * Use traceql.StaticMapKey as map key in tempodb * Fix linter warnings * Add test for Static.MapKey() * Add support for string arrays to traceql.Static * Add support for float and bool arrays to traceql.Static * Create static nil values by calling traceql.NewStaticNil() * Remove TODOs and panics * Replace more Static{} with traceql.NewStaticNil() * Improve string representation for arrays * CHANGELOG.md * Remove redundant type check * Use fnv1a instead of crc32 to calculate StaticMapKey hash --------- Co-authored-by: Mario <[email protected]>
- Loading branch information
Showing
25 changed files
with
1,531 additions
and
625 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.