diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1654134..3df14ab 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,14 +14,14 @@ jobs: GO111MODULE: on runs-on: ${{ matrix.os }} strategy: - matrix: + matrix: # Use versions consistent with zipkin-go's Go support policy. os: [macos-latest, windows-latest, ubuntu-latest] - go: ["1.20"] + go: ["1.22"] # Current Go version include: - os: ubuntu-latest - go: "1.18" + go: "1.21" - os: ubuntu-latest - go: "1.19" + go: "1.20" # Floor Go version of zipkin-go (current - 2) steps: # Set fetch-depth: 0 to fetch commit history and tags for use in version calculation - name: Check out code diff --git a/README.md b/README.md index 05000f8..646bf22 100644 --- a/README.md +++ b/README.md @@ -112,5 +112,17 @@ Producer digesting JSON V2 Spans. The reporter uses the [Sarama async producer](https://pkg.go.dev/github.com/IBM/sarama#AsyncProducer) underneath. -## usage and examples +## Usage and Examples [HTTP Server Example](examples/httpserver_test.go) + +## Go Support Policy + +zipkin-go follows the same version policy as Go's [Release Policy](https://go.dev/doc/devel/release): +two versions. zipkin-go will ensure these versions work and bugs are valid if +there's an issue with a current Go version. + +Additionally, zipkin-go intentionally delays usage of language or standard +library features one additional version. For example, when Go 1.29 is released, +zipkin-go can use language features or standard libraries added in 1.27. This +is a convenience for embedders who have a slower version policy than Go. +However, only supported Go versions may be used to raise support issues. diff --git a/go.mod b/go.mod index 49ab95a..9d2e0ff 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/openzipkin/zipkin-go -go 1.18 +go 1.20 require ( github.com/IBM/sarama v1.40.1