Skip to content

[tempo-cli] Replace fmt.Print with logger, continue on error in rewrite-blocks #5043

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 23, 2025

Conversation

zalegrala
Copy link
Contributor

@zalegrala zalegrala commented Apr 23, 2025

What this PR does:

Here we modify the output long-running command rewrite-blocks to use a logger rather than the use of fmt.Print. This should be sufficient for both local and non-local use cases.

Additionally, we continue on error such that in case one block has a problem, we don't halt the entire process.

Which issue(s) this PR fixes:
Fixes #

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]
@zalegrala zalegrala force-pushed the cliRewriteTracesLoggerContinue branch from 6a8573c to ebfad3f Compare April 23, 2025 17:00
@zalegrala zalegrala changed the title Replace fmt.Print with slog, continue on error Apr 23, 2025
@zalegrala zalegrala marked this pull request as ready for review April 23, 2025 18:22
@zalegrala zalegrala force-pushed the cliRewriteTracesLoggerContinue branch from 40b9359 to a8a998e Compare April 23, 2025 19:13
@zalegrala zalegrala changed the title [tempo-cli] Replace fmt.Print with slog, continue on error in rewrite-blocks Apr 23, 2025
zalegrala and others added 3 commits April 23, 2025 19:37
Update cmd/tempo-cli/cmd-rewrite-blocks.go

Co-authored-by: Joe Elliott <joe.elliott@grafana.com>
@zalegrala zalegrala force-pushed the cliRewriteTracesLoggerContinue branch from a8a998e to 5aa49ea Compare April 23, 2025 19:38
@zalegrala zalegrala merged commit 648903e into grafana:main Apr 23, 2025
15 checks passed
@zalegrala zalegrala deleted the cliRewriteTracesLoggerContinue branch April 23, 2025 20:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants