()
| 31 | ) |
| 32 | |
| 33 | func probeHTTPOn() bool { |
| 34 | probeHTTPOnce.Do(func() { |
| 35 | if os.Getenv("KEPLOY_PROBE_FANOUT") == "1" { |
| 36 | probeHTTPEnabled.Store(true) |
| 37 | } |
| 38 | }) |
| 39 | return probeHTTPEnabled.Load() |
| 40 | } |
| 41 | |
| 42 | // probeHTTP emits a [PROBE/http] log tagged with the connID pulled from |
| 43 | // the parser context and a phase name. Cheap to call when the probe is |