Skip to content

Commit 6f58227

Browse files
committed
revert SemVersion fucntion anf deprecate it
1 parent 9dca665 commit 6f58227

File tree

49 files changed

+146
-0
lines changed

Some content is hidden

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

49 files changed

+146
-0
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
1111
### Added
1212

1313
- Add the new `go.opentelemetry.io/contrib/instrgen` package to provide auto-generated source code instrumentation. (#3068, #3108)
14+
### Changed
1415
- Remove `semver:` prefix from instrumentation version (#3681)
16+
- Deprecated `SemVersion` function
1517

1618
## [1.16.1/0.41.1/0.10.1] - 2023-05-02
1719

detectors/aws/ec2/version.go

+3
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ func Version() string {
2121
}
2222

2323
// SemVersion is the semantic version to be supplied to tracer/meter creation.
24+
//
25+
// Deprecated: SemVersion() does not return the version with the `sem:` prefix.
26+
// Please use Version() instead.
2427
func SemVersion() string {
2528
return Version()
2629
}

detectors/aws/ecs/version.go

+3
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ func Version() string {
2121
}
2222

2323
// SemVersion is the semantic version to be supplied to tracer/meter creation.
24+
//
25+
// Deprecated: SemVersion() does not return the version with the `sem:` prefix.
26+
// Please use Version() instead.
2427
func SemVersion() string {
2528
return Version()
2629
}

detectors/aws/eks/version.go

+3
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ func Version() string {
2121
}
2222

2323
// SemVersion is the semantic version to be supplied to tracer/meter creation.
24+
//
25+
// Deprecated: SemVersion() does not return the version with the `sem:` prefix.
26+
// Please use Version() instead.
2427
func SemVersion() string {
2528
return Version()
2629
}

detectors/gcp/version.go

+3
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ func Version() string {
2121
}
2222

2323
// SemVersion is the semantic version to be supplied to tracer/meter creation.
24+
//
25+
// Deprecated: SemVersion() does not return the version with the `sem:` prefix.
26+
// Please use Version() instead.
2427
func SemVersion() string {
2528
return Version()
2629
}

instrumentation/github.com/Shopify/sarama/otelsarama/test/version.go

+3
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ func Version() string {
2121
}
2222

2323
// SemVersion is the semantic version to be supplied to tracer/meter creation.
24+
//
25+
// Deprecated: SemVersion() does not return the version with the `sem:` prefix.
26+
// Please use Version() instead.
2427
func SemVersion() string {
2528
return Version()
2629
}

instrumentation/github.com/Shopify/sarama/otelsarama/version.go

+3
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ func Version() string {
2121
}
2222

2323
// SemVersion is the semantic version to be supplied to tracer/meter creation.
24+
//
25+
// Deprecated: SemVersion() does not return the version with the `sem:` prefix.
26+
// Please use Version() instead.
2427
func SemVersion() string {
2528
return Version()
2629
}

instrumentation/github.com/astaxie/beego/otelbeego/test/version.go

+3
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ func Version() string {
2121
}
2222

2323
// SemVersion is the semantic version to be supplied to tracer/meter creation.
24+
//
25+
// Deprecated: SemVersion() does not return the version with the `sem:` prefix.
26+
// Please use Version() instead.
2427
func SemVersion() string {
2528
return Version()
2629
}

instrumentation/github.com/astaxie/beego/otelbeego/version.go

+3
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ func Version() string {
2121
}
2222

2323
// SemVersion is the semantic version to be supplied to tracer/meter creation.
24+
//
25+
// Deprecated: SemVersion() does not return the version with the `sem:` prefix.
26+
// Please use Version() instead.
2427
func SemVersion() string {
2528
return Version()
2629
}

instrumentation/github.com/aws/aws-lambda-go/otellambda/version.go

+3
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ func Version() string {
2121
}
2222

2323
// SemVersion is the semantic version to be supplied to tracer/meter creation.
24+
//
25+
// Deprecated: SemVersion() does not return the version with the `sem:` prefix.
26+
// Please use Version() instead.
2427
func SemVersion() string {
2528
return Version()
2629
}

instrumentation/github.com/aws/aws-sdk-go-v2/otelaws/test/version.go

+3
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ func Version() string {
2121
}
2222

2323
// SemVersion is the semantic version to be supplied to tracer/meter creation.
24+
//
25+
// Deprecated: SemVersion() does not return the version with the `sem:` prefix.
26+
// Please use Version() instead.
2427
func SemVersion() string {
2528
return Version()
2629
}

instrumentation/github.com/aws/aws-sdk-go-v2/otelaws/version.go

+3
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ func Version() string {
2121
}
2222

2323
// SemVersion is the semantic version to be supplied to tracer/meter creation.
24+
//
25+
// Deprecated: SemVersion() does not return the version with the `sem:` prefix.
26+
// Please use Version() instead.
2427
func SemVersion() string {
2528
return Version()
2629
}

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

+3
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ func Version() string {
2121
}
2222

2323
// SemVersion is the semantic version to be supplied to tracer/meter creation.
24+
//
25+
// Deprecated: SemVersion() does not return the version with the `sem:` prefix.
26+
// Please use Version() instead.
2427
func SemVersion() string {
2528
return Version()
2629
}

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

+3
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ func Version() string {
2121
}
2222

2323
// SemVersion is the semantic version to be supplied to tracer/meter creation.
24+
//
25+
// Deprecated: SemVersion() does not return the version with the `sem:` prefix.
26+
// Please use Version() instead.
2427
func SemVersion() string {
2528
return Version()
2629
}

instrumentation/github.com/emicklei/go-restful/otelrestful/test/version.go

+3
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ func Version() string {
2121
}
2222

2323
// SemVersion is the semantic version to be supplied to tracer/meter creation.
24+
//
25+
// Deprecated: SemVersion() does not return the version with the `sem:` prefix.
26+
// Please use Version() instead.
2427
func SemVersion() string {
2528
return Version()
2629
}

instrumentation/github.com/emicklei/go-restful/otelrestful/version.go

+3
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ func Version() string {
2121
}
2222

2323
// SemVersion is the semantic version to be supplied to tracer/meter creation.
24+
//
25+
// Deprecated: SemVersion() does not return the version with the `sem:` prefix.
26+
// Please use Version() instead.
2427
func SemVersion() string {
2528
return Version()
2629
}

instrumentation/github.com/gin-gonic/gin/otelgin/test/version.go

+3
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ func Version() string {
2121
}
2222

2323
// SemVersion is the semantic version to be supplied to tracer/meter creation.
24+
//
25+
// Deprecated: SemVersion() does not return the version with the `sem:` prefix.
26+
// Please use Version() instead.
2427
func SemVersion() string {
2528
return Version()
2629
}

instrumentation/github.com/gin-gonic/gin/otelgin/version.go

+3
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ func Version() string {
2121
}
2222

2323
// SemVersion is the semantic version to be supplied to tracer/meter creation.
24+
//
25+
// Deprecated: SemVersion() does not return the version with the `sem:` prefix.
26+
// Please use Version() instead.
2427
func SemVersion() string {
2528
return Version()
2629
}

instrumentation/github.com/go-kit/kit/otelkit/test/version.go

+3
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ func Version() string {
2121
}
2222

2323
// SemVersion is the semantic version to be supplied to tracer/meter creation.
24+
//
25+
// Deprecated: SemVersion() does not return the version with the `sem:` prefix.
26+
// Please use Version() instead.
2427
func SemVersion() string {
2528
return Version()
2629
}

instrumentation/github.com/go-kit/kit/otelkit/version.go

+3
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ func Version() string {
2121
}
2222

2323
// SemVersion is the semantic version to be supplied to tracer/meter creation.
24+
//
25+
// Deprecated: SemVersion() does not return the version with the `sem:` prefix.
26+
// Please use Version() instead.
2427
func SemVersion() string {
2528
return Version()
2629
}

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

+3
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ func Version() string {
2121
}
2222

2323
// SemVersion is the semantic version to be supplied to tracer/meter creation.
24+
//
25+
// Deprecated: SemVersion() does not return the version with the `sem:` prefix.
26+
// Please use Version() instead.
2427
func SemVersion() string {
2528
return Version()
2629
}

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

+3
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ func Version() string {
2121
}
2222

2323
// SemVersion is the semantic version to be supplied to tracer/meter creation.
24+
//
25+
// Deprecated: SemVersion() does not return the version with the `sem:` prefix.
26+
// Please use Version() instead.
2427
func SemVersion() string {
2528
return Version()
2629
}

instrumentation/github.com/gorilla/mux/otelmux/test/version.go

+3
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ func Version() string {
2121
}
2222

2323
// SemVersion is the semantic version to be supplied to tracer/meter creation.
24+
//
25+
// Deprecated: SemVersion() does not return the version with the `sem:` prefix.
26+
// Please use Version() instead.
2427
func SemVersion() string {
2528
return Version()
2629
}

instrumentation/github.com/gorilla/mux/otelmux/version.go

+3
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ func Version() string {
2121
}
2222

2323
// SemVersion is the semantic version to be supplied to tracer/meter creation.
24+
//
25+
// Deprecated: SemVersion() does not return the version with the `sem:` prefix.
26+
// Please use Version() instead.
2427
func SemVersion() string {
2528
return Version()
2629
}

instrumentation/github.com/labstack/echo/otelecho/test/version.go

+3
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ func Version() string {
2121
}
2222

2323
// SemVersion is the semantic version to be supplied to tracer/meter creation.
24+
//
25+
// Deprecated: SemVersion() does not return the version with the `sem:` prefix.
26+
// Please use Version() instead.
2427
func SemVersion() string {
2528
return Version()
2629
}

instrumentation/github.com/labstack/echo/otelecho/version.go

+3
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ func Version() string {
2121
}
2222

2323
// SemVersion is the semantic version to be supplied to tracer/meter creation.
24+
//
25+
// Deprecated: SemVersion() does not return the version with the `sem:` prefix.
26+
// Please use Version() instead.
2427
func SemVersion() string {
2528
return Version()
2629
}

instrumentation/go.mongodb.org/mongo-driver/mongo/otelmongo/test/version.go

+3
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ func Version() string {
2121
}
2222

2323
// SemVersion is the semantic version to be supplied to tracer/meter creation.
24+
//
25+
// Deprecated: SemVersion() does not return the version with the `sem:` prefix.
26+
// Please use Version() instead.
2427
func SemVersion() string {
2528
return Version()
2629
}

instrumentation/go.mongodb.org/mongo-driver/mongo/otelmongo/version.go

+3
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ func Version() string {
2121
}
2222

2323
// SemVersion is the semantic version to be supplied to tracer/meter creation.
24+
//
25+
// Deprecated: SemVersion() does not return the version with the `sem:` prefix.
26+
// Please use Version() instead.
2427
func SemVersion() string {
2528
return Version()
2629
}

instrumentation/google.golang.org/grpc/otelgrpc/test/version.go

+3
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ func Version() string {
2121
}
2222

2323
// SemVersion is the semantic version to be supplied to tracer/meter creation.
24+
//
25+
// Deprecated: SemVersion() does not return the version with the `sem:` prefix.
26+
// Please use Version() instead.
2427
func SemVersion() string {
2528
return Version()
2629
}

instrumentation/google.golang.org/grpc/otelgrpc/version.go

+3
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ func Version() string {
2121
}
2222

2323
// SemVersion is the semantic version to be supplied to tracer/meter creation.
24+
//
25+
// Deprecated: SemVersion() does not return the version with the `sem:` prefix.
26+
// Please use Version() instead.
2427
func SemVersion() string {
2528
return Version()
2629
}

instrumentation/gopkg.in/macaron.v1/otelmacaron/test/version.go

+3
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ func Version() string {
2121
}
2222

2323
// SemVersion is the semantic version to be supplied to tracer/meter creation.
24+
//
25+
// Deprecated: SemVersion() does not return the version with the `sem:` prefix.
26+
// Please use Version() instead.
2427
func SemVersion() string {
2528
return Version()
2629
}

instrumentation/gopkg.in/macaron.v1/otelmacaron/version.go

+3
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ func Version() string {
2121
}
2222

2323
// SemVersion is the semantic version to be supplied to tracer/meter creation.
24+
//
25+
// Deprecated: SemVersion() does not return the version with the `sem:` prefix.
26+
// Please use Version() instead.
2427
func SemVersion() string {
2528
return Version()
2629
}

instrumentation/host/version.go

+3
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ func Version() string {
2121
}
2222

2323
// SemVersion is the semantic version to be supplied to tracer/meter creation.
24+
//
25+
// Deprecated: SemVersion() does not return the version with the `sem:` prefix.
26+
// Please use Version() instead.
2427
func SemVersion() string {
2528
return Version()
2629
}

instrumentation/net/http/httptrace/otelhttptrace/test/version.go

+3
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ func Version() string {
2121
}
2222

2323
// SemVersion is the semantic version to be supplied to tracer/meter creation.
24+
//
25+
// Deprecated: SemVersion() does not return the version with the `sem:` prefix.
26+
// Please use Version() instead.
2427
func SemVersion() string {
2528
return Version()
2629
}

instrumentation/net/http/httptrace/otelhttptrace/version.go

+3
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ func Version() string {
2121
}
2222

2323
// SemVersion is the semantic version to be supplied to tracer/meter creation.
24+
//
25+
// Deprecated: SemVersion() does not return the version with the `sem:` prefix.
26+
// Please use Version() instead.
2427
func SemVersion() string {
2528
return Version()
2629
}

instrumentation/net/http/otelhttp/test/version.go

+3
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ func Version() string {
2121
}
2222

2323
// SemVersion is the semantic version to be supplied to tracer/meter creation.
24+
//
25+
// Deprecated: SemVersion() does not return the version with the `sem:` prefix.
26+
// Please use Version() instead.
2427
func SemVersion() string {
2528
return Version()
2629
}

instrumentation/net/http/otelhttp/version.go

+3
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ func Version() string {
2121
}
2222

2323
// SemVersion is the semantic version to be supplied to tracer/meter creation.
24+
//
25+
// Deprecated: SemVersion() does not return the version with the `sem:` prefix.
26+
// Please use Version() instead.
2427
func SemVersion() string {
2528
return Version()
2629
}

instrumentation/runtime/version.go

+3
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ func Version() string {
2121
}
2222

2323
// SemVersion is the semantic version to be supplied to tracer/meter creation.
24+
//
25+
// Deprecated: SemVersion() does not return the version with the `sem:` prefix.
26+
// Please use Version() instead.
2427
func SemVersion() string {
2528
return Version()
2629
}

propagators/aws/version.go

+3
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ func Version() string {
2121
}
2222

2323
// SemVersion is the semantic version to be supplied to tracer/meter creation.
24+
//
25+
// Deprecated: SemVersion() does not return the version with the `sem:` prefix.
26+
// Please use Version() instead.
2427
func SemVersion() string {
2528
return Version()
2629
}

propagators/b3/version.go

+3
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ func Version() string {
2121
}
2222

2323
// SemVersion is the semantic version to be supplied to tracer/meter creation.
24+
//
25+
// Deprecated: SemVersion() does not return the version with the `sem:` prefix.
26+
// Please use Version() instead.
2427
func SemVersion() string {
2528
return Version()
2629
}

0 commit comments

Comments
 (0)