Skip to content

Commit

Permalink
forgot default case
Browse files Browse the repository at this point in the history
Signed-off-by: erikbaranowski <[email protected]>
  • Loading branch information
erikbaranowski committed Oct 30, 2023
1 parent 0756ed2 commit 993dae4
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ func (b *IntegrationsConfigBuilder) appendAgentExporter(config any) discovery.Ex
case *agent_exporter_v2.Config:
args = toAgentExporterV2(cfg)
name = cfg.Name()
default:
panic("invalid config type passed to appendAgentExporter.")
}

compLabel := common.LabelForParts(b.globalCtx.LabelPrefix, name)
Expand Down

0 comments on commit 993dae4

Please sign in to comment.