Skip to content

Commit

Permalink
fix(ci): accomodate func signature change
Browse files Browse the repository at this point in the history
Signed-off-by: hainenber <[email protected]>
  • Loading branch information
hainenber committed Jan 6, 2024
1 parent 5dfb7e9 commit cc8c193
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/integrations/mssql/sql_exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,9 @@ func (c *Config) NewIntegration(l log.Logger) (integrations.Integration, error)
collectorConfig = *customCollectorConfig
}

// TODO(hainenber): expose below attr as config
enablePing := false

t, err := sql_exporter.NewTarget(
"mssqlintegration",
"",
Expand All @@ -128,6 +131,7 @@ func (c *Config) NewIntegration(l log.Logger) (integrations.Integration, error)
MaxConns: c.MaxOpenConnections,
MaxIdleConns: c.MaxIdleConnections,
},
&enablePing,
)

if err != nil {
Expand Down

0 comments on commit cc8c193

Please sign in to comment.