(source portSource, offset int)
| 1310 | } |
| 1311 | |
| 1312 | func portSourceLabel(source portSource, offset int) string { |
| 1313 | switch source { |
| 1314 | case portSourceExplicit: |
| 1315 | return fmt.Sprintf("explicit, offset +%d skipped", offset) |
| 1316 | case portSourceOffset: |
| 1317 | return fmt.Sprintf("offset +%d", offset) |
| 1318 | default: |
| 1319 | return fmt.Sprintf("default, offset +%d", offset) |
| 1320 | } |
| 1321 | } |
| 1322 | |
| 1323 | func printBanner(ctx context.Context, logger slog.Logger, cfg *devConfig, prometheusServerStarted bool) { |
| 1324 | ifaces := []string{"localhost"} |