Skip to content

Commit

Permalink
Include emicklei/go-restful in directory move (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
evantorrie authored Jul 2, 2020
1 parent 370078e commit 19be05c
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@
// Instrumentation of an incoming request is achieved via a go-restful
// FilterFunc which may be applied at the container level, at the
// webservice level or at a route level
package restful // import "go.opentelemetry.io/contrib/instrumentation/emicklei/go-restful"
package restful // import "go.opentelemetry.io/contrib/instrumentation/github.com/emicklei/go-restful"
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# limitations under the License.
FROM golang:1.14-alpine AS base
COPY . /src/
WORKDIR /src/instrumentation/emicklei/go-restful
WORKDIR /src/instrumentation/github.com/emicklei/go-restful

FROM base AS go-restful-server
RUN go install ./example/server.go
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ services:
go-restful-server:
build:
dockerfile: $PWD/Dockerfile
context: ../../../..
context: ../../../../..
ports:
- "8080:80"
command:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (

"github.com/emicklei/go-restful/v3"

restfultrace "go.opentelemetry.io/contrib/instrumentation/emicklei/go-restful"
restfultrace "go.opentelemetry.io/contrib/instrumentation/github.com/emicklei/go-restful"
otelglobal "go.opentelemetry.io/otel/api/global"
otelkv "go.opentelemetry.io/otel/api/kv"
oteltrace "go.opentelemetry.io/otel/api/trace"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module go.opentelemetry.io/contrib/instrumentation/emicklei/go-restful
module go.opentelemetry.io/contrib/instrumentation/github.com/emicklei/go-restful

go 1.14

replace go.opentelemetry.io/contrib => ../../..
replace go.opentelemetry.io/contrib => ../../../..

require (
github.com/emicklei/go-restful/v3 v3.0.0
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
)

const (
tracerName = "go.opentelemetry.io/contrib/instrumentation/emicklei/go-restful"
tracerName = "go.opentelemetry.io/contrib/instrumentation/github.com/emicklei/go-restful"
tracerVersion = "1.0"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

restfultrace "go.opentelemetry.io/contrib/instrumentation/emicklei/go-restful"
restfultrace "go.opentelemetry.io/contrib/instrumentation/github.com/emicklei/go-restful"

mocktrace "go.opentelemetry.io/contrib/internal/trace"
otelglobal "go.opentelemetry.io/otel/api/global"
otelvalue "go.opentelemetry.io/otel/api/kv/value"
Expand All @@ -42,7 +43,7 @@ func TestChildSpanFromGlobalTracer(t *testing.T) {
spanTracer := span.Tracer()
mockTracer, ok := spanTracer.(*mocktrace.Tracer)
require.True(t, ok)
assert.Equal(t, "go.opentelemetry.io/contrib/instrumentation/emicklei/go-restful", mockTracer.Name)
assert.Equal(t, "go.opentelemetry.io/contrib/instrumentation/github.com/emicklei/go-restful", mockTracer.Name)
resp.WriteHeader(http.StatusOK)
}
ws := &restful.WebService{}
Expand Down

0 comments on commit 19be05c

Please sign in to comment.