You've already forked golang-saas-starter-kit
mirror of
https://github.com/raseels-repos/golang-saas-starter-kit.git
synced 2025-06-23 00:37:48 +02:00
update tracing, fixed docker-compose and removed vendor dir
This commit is contained in:
@ -6,8 +6,8 @@ import (
|
||||
"net/http"
|
||||
"runtime"
|
||||
|
||||
"gopkg.in/DataDog/dd-trace-go.v1/ddtrace/tracer"
|
||||
"geeks-accelerator/oss/saas-starter-kit/example-project/internal/platform/web"
|
||||
"go.opencensus.io/trace"
|
||||
)
|
||||
|
||||
// m contains the global program counters for the application.
|
||||
@ -29,8 +29,8 @@ func Metrics() web.Middleware {
|
||||
|
||||
// Wrap this handler around the next one provided.
|
||||
h := func(ctx context.Context, w http.ResponseWriter, r *http.Request, params map[string]string) error {
|
||||
ctx, span := trace.StartSpan(ctx, "internal.mid.Metrics")
|
||||
defer span.End()
|
||||
span, ctx := tracer.StartSpanFromContext(ctx, "internal.mid.Metrics")
|
||||
defer span.Finish()
|
||||
|
||||
err := before(ctx, w, r, params)
|
||||
|
||||
|
Reference in New Issue
Block a user