File tree 6 files changed +6
-6
lines changed
instrumentation/gopkg.in/macaron.v1
6 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ type Option func(*config)
30
30
31
31
// WithTracer specifies a tracer to use for creating spans. If none is
32
32
// specified, a tracer named
33
- // "go.opentelemetry.io/contrib/instrumentation/macaron" from the global
33
+ // "go.opentelemetry.io/contrib/instrumentation/gopkg.in/ macaron.v1 " from the global
34
34
// provider is used.
35
35
func WithTracer (tracer trace.Tracer ) Option {
36
36
return func (cfg * config ) {
Original file line number Diff line number Diff line change 17
17
//
18
18
// Currently only the routing of a received message can be
19
19
// instrumented. To do it, use the Middleware function.
20
- package macaron // import "go.opentelemetry.io/contrib/instrumentation/macaron"
20
+ package macaron // import "go.opentelemetry.io/contrib/instrumentation/gopkg.in/ macaron.v1 "
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ import (
20
20
21
21
"gopkg.in/macaron.v1"
22
22
23
- macarontrace "go.opentelemetry.io/contrib/instrumentation/macaron"
23
+ macarontrace "go.opentelemetry.io/contrib/instrumentation/gopkg.in/ macaron.v1 "
24
24
25
25
otelglobal "go.opentelemetry.io/otel/api/global"
26
26
oteltrace "go.opentelemetry.io/otel/api/trace"
Original file line number Diff line number Diff line change 1
- module go.opentelemetry.io/contrib/instrumentation/macaron
1
+ module go.opentelemetry.io/contrib/instrumentation/gopkg.in/ macaron.v1
2
2
3
3
go 1.14
4
4
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ import (
27
27
)
28
28
29
29
const (
30
- tracerName = "go.opentelemetry.io/contrib/instrumentation/macaron"
30
+ tracerName = "go.opentelemetry.io/contrib/instrumentation/gopkg.in/ macaron.v1 "
31
31
)
32
32
33
33
// Middleware returns a macaron Handler to trace requests to the server.
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ func TestChildSpanFromGlobalTracer(t *testing.T) {
43
43
spanTracer := span .Tracer ()
44
44
mockTracer , ok := spanTracer .(* mocktrace.Tracer )
45
45
require .True (t , ok )
46
- assert .Equal (t , "go.opentelemetry.io/contrib/instrumentation/macaron" , mockTracer .Name )
46
+ assert .Equal (t , "go.opentelemetry.io/contrib/instrumentation/gopkg.in/ macaron.v1 " , mockTracer .Name )
47
47
ctx .Resp .WriteHeader (http .StatusOK )
48
48
})
49
49
You can’t perform that action at this time.
0 commit comments