Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
…rometheus#14356) * feat: initial implement of createedTimestamp() with tests Signed-off-by: Manik Rana <[email protected]> * feat: return ct after finding it Signed-off-by: Manik Rana <[email protected]> * chore: remove unneeded test Signed-off-by: Manik Rana <[email protected]> * chore: add comments Signed-off-by: Manik Rana <[email protected]> * feat: multiple changes - implement changes from pair programming session - use newParse.val() - advance parser p if ct is found Signed-off-by: Manik Rana <[email protected]> * fix: check if err from p.Next() Signed-off-by: Manik Rana <[email protected]> * feat: advance parser and parse histograms + summary Signed-off-by: Manik Rana <[email protected]> * fix: restore previous tests Signed-off-by: Manik Rana <[email protected]> * fix: retore failing tests Signed-off-by: Manik Rana <[email protected]> * chore: remove unneeded comments Signed-off-by: Manik Rana <[email protected]> * fix: return nil when mtype doesn't match Signed-off-by: Manik Rana <[email protected]> * chore: update go fmt version Signed-off-by: Manik Rana <[email protected]> * chore: cleanup Signed-off-by: Manik Rana <[email protected]> * fix: comments Signed-off-by: Manik Rana <[email protected]> * feat: document deepcopyparser Co-authored-by: Arthur Silva Sens <[email protected]> Signed-off-by: Manik Rana <[email protected]> Signed-off-by: Manik Rana <[email protected]> * chore: lint Signed-off-by: Manik Rana <[email protected]> * fix: cover edgecase of `gauge_created` in CreatedTimestamp() Signed-off-by: Manik Rana <[email protected]> * refac: readability updates Signed-off-by: Manik Rana <[email protected]> * refac: dedeuplicate labeldiff checks Signed-off-by: Manik Rana <[email protected]> * tests: add tests for new label functions Signed-off-by: Manik Rana <[email protected]> * feat: document CreatedTimestamp func Signed-off-by: Manik Rana <[email protected]> * refac: optimize `CreatedTimestamp()` - Use refactored CreatedTimestamp function with bug fixes - Remove unused code in labels.go - Improve code documentation Signed-off-by: Manik Rana <[email protected]> Signed-off-by: Manik Rana <[email protected]> * chore: add tests and lint fixes Signed-off-by: Manik Rana <[email protected]> * chore: remove mName Signed-off-by: Manik Rana <[email protected]> * chore: lint Signed-off-by: Manik Rana <[email protected]> * chore: comments Signed-off-by: Manik Rana <[email protected]> * tests: add tests for CT parse failures and deepCopy Signed-off-by: Manik Rana <[email protected]> * refac: edit expectCT struct Signed-off-by: Manik Rana <[email protected]> * chore: lint Signed-off-by: Manik Rana <[email protected]> * chore: add new label in deepCopy Signed-off-by: Manik Rana <[email protected]> * fix: use p.builder in deepCopy Signed-off-by: Manik Rana <[email protected]> * fix: add NewMetricsParserWithOpts Signed-off-by: Manik Rana <[email protected]> * chore: lint Signed-off-by: Manik Rana <[email protected]> * chore: comments Co-authored-by: Arthur Silva Sens <[email protected]> Signed-off-by: Manik Rana <[email protected]> * chore: comments Co-authored-by: Arthur Silva Sens <[email protected]> Signed-off-by: Manik Rana <[email protected]> * chore: rename var Signed-off-by: Manik Rana <[email protected]> * fix: add condition for OM fuzzing Signed-off-by: Manik Rana <[email protected]> * fix: build tags Signed-off-by: Manik Rana <[email protected]> * refac: default skipCT to false Signed-off-by: Manik Rana <[email protected]> * refac: rename skipCT to skipCTSeries Signed-off-by: Manik Rana <[email protected]> * chore: formatting Signed-off-by: Manik Rana <[email protected]> * chore: comments and readability updates Signed-off-by: Manik Rana <[email protected]> * chore: comments Co-authored-by: Bartlomiej Plotka <[email protected]> Signed-off-by: Manik Rana <[email protected]> * refac: remove NewOpenMetricsParserWithOpts Signed-off-by: Manik Rana <[email protected]> * chore: lint Signed-off-by: Manik Rana <[email protected]> * refac: extract skipCTSeries logic from parseMetricSuffix Signed-off-by: Manik Rana <[email protected]> * refac: inline create a NewOpenMetricsParser Signed-off-by: Manik Rana <[email protected]> * chore: comments Signed-off-by: Manik Rana <[email protected]> * chore: comments Co-authored-by: Bartlomiej Plotka <[email protected]> Signed-off-by: Manik Rana <[email protected]> * refac: improve error handling Signed-off-by: Manik Rana <[email protected]> * fix: return error instead of nil Signed-off-by: Manik Rana <[email protected]> * fix: remove skipCT check from tBraceOpen Signed-off-by: Manik Rana <[email protected]> * Pair programming with Manik, Arthur and Daniel. Signed-off-by: bwplotka <[email protected]> * chore: comments and use helper funcs Signed-off-by: Manik Rana <[email protected]> * chore: lint Signed-off-by: Manik Rana <[email protected]> --------- Signed-off-by: Manik Rana <[email protected]> Signed-off-by: Manik Rana <[email protected]> Signed-off-by: bwplotka <[email protected]> Co-authored-by: Arthur Silva Sens <[email protected]> Co-authored-by: Bartlomiej Plotka <[email protected]>
- Loading branch information