Skip to content

Commit 32a76fe

Browse files
authored
Rename plugins directory to instrumentation (#47)
* Rename plugins director to instrumentation As per open-telemetry/opentelemetry-specification#539 * Update package names * Plugin -> instrumentation
1 parent d49ffc8 commit 32a76fe

57 files changed

Lines changed: 43 additions & 43 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CONTRIBUTING.md

Lines changed: 6 additions & 6 deletions

doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// This package provides all of its functionality through its
22
// submodules. The submodules in the exporters directory provide
33
// implementations for trace and metric exporters for third-party
4-
// collectors, and submodules in the plugins directory provide the
4+
// collectors, and submodules in the instrumentation directory provide the
55
// instrumentation for the popular go libraries.
66
package contrib
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/plugins/gin-gonic/gin"
22+
package gin // import "go.opentelemetry.io/contrib/instrumentation/gin-gonic/gin"

plugins/gin-gonic/gin/example/Dockerfile renamed to instrumentation/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/plugins/gin-gonic/gin
16+
WORKDIR /src/instrumentation/gin-gonic/gin
1717

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

plugins/gin-gonic/gin/example/server.go renamed to instrumentation/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/plugins/gin-gonic/gin"
25+
gintrace "go.opentelemetry.io/contrib/instrumentation/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"
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/plugins/gin-gonic/gin"
34+
tracerName = "go.opentelemetry.io/contrib/instrumentation/gin-gonic/gin"
3535
)
3636

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

plugins/gin-gonic/gin/gintrace_test.go renamed to instrumentation/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/plugins/gin-gonic/gin", mockTracer.Name)
55+
assert.Equal(t, "go.opentelemetry.io/contrib/instrumentation/gin-gonic/gin", mockTracer.Name)
5656
})
5757

5858
r := httptest.NewRequest("GET", "/user/123", nil)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module go.opentelemetry.io/contrib/plugins/gin-gonic/gin
1+
module go.opentelemetry.io/contrib/instrumentation/gin-gonic/gin
22

33
go 1.14
44

0 commit comments

Comments
 (0)