mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2025-01-26 03:52:03 +02:00
CI builds validate against last two versions of Go, dropping 1.14 and adding 1.16 (#1865)
Signed-off-by: Gábor Lipták <gliptak@gmail.com> Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
This commit is contained in:
parent
cbcd4b1a3d
commit
d20e722830
2
.github/ISSUE_TEMPLATE/bug_report.md
vendored
2
.github/ISSUE_TEMPLATE/bug_report.md
vendored
@ -15,7 +15,7 @@ A clear and concise description of what the bug is.
|
|||||||
|
|
||||||
- OS: [e.g. iOS]
|
- OS: [e.g. iOS]
|
||||||
- Architecture: [e.g. x86, i386]
|
- Architecture: [e.g. x86, i386]
|
||||||
- Go Version: [e.g. 1.14]
|
- Go Version: [e.g. 1.15]
|
||||||
- opentelemetry-go version: [e.g. v0.14.0, 3c7face]
|
- opentelemetry-go version: [e.g. v0.14.0, 3c7face]
|
||||||
|
|
||||||
### Steps To Reproduce
|
### Steps To Reproduce
|
||||||
|
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@ -8,7 +8,7 @@ env:
|
|||||||
# Path to where test results will be saved.
|
# Path to where test results will be saved.
|
||||||
TEST_RESULTS: /tmp/test-results
|
TEST_RESULTS: /tmp/test-results
|
||||||
# Default minimum version of Go to support.
|
# Default minimum version of Go to support.
|
||||||
DEFAULT_GO_VERSION: 1.14
|
DEFAULT_GO_VERSION: 1.15
|
||||||
jobs:
|
jobs:
|
||||||
lint:
|
lint:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -109,7 +109,7 @@ jobs:
|
|||||||
compatibility-test:
|
compatibility-test:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
go-version: [1.15, 1.14]
|
go-version: [1.16, 1.15]
|
||||||
os: [ubuntu-latest, macos-latest, windows-latest]
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
||||||
# GitHub Actions does not support arm* architectures on default
|
# GitHub Actions does not support arm* architectures on default
|
||||||
# runners. It is possible to acomplish this with a self-hosted runner
|
# runners. It is possible to acomplish this with a self-hosted runner
|
||||||
|
2
.github/workflows/dependabot.yml
vendored
2
.github/workflows/dependabot.yml
vendored
@ -13,7 +13,7 @@ jobs:
|
|||||||
ref: ${{ github.head_ref }}
|
ref: ${{ github.head_ref }}
|
||||||
- uses: actions/setup-go@v2
|
- uses: actions/setup-go@v2
|
||||||
with:
|
with:
|
||||||
go-version: '^1.14.0'
|
go-version: '^1.15.0'
|
||||||
- uses: evantorrie/mott-the-tidier@v1-beta
|
- uses: evantorrie/mott-the-tidier@v1-beta
|
||||||
id: modtidy
|
id: modtidy
|
||||||
with:
|
with:
|
||||||
|
@ -31,6 +31,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
|
|||||||
`NewSplitDriver` now automatically implements an internal `noopDriver` for `SplitConfig` fields that are not initialized. (#1798)
|
`NewSplitDriver` now automatically implements an internal `noopDriver` for `SplitConfig` fields that are not initialized. (#1798)
|
||||||
- `resource.New()` now creates a Resource without builtin detectors. Previous behavior is now achieved by using `WithBuiltinDetectors` Option. (#1810)
|
- `resource.New()` now creates a Resource without builtin detectors. Previous behavior is now achieved by using `WithBuiltinDetectors` Option. (#1810)
|
||||||
- Move the `Event` type from the `go.opentelemetry.io/otel` package to the `go.opentelemetry.io/otel/sdk/trace` package. (#1846)
|
- Move the `Event` type from the `go.opentelemetry.io/otel` package to the `go.opentelemetry.io/otel/sdk/trace` package. (#1846)
|
||||||
|
- CI builds validate against last two versions of Go, dropping 1.14 and adding 1.16. (#1865)
|
||||||
- BatchSpanProcessor now report export failures when calling `ForceFlush()` method. (#1860)
|
- BatchSpanProcessor now report export failures when calling `ForceFlush()` method. (#1860)
|
||||||
- `Set.Encoded(Encoder)` no longer caches the result of an encoding. (#1855)
|
- `Set.Encoded(Encoder)` no longer caches the result of an encoding. (#1855)
|
||||||
- Renamed `CloudZoneKey` to `CloudAvailabilityZoneKey` in Resource semantic conventions according to spec. (#1871)
|
- Renamed `CloudZoneKey` to `CloudAvailabilityZoneKey` in Resource semantic conventions according to spec. (#1871)
|
||||||
|
10
README.md
10
README.md
@ -44,16 +44,16 @@ This project is tested on the following systems.
|
|||||||
|
|
||||||
| OS | Go Version | Architecture |
|
| OS | Go Version | Architecture |
|
||||||
| ------- | ---------- | ------------ |
|
| ------- | ---------- | ------------ |
|
||||||
|
| Ubuntu | 1.16 | amd64 |
|
||||||
| Ubuntu | 1.15 | amd64 |
|
| Ubuntu | 1.15 | amd64 |
|
||||||
| Ubuntu | 1.14 | amd64 |
|
| Ubuntu | 1.16 | 386 |
|
||||||
| Ubuntu | 1.15 | 386 |
|
| Ubuntu | 1.15 | 386 |
|
||||||
| Ubuntu | 1.14 | 386 |
|
| MacOS | 1.16 | amd64 |
|
||||||
| MacOS | 1.15 | amd64 |
|
| MacOS | 1.15 | amd64 |
|
||||||
| MacOS | 1.14 | amd64 |
|
| Windows | 1.16 | amd64 |
|
||||||
| Windows | 1.15 | amd64 |
|
| Windows | 1.15 | amd64 |
|
||||||
| Windows | 1.14 | amd64 |
|
| Windows | 1.16 | 386 |
|
||||||
| Windows | 1.15 | 386 |
|
| Windows | 1.15 | 386 |
|
||||||
| Windows | 1.14 | 386 |
|
|
||||||
|
|
||||||
While this project should work for other systems, no compatibility guarantees
|
While this project should work for other systems, no compatibility guarantees
|
||||||
are made for those systems currently.
|
are made for those systems currently.
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
module go.opentelemetry.io/otel/bridge/opencensus
|
module go.opentelemetry.io/otel/bridge/opencensus
|
||||||
|
|
||||||
go 1.14
|
go 1.15
|
||||||
|
|
||||||
require (
|
require (
|
||||||
go.opencensus.io v0.22.6-0.20201102222123-380f4078db9f
|
go.opencensus.io v0.22.6-0.20201102222123-380f4078db9f
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
module go.opentelemetry.io/otel/bridge/opentracing
|
module go.opentelemetry.io/otel/bridge/opentracing
|
||||||
|
|
||||||
go 1.14
|
go 1.15
|
||||||
|
|
||||||
replace go.opentelemetry.io/otel => ../..
|
replace go.opentelemetry.io/otel => ../..
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
module go.opentelemetry.io/otel/example/jaeger
|
module go.opentelemetry.io/otel/example/jaeger
|
||||||
|
|
||||||
go 1.14
|
go 1.15
|
||||||
|
|
||||||
replace (
|
replace (
|
||||||
go.opentelemetry.io/otel => ../..
|
go.opentelemetry.io/otel => ../..
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
module go.opentelemetry.io/otel/example/namedtracer
|
module go.opentelemetry.io/otel/example/namedtracer
|
||||||
|
|
||||||
go 1.14
|
go 1.15
|
||||||
|
|
||||||
replace (
|
replace (
|
||||||
go.opentelemetry.io/otel => ../..
|
go.opentelemetry.io/otel => ../..
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
module go.opentelemetry.io/otel/example/opencensus
|
module go.opentelemetry.io/otel/example/opencensus
|
||||||
|
|
||||||
go 1.14
|
go 1.15
|
||||||
|
|
||||||
replace (
|
replace (
|
||||||
go.opentelemetry.io/otel => ../..
|
go.opentelemetry.io/otel => ../..
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
module go.opentelemetry.io/otel/example/otel-collector
|
module go.opentelemetry.io/otel/example/otel-collector
|
||||||
|
|
||||||
go 1.14
|
go 1.15
|
||||||
|
|
||||||
replace (
|
replace (
|
||||||
go.opentelemetry.io/otel => ../..
|
go.opentelemetry.io/otel => ../..
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
module go.opentelemetry.io/otel/example/prom-collector
|
module go.opentelemetry.io/otel/example/prom-collector
|
||||||
|
|
||||||
go 1.14
|
go 1.15
|
||||||
|
|
||||||
replace (
|
replace (
|
||||||
go.opentelemetry.io/otel => ../..
|
go.opentelemetry.io/otel => ../..
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
module go.opentelemetry.io/otel/example/prometheus
|
module go.opentelemetry.io/otel/example/prometheus
|
||||||
|
|
||||||
go 1.14
|
go 1.15
|
||||||
|
|
||||||
replace (
|
replace (
|
||||||
go.opentelemetry.io/otel => ../..
|
go.opentelemetry.io/otel => ../..
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
FROM golang:1.14-alpine
|
FROM golang:1.16-alpine
|
||||||
COPY . /go/src/github.com/open-telemetry/opentelemetry-go/
|
COPY . /go/src/github.com/open-telemetry/opentelemetry-go/
|
||||||
WORKDIR /go/src/github.com/open-telemetry/opentelemetry-go/example/zipkin/
|
WORKDIR /go/src/github.com/open-telemetry/opentelemetry-go/example/zipkin/
|
||||||
RUN go install ./main.go
|
RUN go install ./main.go
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
module go.opentelemetry.io/otel/example/zipkin
|
module go.opentelemetry.io/otel/example/zipkin
|
||||||
|
|
||||||
go 1.14
|
go 1.15
|
||||||
|
|
||||||
replace (
|
replace (
|
||||||
go.opentelemetry.io/otel => ../..
|
go.opentelemetry.io/otel => ../..
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
module go.opentelemetry.io/otel/exporters/metric/prometheus
|
module go.opentelemetry.io/otel/exporters/metric/prometheus
|
||||||
|
|
||||||
go 1.14
|
go 1.15
|
||||||
|
|
||||||
replace (
|
replace (
|
||||||
go.opentelemetry.io/otel => ../../..
|
go.opentelemetry.io/otel => ../../..
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
module go.opentelemetry.io/otel/exporters/otlp
|
module go.opentelemetry.io/otel/exporters/otlp
|
||||||
|
|
||||||
go 1.14
|
go 1.15
|
||||||
|
|
||||||
replace (
|
replace (
|
||||||
go.opentelemetry.io/otel => ../..
|
go.opentelemetry.io/otel => ../..
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
module go.opentelemetry.io/otel/exporters/stdout
|
module go.opentelemetry.io/otel/exporters/stdout
|
||||||
|
|
||||||
go 1.14
|
go 1.15
|
||||||
|
|
||||||
replace (
|
replace (
|
||||||
go.opentelemetry.io/otel => ../..
|
go.opentelemetry.io/otel => ../..
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
module go.opentelemetry.io/otel/exporters/trace/jaeger
|
module go.opentelemetry.io/otel/exporters/trace/jaeger
|
||||||
|
|
||||||
go 1.14
|
go 1.15
|
||||||
|
|
||||||
replace (
|
replace (
|
||||||
go.opentelemetry.io/otel => ../../..
|
go.opentelemetry.io/otel => ../../..
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
module go.opentelemetry.io/otel/exporters/trace/zipkin
|
module go.opentelemetry.io/otel/exporters/trace/zipkin
|
||||||
|
|
||||||
go 1.14
|
go 1.15
|
||||||
|
|
||||||
replace (
|
replace (
|
||||||
go.opentelemetry.io/otel => ../../..
|
go.opentelemetry.io/otel => ../../..
|
||||||
|
2
go.mod
2
go.mod
@ -1,6 +1,6 @@
|
|||||||
module go.opentelemetry.io/otel
|
module go.opentelemetry.io/otel
|
||||||
|
|
||||||
go 1.14
|
go 1.15
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/google/go-cmp v0.5.5
|
github.com/google/go-cmp v0.5.5
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
module go.opentelemetry.io/otel/internal/tools
|
module go.opentelemetry.io/otel/internal/tools
|
||||||
|
|
||||||
go 1.14
|
go 1.15
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/client9/misspell v0.3.4
|
github.com/client9/misspell v0.3.4
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
module go.opentelemetry.io/otel/metric
|
module go.opentelemetry.io/otel/metric
|
||||||
|
|
||||||
go 1.14
|
go 1.15
|
||||||
|
|
||||||
replace go.opentelemetry.io/otel => ../
|
replace go.opentelemetry.io/otel => ../
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
module go.opentelemetry.io/otel/oteltest
|
module go.opentelemetry.io/otel/oteltest
|
||||||
|
|
||||||
go 1.14
|
go 1.15
|
||||||
|
|
||||||
replace go.opentelemetry.io/otel => ../
|
replace go.opentelemetry.io/otel => ../
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
module go.opentelemetry.io/otel/sdk/export/metric
|
module go.opentelemetry.io/otel/sdk/export/metric
|
||||||
|
|
||||||
go 1.14
|
go 1.15
|
||||||
|
|
||||||
replace go.opentelemetry.io/otel => ../../..
|
replace go.opentelemetry.io/otel => ../../..
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
module go.opentelemetry.io/otel/sdk
|
module go.opentelemetry.io/otel/sdk
|
||||||
|
|
||||||
go 1.14
|
go 1.15
|
||||||
|
|
||||||
replace go.opentelemetry.io/otel => ../
|
replace go.opentelemetry.io/otel => ../
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
module go.opentelemetry.io/otel/sdk/metric
|
module go.opentelemetry.io/otel/sdk/metric
|
||||||
|
|
||||||
go 1.14
|
go 1.15
|
||||||
|
|
||||||
replace go.opentelemetry.io/otel => ../..
|
replace go.opentelemetry.io/otel => ../..
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
module go.opentelemetry.io/otel/trace
|
module go.opentelemetry.io/otel/trace
|
||||||
|
|
||||||
go 1.14
|
go 1.15
|
||||||
|
|
||||||
replace go.opentelemetry.io/otel => ../
|
replace go.opentelemetry.io/otel => ../
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ Welcome to the OpenTelemetry for Go getting started guide! This guide will walk
|
|||||||
|
|
||||||
# Installation
|
# Installation
|
||||||
|
|
||||||
OpenTelemetry packages for Go are available in the `go.opentelemetry.io/otel` namespace. You will need to add references to them in the `import` statement. We suggest using Go 1.14 or newer, for module support.
|
OpenTelemetry packages for Go are available in the `go.opentelemetry.io/otel` namespace. You will need to add references to them in the `import` statement. We suggest using Go 1.15 or newer, for module support.
|
||||||
|
|
||||||
To get started with this guide, create a new directory and add a new file named `main.go` to it. In your terminal, run the command `go mod init main` in the same directory. This will create a `go.mod` file, which is used by Go to manage imports.
|
To get started with this guide, create a new directory and add a new file named `main.go` to it. In your terminal, run the command `go mod init main` in the same directory. This will create a `go.mod` file, which is used by Go to manage imports.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user