ssube/prometheus-sql-adapter

View on GitHub

Showing 2 of 2 total issues

Function serve has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

func serve(logger log.Logger, addr string, writers []writer, readers []reader, allowed []string) error {
Severity: Minor
Found in main.go - About 35 mins to fix

    Method Client.WriteLabel has 5 return statements (exceeds 4 allowed).
    Open

    func (c *Client) WriteLabel(m *model.Metric, stmt *sql.Stmt, t time.Time) (written bool, err error) {
        lid, err := metric.MakeLid(m)
        if err != nil {
            level.Warn(c.logger).Log("msg", "error hashing labels", "err", err)
            return false, err
    Severity: Major
    Found in postgres/client.go - About 35 mins to fix
      Severity
      Category
      Status
      Source
      Language