Skip to content

Commit a95f66b

Browse files
committed
fixes after rebase
1 parent 500b8f2 commit a95f66b

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

collector/pg_database.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import (
1717
"context"
1818
"database/sql"
1919
"log/slog"
20+
"slices"
2021

2122
"github.com/prometheus/client_golang/prometheus"
2223
)

collector/pg_replication_slot.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import (
1818
"database/sql"
1919
"log/slog"
2020

21+
"github.com/blang/semver/v4"
2122
"github.com/prometheus/client_golang/prometheus"
2223
)
2324

collector/pg_stat_statements.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ package collector
1616
import (
1717
"context"
1818
"database/sql"
19+
"fmt"
1920
"log/slog"
2021

2122
"github.com/alecthomas/kingpin/v2"
@@ -50,6 +51,8 @@ func init() {
5051

5152
type PGStatStatementsCollector struct {
5253
log *slog.Logger
54+
includeQueryStatement bool
55+
statementLength uint
5356
}
5457

5558
func NewPGStatStatementsCollector(config collectorConfig) (Collector, error) {

0 commit comments

Comments
 (0)