Commit d837bac
docs: fix Prometheus README snippet, remove nonexistent NewHandler()
Handler has never had a NewHandler constructor at any version (confirmed
back through v4.7.2) -- it's a plain struct, used via a literal or the
package's own DefaultHandler var. This snippet was added in 7e7070d
alongside the OTLP exporter and appears to be a copy-paste from
otlp.NewHandler (a real constructor on that subpackage). Anyone following
the README as written gets a compile error.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>1 parent 56b5b31 commit d837bac
1 file changed
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
200 | | - | |
201 | | - | |
202 | | - | |
| 200 | + | |
| 201 | + | |
203 | 202 | | |
204 | 203 | | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
205 | 208 | | |
206 | 209 | | |
207 | 210 | | |
| |||
0 commit comments