Skip to content

Commit

Permalink
Deprecate the gorilla/mux instrumentor and test pkgs (#262)
Browse files Browse the repository at this point in the history
* Deprecate the gorilla/mux instrumentor and text pkgs

* Fix lint
  • Loading branch information
MrAlias authored Aug 30, 2023
1 parent 9f59848 commit 2e7d536
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ OpenTelemetry Go Automatic Instrumentation adheres to [Semantic Versioning](http
- Fix context propagation across different goroutines. ([#118](https://github.com/open-telemetry/opentelemetry-go-instrumentation/pull/118))
- The offset tracker can once again build binaries for the Go stdlib. ([#256]https://github.com/open-telemetry/opentelemetry-go-instrumentation/pull/256)

### Deprecated

- The `go.opentelemetry.io/auto/pkg/instrumentors/bpf/github.com/gorilla/mux` package is deprecated.
It will be removed in the following release. ([#262](https://github.com/open-telemetry/opentelemetry-go-instrumentation/pull/262))
- The `go.opentelemetry.io/auto/test/e2e/gorillamux` module is deprecated.
It will be removed in the following release. ([#262](https://github.com/open-telemetry/opentelemetry-go-instrumentation/pull/262))

## [v0.2.2-alpha] - 2023-07-12

### Added
Expand Down
4 changes: 4 additions & 0 deletions pkg/instrumentors/bpf/github.com/gorilla/mux/probe.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.

// Package mux provides an instrumentation probe for the github.com/gorilla/mux
// package.
//
// Deprecated: This package will be removed in the next release.
package mux

import (
Expand Down
2 changes: 1 addition & 1 deletion pkg/instrumentors/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"go.opentelemetry.io/auto/pkg/instrumentors/allocator"
dbSql "go.opentelemetry.io/auto/pkg/instrumentors/bpf/database/sql"
"go.opentelemetry.io/auto/pkg/instrumentors/bpf/github.com/gin-gonic/gin"
gorillaMux "go.opentelemetry.io/auto/pkg/instrumentors/bpf/github.com/gorilla/mux"
gorillaMux "go.opentelemetry.io/auto/pkg/instrumentors/bpf/github.com/gorilla/mux" // nolint:staticcheck // TODO: remove in #263
"go.opentelemetry.io/auto/pkg/instrumentors/bpf/google/golang/org/grpc"
grpcServer "go.opentelemetry.io/auto/pkg/instrumentors/bpf/google/golang/org/grpc/server"
httpClient "go.opentelemetry.io/auto/pkg/instrumentors/bpf/net/http/client"
Expand Down
1 change: 1 addition & 0 deletions test/e2e/gorillamux/go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Deprecated: This module will be removed in the next release.
module go.opentelemetry.io/auto/test/e2e/gorillamux

go 1.20
Expand Down

0 comments on commit 2e7d536

Please sign in to comment.