mirror of
https://github.com/coredns/coredns.git
synced 2025-10-28 08:44:17 -04:00
pprof middleware (#138)
Add pprof middleware, enabled by pprof directive.
This commit is contained in:
@@ -3,10 +3,10 @@ package metrics
|
||||
import (
|
||||
"time"
|
||||
|
||||
"golang.org/x/net/context"
|
||||
|
||||
"github.com/miekg/coredns/middleware"
|
||||
|
||||
"github.com/miekg/dns"
|
||||
"golang.org/x/net/context"
|
||||
)
|
||||
|
||||
func (m Metrics) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) (int, error) {
|
||||
|
||||
Reference in New Issue
Block a user