Commit Graph

3 Commits

Author SHA1 Message Date
Ville Vesilehto
be934b2b06 perf(metrics): implement plugin chain tracking (#7791)
Remove expensive runtime.Caller calls from metrics Recorder.WriteMsg
by tracking the responding plugin through the plugin chain instead.

- Add PluginTracker interface and pluginWriter wrapper in plugin.go
- Modify NextOrFailure to wrap ResponseWriter with plugin name
- Update metrics Recorder to implement PluginTracker
- Remove authoritativePlugin method using filepath inspection

Signed-off-by: Ville Vesilehto <ville@vesilehto.fi>
2025-12-29 14:33:12 -08:00
coredns[bot]
830a0f7dcb auto go fmt
Signed-off-by: coredns[bot] <bot@bot.coredns.io>
2022-01-31 10:27:19 +00:00
Ondřej Benkovský
f713a51319 plugin/prometheus: write rcode properly to the metrics (#5126)
* plugin/prometheus: write rcode properly to the metrics

Signed-off-by: Ondřej Benkovský <ondrej.benkovsky@jamf.com>
2022-01-26 11:32:01 -05:00