Skip to content

Commit

Permalink
Merge pull request #21 from dsrhub/zz/change-to-apply-dd-at-router
Browse files Browse the repository at this point in the history
Change to apply dd at router layer
  • Loading branch information
zhouzhuojie authored Jul 15, 2020
2 parents 11494d4 + b8856dc commit a79b0b8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions init/dsrhub_init_plugin/metric.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,7 @@ func (p *DSRHubInitPlugin) setupMetrics() error {
tracer.WithService(p.StatsdAPMServiceName),
)

ginEngine := router.Engine()
ginEngine.Use(gintrace.Middleware(
fmt.Sprintf("%s-http-server", p.StatsdAPMServiceName),
))
router.Use(gintrace.Middleware(fmt.Sprintf("%s-http-server", p.StatsdAPMServiceName)))

return nil
}

0 comments on commit a79b0b8

Please sign in to comment.