Skip to content

Commit 370078e

Browse files
authored
Move all github.com instrumentation plugins down one level in directory hierarchy (#118)
* Moved all github.com instrumentation plugins below github.com Fix up all example docker-compose/Dockerfile * Add doc.go to labstack/echo for consistency with other plugins * Fix up CHANGELOG
1 parent a24a7d5 commit 370078e

31 files changed

+54
-30
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,13 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
88

99
## [Unreleased]
1010

11-
### Changed
11+
### Additions
1212

1313
- Add `emicklei/go-restful/v3` trace instrumentation. (#115)
14+
15+
### Changed
16+
17+
- Move all github.com package instrumentation under a github.com directory. (#118)
1418
- Update `CONTRIBUTING.md` to ask for updates to `CHANGELOG.md` with each pull request. (#114)
1519
- Create this `CHANGELOG.md`. (#114)
1620

instrumentation/gin-gonic/gin/doc.go renamed to instrumentation/github.com/gin-gonic/gin/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@
1919
// instrumenting the routing of a received message (the Middleware
2020
// function) and instrumenting the response generation through
2121
// template evaluation (the HTML function).
22-
package gin // import "go.opentelemetry.io/contrib/instrumentation/gin-gonic/gin"
22+
package gin // import "go.opentelemetry.io/contrib/instrumentation/github.com/gin-gonic/gin"

instrumentation/gin-gonic/gin/example/Dockerfile renamed to instrumentation/github.com/gin-gonic/gin/example/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# limitations under the License.
1414
FROM golang:alpine AS base
1515
COPY . /src/
16-
WORKDIR /src/instrumentation/gin-gonic/gin
16+
WORKDIR /src/instrumentation/github.com/gin-gonic/gin
1717

1818
FROM base AS gin-server
1919
RUN go install ./example/server.go
File renamed without changes.

instrumentation/gin-gonic/gin/example/docker-compose.yml renamed to instrumentation/github.com/gin-gonic/gin/example/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ services:
2626
gin-server:
2727
build:
2828
dockerfile: $PWD/Dockerfile
29-
context: ../../../..
29+
context: ../../../../..
3030
ports:
3131
- "8080:80"
3232
command:

instrumentation/gin-gonic/gin/example/server.go renamed to instrumentation/github.com/gin-gonic/gin/example/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import (
2222

2323
"github.com/gin-gonic/gin"
2424

25-
gintrace "go.opentelemetry.io/contrib/instrumentation/gin-gonic/gin"
25+
gintrace "go.opentelemetry.io/contrib/instrumentation/github.com/gin-gonic/gin"
2626
otelglobal "go.opentelemetry.io/otel/api/global"
2727
"go.opentelemetry.io/otel/api/kv"
2828
oteltrace "go.opentelemetry.io/otel/api/trace"

instrumentation/gin-gonic/gin/gintrace.go renamed to instrumentation/github.com/gin-gonic/gin/gintrace.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import (
3131

3232
const (
3333
tracerKey = "otel-go-contrib-tracer"
34-
tracerName = "go.opentelemetry.io/contrib/instrumentation/gin-gonic/gin"
34+
tracerName = "go.opentelemetry.io/contrib/instrumentation/github.com/gin-gonic/gin"
3535
)
3636

3737
// Middleware returns middleware that will trace incoming requests.

instrumentation/gin-gonic/gin/gintrace_test.go renamed to instrumentation/github.com/gin-gonic/gin/gintrace_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ func TestChildSpanFromGlobalTracer(t *testing.T) {
5252
spanTracer := span.Tracer()
5353
mockTracer, ok := spanTracer.(*mocktrace.Tracer)
5454
require.True(t, ok)
55-
assert.Equal(t, "go.opentelemetry.io/contrib/instrumentation/gin-gonic/gin", mockTracer.Name)
55+
assert.Equal(t, "go.opentelemetry.io/contrib/instrumentation/github.com/gin-gonic/gin", mockTracer.Name)
5656
})
5757

5858
r := httptest.NewRequest("GET", "/user/123", nil)

instrumentation/gin-gonic/gin/go.mod renamed to instrumentation/github.com/gin-gonic/gin/go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
module go.opentelemetry.io/contrib/instrumentation/gin-gonic/gin
1+
module go.opentelemetry.io/contrib/instrumentation/github.com/gin-gonic/gin
22

33
go 1.14
44

5-
replace go.opentelemetry.io/contrib => ../../..
5+
replace go.opentelemetry.io/contrib => ../../../..
66

77
require (
88
github.com/gin-gonic/gin v1.6.3

0 commit comments

Comments
 (0)