Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 432bb96

Browse files
committed
Revert "Move into generic coder/tracer package"
This reverts commit 9ce5328.
1 parent a16dc3e commit 432bb96

File tree

3 files changed

+3
-36
lines changed

3 files changed

+3
-36
lines changed

cli/start.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ import (
3636
"github.com/coder/coder/provisionerd"
3737
"github.com/coder/coder/provisionersdk"
3838
"github.com/coder/coder/provisionersdk/proto"
39-
"github.com/coder/coder/tracer"
39+
"gopkg.in/DataDog/dd-trace-go.v1/ddtrace/tracer"
4040
)
4141

4242
func start() *cobra.Command {

coderd/coderd.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
"github.com/coder/coder/httpapi"
1515
"github.com/coder/coder/httpmw"
1616
"github.com/coder/coder/site"
17-
"github.com/coder/coder/tracer"
17+
chitrace "gopkg.in/DataDog/dd-trace-go.v1/contrib/go-chi/chi.v5"
1818
)
1919

2020
// Options are requires parameters for Coder to start.
@@ -42,7 +42,7 @@ func New(options *Options) (http.Handler, func()) {
4242

4343
r := chi.NewRouter()
4444
r.Route("/api/v2", func(r chi.Router) {
45-
r.Use(tracer.Middleware())
45+
r.Use(chitrace.Middleware())
4646
r.Get("/", func(w http.ResponseWriter, r *http.Request) {
4747
httpapi.Write(w, http.StatusOK, httpapi.Response{
4848
Message: "👋",

tracer/tracer.go

Lines changed: 0 additions & 33 deletions
This file was deleted.

0 commit comments

Comments
 (0)