mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2024-11-28 08:38:51 +02:00
Drop support for Go 1.19 (#4481)
* Drop support for Go 1.19 * Add change to changelog * Bump all modules to 1.20 * Update exponential_histogram_test.go --------- Co-authored-by: Robert Pająk <pellared@hotmail.com>
This commit is contained in:
parent
6eedabf874
commit
9737995cdb
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@ -99,7 +99,7 @@ jobs:
|
||||
compatibility-test:
|
||||
strategy:
|
||||
matrix:
|
||||
go-version: ["~1.21.1", "~1.20.8", 1.19]
|
||||
go-version: ["~1.21.1", "~1.20.8"]
|
||||
os: [ubuntu-latest, macos-latest, windows-latest]
|
||||
# GitHub Actions does not support arm* architectures on default
|
||||
# runners. It is possible to accomplish this with a self-hosted runner
|
||||
|
2
.github/workflows/create-dependabot-pr.yml
vendored
2
.github/workflows/create-dependabot-pr.yml
vendored
@ -10,7 +10,7 @@ jobs:
|
||||
- name: Install Go
|
||||
uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: 1.19
|
||||
go-version: "~1.21.1"
|
||||
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
|
@ -24,6 +24,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
|
||||
- Removed the deprecated `go.opentelemetry.io/otel/example/jaeger` package. (#4467)
|
||||
- Removed the deprecated `go.opentelemetry.io/otel/sdk/metric/aggregation` package. (#4468)
|
||||
- Removed the deprecated internal packages in `go.opentelemetry.io/otel/exporters/otlp` and its sub-packages. (#4469)
|
||||
- Dropped guaranteed support for versions of Go less than 1.20. (#4481)
|
||||
|
||||
## [1.17.0/0.40.0/0.0.5] 2023-08-28
|
||||
|
||||
|
2
Makefile
2
Makefile
@ -210,7 +210,7 @@ go-mod-tidy/%: DIR=$*
|
||||
go-mod-tidy/%: | crosslink
|
||||
@echo "$(GO) mod tidy in $(DIR)" \
|
||||
&& cd $(DIR) \
|
||||
&& $(GO) mod tidy -compat=1.19
|
||||
&& $(GO) mod tidy -compat=1.20
|
||||
|
||||
.PHONY: lint-modules
|
||||
lint-modules: go-mod-tidy
|
||||
|
@ -55,19 +55,14 @@ Currently, this project supports the following environments.
|
||||
|---------|------------|--------------|
|
||||
| Ubuntu | 1.21 | amd64 |
|
||||
| Ubuntu | 1.20 | amd64 |
|
||||
| Ubuntu | 1.19 | amd64 |
|
||||
| Ubuntu | 1.21 | 386 |
|
||||
| Ubuntu | 1.20 | 386 |
|
||||
| Ubuntu | 1.19 | 386 |
|
||||
| MacOS | 1.21 | amd64 |
|
||||
| MacOS | 1.20 | amd64 |
|
||||
| MacOS | 1.19 | amd64 |
|
||||
| Windows | 1.21 | amd64 |
|
||||
| Windows | 1.20 | amd64 |
|
||||
| Windows | 1.19 | amd64 |
|
||||
| Windows | 1.21 | 386 |
|
||||
| Windows | 1.20 | 386 |
|
||||
| Windows | 1.19 | 386 |
|
||||
|
||||
While this project should work for other systems, no compatibility guarantees
|
||||
are made for those systems currently.
|
||||
|
@ -1,6 +1,6 @@
|
||||
module go.opentelemetry.io/otel/bridge/opencensus
|
||||
|
||||
go 1.19
|
||||
go 1.20
|
||||
|
||||
require (
|
||||
github.com/stretchr/testify v1.8.4
|
||||
|
@ -1,6 +1,6 @@
|
||||
module go.opentelemetry.io/otel/bridge/opencensus/test
|
||||
|
||||
go 1.19
|
||||
go 1.20
|
||||
|
||||
require (
|
||||
go.opencensus.io v0.24.0
|
||||
|
@ -1,6 +1,6 @@
|
||||
module go.opentelemetry.io/otel/bridge/opentracing
|
||||
|
||||
go 1.19
|
||||
go 1.20
|
||||
|
||||
replace go.opentelemetry.io/otel => ../..
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
module go.opentelemetry.io/otel/bridge/opentracing/test
|
||||
|
||||
go 1.19
|
||||
go 1.20
|
||||
|
||||
replace go.opentelemetry.io/otel => ../../..
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
module go.opentelemetry.io/otel/example/fib
|
||||
|
||||
go 1.19
|
||||
go 1.20
|
||||
|
||||
require (
|
||||
go.opentelemetry.io/otel v1.17.0
|
||||
|
@ -1,6 +1,6 @@
|
||||
module go.opentelemetry.io/otel/example/namedtracer
|
||||
|
||||
go 1.19
|
||||
go 1.20
|
||||
|
||||
replace (
|
||||
go.opentelemetry.io/otel => ../..
|
||||
|
@ -1,6 +1,6 @@
|
||||
module go.opentelemetry.io/otel/example/opencensus
|
||||
|
||||
go 1.19
|
||||
go 1.20
|
||||
|
||||
replace (
|
||||
go.opentelemetry.io/otel => ../..
|
||||
|
@ -1,6 +1,6 @@
|
||||
module go.opentelemetry.io/otel/example/otel-collector
|
||||
|
||||
go 1.19
|
||||
go 1.20
|
||||
|
||||
replace (
|
||||
go.opentelemetry.io/otel => ../..
|
||||
|
@ -1,6 +1,6 @@
|
||||
module go.opentelemetry.io/otel/example/passthrough
|
||||
|
||||
go 1.19
|
||||
go 1.20
|
||||
|
||||
require (
|
||||
go.opentelemetry.io/otel v1.17.0
|
||||
|
@ -1,6 +1,6 @@
|
||||
module go.opentelemetry.io/otel/example/prometheus
|
||||
|
||||
go 1.19
|
||||
go 1.20
|
||||
|
||||
require (
|
||||
github.com/prometheus/client_golang v1.16.0
|
||||
|
@ -1,6 +1,6 @@
|
||||
module go.opentelemetry.io/otel/example/view
|
||||
|
||||
go 1.19
|
||||
go 1.20
|
||||
|
||||
require (
|
||||
github.com/prometheus/client_golang v1.16.0
|
||||
|
@ -1,6 +1,6 @@
|
||||
module go.opentelemetry.io/otel/example/zipkin
|
||||
|
||||
go 1.19
|
||||
go 1.20
|
||||
|
||||
replace (
|
||||
go.opentelemetry.io/otel => ../..
|
||||
|
@ -1,6 +1,6 @@
|
||||
module go.opentelemetry.io/otel/exporters/otlp/otlpmetric
|
||||
|
||||
go 1.19
|
||||
go 1.20
|
||||
|
||||
require github.com/stretchr/testify v1.8.4
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
module go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc
|
||||
|
||||
go 1.19
|
||||
go 1.20
|
||||
|
||||
retract v0.32.2 // Contains unresolvable dependencies.
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
module go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp
|
||||
|
||||
go 1.19
|
||||
go 1.20
|
||||
|
||||
retract v0.32.2 // Contains unresolvable dependencies.
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
module go.opentelemetry.io/otel/exporters/otlp/otlptrace
|
||||
|
||||
go 1.19
|
||||
go 1.20
|
||||
|
||||
require (
|
||||
github.com/google/go-cmp v0.5.9
|
||||
|
@ -1,6 +1,6 @@
|
||||
module go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc
|
||||
|
||||
go 1.19
|
||||
go 1.20
|
||||
|
||||
require (
|
||||
github.com/cenkalti/backoff/v4 v4.2.1
|
||||
|
@ -1,6 +1,6 @@
|
||||
module go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp
|
||||
|
||||
go 1.19
|
||||
go 1.20
|
||||
|
||||
require (
|
||||
github.com/cenkalti/backoff/v4 v4.2.1
|
||||
|
@ -1,6 +1,6 @@
|
||||
module go.opentelemetry.io/otel/exporters/prometheus
|
||||
|
||||
go 1.19
|
||||
go 1.20
|
||||
|
||||
require (
|
||||
github.com/prometheus/client_golang v1.16.0
|
||||
|
@ -1,6 +1,6 @@
|
||||
module go.opentelemetry.io/otel/exporters/stdout/stdoutmetric
|
||||
|
||||
go 1.19
|
||||
go 1.20
|
||||
|
||||
require (
|
||||
github.com/stretchr/testify v1.8.4
|
||||
|
@ -1,6 +1,6 @@
|
||||
module go.opentelemetry.io/otel/exporters/stdout/stdouttrace
|
||||
|
||||
go 1.19
|
||||
go 1.20
|
||||
|
||||
replace (
|
||||
go.opentelemetry.io/otel => ../../..
|
||||
|
@ -1,6 +1,6 @@
|
||||
module go.opentelemetry.io/otel/exporters/zipkin
|
||||
|
||||
go 1.19
|
||||
go 1.20
|
||||
|
||||
require (
|
||||
github.com/go-logr/logr v1.2.4
|
||||
|
2
go.mod
2
go.mod
@ -1,6 +1,6 @@
|
||||
module go.opentelemetry.io/otel
|
||||
|
||||
go 1.19
|
||||
go 1.20
|
||||
|
||||
require (
|
||||
github.com/go-logr/logr v1.2.4
|
||||
|
@ -1,6 +1,6 @@
|
||||
module go.opentelemetry.io/otel/internal/tools
|
||||
|
||||
go 1.19
|
||||
go 1.20
|
||||
|
||||
require (
|
||||
github.com/client9/misspell v0.3.4
|
||||
|
@ -1,6 +1,6 @@
|
||||
module go.opentelemetry.io/otel/metric
|
||||
|
||||
go 1.19
|
||||
go 1.20
|
||||
|
||||
require (
|
||||
github.com/stretchr/testify v1.8.4
|
||||
|
@ -1,6 +1,6 @@
|
||||
module go.opentelemetry.io/otel/schema
|
||||
|
||||
go 1.19
|
||||
go 1.20
|
||||
|
||||
require (
|
||||
github.com/Masterminds/semver/v3 v3.2.1
|
||||
|
@ -1,6 +1,6 @@
|
||||
module go.opentelemetry.io/otel/sdk
|
||||
|
||||
go 1.19
|
||||
go 1.20
|
||||
|
||||
replace go.opentelemetry.io/otel => ../
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
module go.opentelemetry.io/otel/sdk/metric
|
||||
|
||||
go 1.19
|
||||
go 1.20
|
||||
|
||||
require (
|
||||
github.com/go-logr/logr v1.2.4
|
||||
|
@ -51,16 +51,13 @@ func TestExpoHistogramDataPointRecord(t *testing.T) {
|
||||
t.Run("int64 MinMaxSum", testExpoHistogramMinMaxSumInt64)
|
||||
}
|
||||
|
||||
// TODO: This can be defined in the test after we drop support for go1.19.
|
||||
type expoHistogramDataPointRecordTestCase[N int64 | float64] struct {
|
||||
maxSize int
|
||||
values []N
|
||||
expectedBuckets expoBuckets
|
||||
expectedScale int
|
||||
}
|
||||
|
||||
func testExpoHistogramDataPointRecord[N int64 | float64](t *testing.T) {
|
||||
testCases := []expoHistogramDataPointRecordTestCase[N]{
|
||||
testCases := []struct {
|
||||
maxSize int
|
||||
values []N
|
||||
expectedBuckets expoBuckets
|
||||
expectedScale int
|
||||
}{
|
||||
{
|
||||
maxSize: 4,
|
||||
values: []N{2, 4, 1},
|
||||
@ -746,15 +743,6 @@ func TestExponentialHistogramAggregation(t *testing.T) {
|
||||
t.Run("Float64", testExponentialHistogramAggregation[float64])
|
||||
}
|
||||
|
||||
// TODO: This can be defined in the test after we drop support for go1.19.
|
||||
type exponentialHistogramAggregationTestCase[N int64 | float64] struct {
|
||||
name string
|
||||
build func() (Measure[N], ComputeAggregation)
|
||||
input [][]N
|
||||
want metricdata.ExponentialHistogram[N]
|
||||
wantCount int
|
||||
}
|
||||
|
||||
func testExponentialHistogramAggregation[N int64 | float64](t *testing.T) {
|
||||
const (
|
||||
maxSize = 4
|
||||
@ -763,7 +751,13 @@ func testExponentialHistogramAggregation[N int64 | float64](t *testing.T) {
|
||||
noSum = false
|
||||
)
|
||||
|
||||
tests := []exponentialHistogramAggregationTestCase[N]{
|
||||
tests := []struct {
|
||||
name string
|
||||
build func() (Measure[N], ComputeAggregation)
|
||||
input [][]N
|
||||
want metricdata.ExponentialHistogram[N]
|
||||
wantCount int
|
||||
}{
|
||||
{
|
||||
name: "Delta Single",
|
||||
build: func() (Measure[N], ComputeAggregation) {
|
||||
|
@ -1,6 +1,6 @@
|
||||
module go.opentelemetry.io/otel/trace
|
||||
|
||||
go 1.19
|
||||
go 1.20
|
||||
|
||||
replace go.opentelemetry.io/otel => ../
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user