Skip to content

Commit

Permalink
Move instrumentation to conform specification
Browse files Browse the repository at this point in the history
  • Loading branch information
XSAM committed Jan 4, 2021
1 parent e1af286 commit 0dd02ce
Show file tree
Hide file tree
Showing 21 changed files with 15 additions and 232 deletions.
4 changes: 2 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ updates:
interval: "weekly"
day: "sunday"
- package-ecosystem: "gomod"
directory: "/instrumentation/database/sql"
directory: "/instrumentation/database/sql/otelsql"
labels:
- dependencies
- go
Expand All @@ -466,7 +466,7 @@ updates:
interval: "weekly"
day: "sunday"
- package-ecosystem: "gomod"
directory: "/instrumentation/database/sql/example"
directory: "/instrumentation/database/sql/otelsql/example"
labels:
- dependencies
- go
Expand Down
2 changes: 1 addition & 1 deletion instrumentation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ The following instrumentation packages are provided for popular Go packages and
| [net/http](./net/http/otelhttp) |||
| [net/http/httptrace](./net/http/httptrace/otelhttptrace) | ||
| [runtime](./runtime) || |
| [database/sql](./database/sql) | ||
| [database/sql](./database/sql/otelsql) | ||


Additionally, these are the known instrumentation packages that exist outside of this repository for popular Go packages.
Expand Down
20 changes: 0 additions & 20 deletions instrumentation/database/sql/example/Dockerfile

This file was deleted.

25 changes: 0 additions & 25 deletions instrumentation/database/sql/example/README.md

This file was deleted.

29 changes: 0 additions & 29 deletions instrumentation/database/sql/example/docker-compose.yml

This file was deleted.

16 changes: 0 additions & 16 deletions instrumentation/database/sql/example/go.mod

This file was deleted.

29 changes: 0 additions & 29 deletions instrumentation/database/sql/example/go.sum

This file was deleted.

98 changes: 0 additions & 98 deletions instrumentation/database/sql/example/main.go

This file was deleted.

10 changes: 0 additions & 10 deletions instrumentation/database/sql/go.mod

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (
)

const (
instrumentationName = "go.opentelemetry.io/contrib/instrumentation/database/sql"
instrumentationName = "go.opentelemetry.io/contrib/instrumentation/database/sql/otelsql"
)

// SpanNameFormatter is an interface that used to format span names.
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
//
// otelsql will trace every interface from database/sql/driver package
// which has context except driver.Pinger.
package otelsql // import "go.opentelemetry.io/contrib/instrumentation/database/sql"
package otelsql // import "go.opentelemetry.io/contrib/instrumentation/database/sql/otelsql"
File renamed without changes.
10 changes: 10 additions & 0 deletions instrumentation/database/sql/otelsql/go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module go.opentelemetry.io/contrib/instrumentation/database/sql/otelsql

go 1.15

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

require (
go.opentelemetry.io/contrib v0.15.1
go.opentelemetry.io/otel v0.15.0
)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 0dd02ce

Please sign in to comment.