| 147 | } |
| 148 | |
| 149 | func printWarnings(w io.Writer) { |
| 150 | fmt.Fprintln(w, "WARNING: Please verify the migrated output carefully before using it.") |
| 151 | fmt.Fprintln(w, "- Fields set to Go zero values (false, 0, \"\") may be silently dropped") |
| 152 | fmt.Fprintln(w, " due to omitempty tags. Compare against your original config to ensure nothing is lost.") |
| 153 | fmt.Fprintln(w, "- Secret values (e.g. remote_write_headers) are masked as '<secret>' in the output.") |
| 154 | fmt.Fprintln(w, " You must manually restore the original values.") |
| 155 | fmt.Fprintln(w, "- Some struct fields without omitempty may appear with zero values (e.g. 'exclude: null')") |
| 156 | fmt.Fprintln(w, " that were not in your original config. These can be removed.") |
| 157 | fmt.Fprintln(w, "NOTE: This tool is provided for convenience only. Always double check the output against your original config.") |
| 158 | fmt.Fprintln(w, "For full details on overrides configuration, see: https://grafana.com/docs/tempo/latest/configuration/#overrides") |
| 159 | } |