Skip to content

Commit 96b0b00

Browse files
authored
updated macaron go module declaration (#356)
* updated macaron go module declaration * updated macaron package location in all areas
1 parent 6d5d814 commit 96b0b00

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

instrumentation/gopkg.in/macaron.v1/config.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ type Option func(*config)
3030

3131
// WithTracer specifies a tracer to use for creating spans. If none is
3232
// 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
3434
// provider is used.
3535
func WithTracer(tracer trace.Tracer) Option {
3636
return func(cfg *config) {

instrumentation/gopkg.in/macaron.v1/doc.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@
1717
//
1818
// Currently only the routing of a received message can be
1919
// 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"

instrumentation/gopkg.in/macaron.v1/example/server.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import (
2020

2121
"gopkg.in/macaron.v1"
2222

23-
macarontrace "go.opentelemetry.io/contrib/instrumentation/macaron"
23+
macarontrace "go.opentelemetry.io/contrib/instrumentation/gopkg.in/macaron.v1"
2424

2525
otelglobal "go.opentelemetry.io/otel/api/global"
2626
oteltrace "go.opentelemetry.io/otel/api/trace"

instrumentation/gopkg.in/macaron.v1/go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module go.opentelemetry.io/contrib/instrumentation/macaron
1+
module go.opentelemetry.io/contrib/instrumentation/gopkg.in/macaron.v1
22

33
go 1.14
44

instrumentation/gopkg.in/macaron.v1/macaron.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import (
2727
)
2828

2929
const (
30-
tracerName = "go.opentelemetry.io/contrib/instrumentation/macaron"
30+
tracerName = "go.opentelemetry.io/contrib/instrumentation/gopkg.in/macaron.v1"
3131
)
3232

3333
// Middleware returns a macaron Handler to trace requests to the server.

instrumentation/gopkg.in/macaron.v1/macaron_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func TestChildSpanFromGlobalTracer(t *testing.T) {
4343
spanTracer := span.Tracer()
4444
mockTracer, ok := spanTracer.(*mocktrace.Tracer)
4545
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)
4747
ctx.Resp.WriteHeader(http.StatusOK)
4848
})
4949

0 commit comments

Comments
 (0)