pprof middleware (#138)
Add pprof middleware, enabled by pprof directive.
This commit is contained in:
parent
7a8d943bcc
commit
2700eece2e
8 changed files with 130 additions and 4 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue