Skip to content

Commit 3ad5a2c

Browse files
authored
Deprecate otelmemcache, otelgocql (#4164)
1 parent 417fc12 commit 3ad5a2c

File tree

16 files changed

+38
-9
lines changed

16 files changed

+38
-9
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
6363
- The `go.opentelemetry.io/contrib/instrumentation/github.com/astaxie/beego/otelbeego` module is deprecated. (#4092, #4104)
6464
- The `go.opentelemetry.io/contrib/instrumentation/github.com/go-kit/kit/otelkit` module is deprecated. (#4093, #4104)
6565
- The `go.opentelemetry.io/contrib/instrumentation/github.com/Shopify/sarama/otelsarama` module is deprecated. (#4099)
66+
- The `go.opentelemetry.io/contrib/instrumentation/github.com/bradfitz/gomemcache/memcache/otelmemcache` module is deprecated. (#4164)
67+
- The `go.opentelemetry.io/contrib/instrumentation/github.com/gocql/gocql/otelgocql` module is deprecated. (#4164)
6668

6769
### Removed
6870

instrumentation/README.md

+2-5
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,8 @@ The following instrumentation packages are provided for popular Go packages and
4343
| Instrumentation Package | Metrics | Traces |
4444
| :---------------------: | :-----: | :----: |
4545
| [github.com/aws/aws-sdk-go-v2](./github.com/aws/aws-sdk-go-v2/otelaws)| ||
46-
| [github.com/bradfitz/gomemcache](./github.com/bradfitz/gomemcache/memcache/otelmemcache) | ||
4746
| [github.com/emicklei/go-restful](./github.com/emicklei/go-restful/otelrestful) | ||
4847
| [github.com/gin-gonic/gin](./github.com/gin-gonic/gin/otelgin) | ||
49-
| [github.com/gocql/gocql](./github.com/gocql/gocql/otelgocql) |||
5048
| [github.com/gorilla/mux](./github.com/gorilla/mux/otelmux) | ||
5149
| [github.com/labstack/echo](./github.com/labstack/echo/otelecho) | ||
5250
| [go.mongodb.org/mongo-driver](./go.mongodb.org/mongo-driver/mongo/otelmongo) | ||
@@ -57,7 +55,6 @@ The following instrumentation packages are provided for popular Go packages and
5755
| [net/http/httptrace](./net/http/httptrace/otelhttptrace) | ||
5856
| [runtime](./runtime) || |
5957

60-
6158
## Organization
6259

6360
In order to ensure the maintainability and discoverability of instrumentation packages, the following guidelines MUST be followed.
@@ -66,7 +63,7 @@ In order to ensure the maintainability and discoverability of instrumentation pa
6663

6764
All instrumentation packages SHOULD be of the form:
6865

69-
```
66+
```sh
7067
go.opentelemetry.io/contrib/instrumentation/{IMPORT_PATH}/otel{PACKAGE_NAME}
7168
```
7269

@@ -90,7 +87,7 @@ Additionally the following guidelines for package composition need to be followe
9087
Therefore, an appropriately configured `go.mod` and `go.sum` need to exist for each package.
9188
- To help understand the instrumentation a Go package documentation SHOULD be included.
9289
This documentation SHOULD be in a dedicated `doc.go` file if the package is more than one file.
93-
It SHOULD contain useful information like what the purpose of the instrumentation is, how to use it, and any compatibility restrictions that might exist.
90+
It SHOULD contain useful information like what the purpose of the instrumentation is, how to use it, and any compatibility restrictions that might exist.
9491
- Examples of how to actually use the instrumentation SHOULD be included.
9592
- All instrumentation packages MUST provide an option to accept a `TracerProvider` if it uses a Tracer, a `MeterProvider` if it uses a Meter, and `Propagators` if it handles any context propagation.
9693
Also, packages MUST use the default `TracerProvider`, `MeterProvider`, and `Propagators` supplied by the `global` package if no optional one is provided.

instrumentation/github.com/Shopify/sarama/otelsarama/example/go.mod

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Deprecated: This module is no longer supported.
2+
// github.com/Shopify/sarama moved to github.com/IBM/sarama.
13
module go.opentelemetry.io/contrib/instrumentation/github.com/Shopify/sarama/otelsarama/example
24

35
go 1.18

instrumentation/github.com/astaxie/beego/otelbeego/example/go.mod

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Deprecated: This module is no longer supported.
12
module go.opentelemetry.io/contrib/instrumentation/github.com/astaxie/beego/otelbeego/example
23

34
go 1.18

instrumentation/github.com/bradfitz/gomemcache/memcache/otelmemcache/doc.go

+2
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,6 @@
1919
//
2020
// The instrumentation works by wrapping the memcached client by calling
2121
// `NewClientWithTracing` and tracing it's every operation.
22+
//
23+
// Deprecated: This module is no longer supported.
2224
package otelmemcache // import "go.opentelemetry.io/contrib/instrumentation/github.com/bradfitz/gomemcache/memcache/otelmemcache"

instrumentation/github.com/bradfitz/gomemcache/memcache/otelmemcache/example/client.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import (
2121

2222
"github.com/bradfitz/gomemcache/memcache"
2323

24-
"go.opentelemetry.io/contrib/instrumentation/github.com/bradfitz/gomemcache/memcache/otelmemcache"
24+
"go.opentelemetry.io/contrib/instrumentation/github.com/bradfitz/gomemcache/memcache/otelmemcache" //nolint:staticcheck // This is deprecated and will be removed in the next release.
2525

2626
oteltracestdout "go.opentelemetry.io/otel/exporters/stdout/stdouttrace"
2727
sdktrace "go.opentelemetry.io/otel/sdk/trace"

instrumentation/github.com/bradfitz/gomemcache/memcache/otelmemcache/go.mod

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Deprecated: This module is no longer supported.
12
module go.opentelemetry.io/contrib/instrumentation/github.com/bradfitz/gomemcache/memcache/otelmemcache
23

34
go 1.19

instrumentation/github.com/bradfitz/gomemcache/memcache/otelmemcache/test/gomemcache_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import (
2222
"github.com/stretchr/testify/assert"
2323
"github.com/stretchr/testify/require"
2424

25-
"go.opentelemetry.io/contrib/instrumentation/github.com/bradfitz/gomemcache/memcache/otelmemcache"
25+
"go.opentelemetry.io/contrib/instrumentation/github.com/bradfitz/gomemcache/memcache/otelmemcache" //nolint:staticcheck // This is deprecated and will be removed in the next release.
2626
"go.opentelemetry.io/contrib/instrumentation/github.com/bradfitz/gomemcache/memcache/otelmemcache/internal"
2727
"go.opentelemetry.io/contrib/internal/util"
2828
"go.opentelemetry.io/otel/codes"

instrumentation/github.com/go-kit/kit/otelkit/example/go.mod

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Deprecated: This module is no longer supported.
12
module go.opentelemetry.io/contrib/instrumentation/github.com/go-kit/kit/otelkit/example
23

34
go 1.18

instrumentation/github.com/gocql/gocql/otelgocql/doc.go

+2
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,6 @@
1313
// limitations under the License.
1414

1515
// Package otelgocql instruments the github.com/gocql/gocql package.
16+
//
17+
// Deprecated: This module is no longer supported.
1618
package otelgocql // import "go.opentelemetry.io/contrib/instrumentation/github.com/gocql/gocql/otelgocql"

instrumentation/github.com/gocql/gocql/otelgocql/example/client.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ import (
4848
"go.opentelemetry.io/otel/sdk/metric"
4949
"go.opentelemetry.io/otel/sdk/trace"
5050

51-
"go.opentelemetry.io/contrib/instrumentation/github.com/gocql/gocql/otelgocql"
51+
"go.opentelemetry.io/contrib/instrumentation/github.com/gocql/gocql/otelgocql" //nolint:staticcheck // This is deprecated and will be removed in the next release.
5252
)
5353

5454
const keyspace = "gocql_integration_example"

instrumentation/github.com/gocql/gocql/otelgocql/example/doc.go

+2
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,6 @@
1313
// limitations under the License.
1414

1515
// Package main provides an example use of the otelgocql instrumentation.
16+
//
17+
// Deprecated: This module is no longer supported.
1618
package main

instrumentation/github.com/gocql/gocql/otelgocql/example/go.mod

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Deprecated: This module is no longer supported.
12
module go.opentelemetry.io/contrib/instrumentation/github.com/gocql/gocql/otelgocql/example
23

34
go 1.18

instrumentation/github.com/gocql/gocql/otelgocql/go.mod

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Deprecated: This module is no longer supported.
12
module go.opentelemetry.io/contrib/instrumentation/github.com/gocql/gocql/otelgocql
23

34
go 1.19

instrumentation/github.com/gocql/gocql/otelgocql/test/gocql_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import (
2626
"github.com/stretchr/testify/assert"
2727
"github.com/stretchr/testify/require"
2828

29-
"go.opentelemetry.io/contrib/instrumentation/github.com/gocql/gocql/otelgocql"
29+
"go.opentelemetry.io/contrib/instrumentation/github.com/gocql/gocql/otelgocql" //nolint:staticcheck // This is deprecated and will be removed in the next release.
3030
"go.opentelemetry.io/contrib/instrumentation/github.com/gocql/gocql/otelgocql/internal"
3131
"go.opentelemetry.io/contrib/internal/util"
3232
"go.opentelemetry.io/otel/attribute"

zpages/doc.go

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// Copyright The OpenTelemetry Authors
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
// Package zpages implements a collection of HTML pages that display
16+
// telemetry stats.
17+
package zpages // import "go.opentelemetry.io/contrib/zpages"

0 commit comments

Comments
 (0)