• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

cybertec-postgresql / pgwatch / 34598180616
88%

Build:
DEFAULT BRANCH: master
Ran 11 Sep 2026 12:22PM UTC
Jobs 1
Files 50
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

11 Sep 2026 12:17PM UTC coverage: 87.904% (-0.03%) from 87.934%
34598180616

push

github

web-flow
[*] cut allocations in `PrometheusWriter.WritePromMetrics` (#1550)

Everything that does not depend on the row is now computed once per
envelope instead of once per row x field:

- fqName and the gauge/counter decision are memoized per field, and the
  namespace prefix is concatenated once instead of via fmt.Sprintf;
- prometheus.Desc is cached per (fqName, label keys). NewDesc allocates
  ~6+2N objects and runs regexp validation and two sorts on every call;
- numeric columns are converted with a direct float64(t) conversion
  instead of strconv.ParseFloat(fmt.Sprintf("%v", v)); only float32
  values may differ at the ULP level;
- the dead labels map allocation and the map[bool]float64 literal are
gone.

BenchmarkWritePromMetrics (500 rows, 3 tags, 8 columns):
  before  10.5 ms/op   5.14 MB/op   141k allocs/op
  after    6.3 ms/op   3.70 MB/op    86k allocs/op

61 of 69 new or added lines in 1 file covered. (88.41%)

5443 of 6192 relevant lines covered (87.9%)

1.0 hits per line

Uncovered Changes

Lines Coverage ∆ File
8
95.17
-1.85% internal/sinks/prometheus.go
Jobs
ID Job ID Ran Files Coverage
1 34598180616.1 11 Sep 2026 12:22PM UTC 50
87.9
GitHub Action Run
Source Files on build 34598180616
  • Tree
  • List 50
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #34598180616
  • 7dbba6bc on github
  • Prev Build on master (#34596032944)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc