From 3fd85600eead3ddce300e670eb6dde7655258799 Mon Sep 17 00:00:00 2001 From: Juliano Costa Date: Thu, 6 Oct 2022 23:50:29 +0200 Subject: [PATCH 1/2] Update go version to use go otel metrics --- src/checkoutservice/Dockerfile | 6 +++--- src/checkoutservice/go.mod | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/checkoutservice/Dockerfile b/src/checkoutservice/Dockerfile index 421a150947..dd672b239f 100644 --- a/src/checkoutservice/Dockerfile +++ b/src/checkoutservice/Dockerfile @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -FROM golang:1.17.7-alpine AS builder +FROM golang:1.19.2-alpine AS builder RUN apk add build-base protoc WORKDIR /usr/src/app/ @@ -20,8 +20,8 @@ WORKDIR /usr/src/app/ COPY ./src/checkoutservice/ ./ COPY ./pb/ ./proto/ RUN go mod download -RUN go get google.golang.org/protobuf/cmd/protoc-gen-go -RUN go get google.golang.org/grpc/cmd/protoc-gen-go-grpc +RUN go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.28 +RUN go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.2 # Build executable RUN protoc -I ./proto/ ./proto/demo.proto --go_out=./ --go-grpc_out=./ diff --git a/src/checkoutservice/go.mod b/src/checkoutservice/go.mod index 794df1280d..e0729d4f91 100644 --- a/src/checkoutservice/go.mod +++ b/src/checkoutservice/go.mod @@ -1,6 +1,6 @@ module github.com/open-telemetry/opentelemetry-demo/src/checkoutservice -go 1.17 +go 1.19 require ( github.com/google/uuid v1.3.0 From 472e41bccfadce12130de647dcbb718049efecc0 Mon Sep 17 00:00:00 2001 From: Juliano Costa Date: Thu, 6 Oct 2022 23:55:19 +0200 Subject: [PATCH 2/2] Update changelog --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8c3f524b55..72d5543fd8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -95,3 +95,5 @@ significant modifications will be credited to OpenTelemetry Authors. ([#362](https://github.com/open-telemetry/opentelemetry-demo/pull/362)) * Add custom span and custom span attributes for Feature Flag Service ([#371](https://github.com/open-telemetry/opentelemetry-demo/pull/371)) +* Update Checkout Service Go version to 1.19 once OTel Go Metrics require 1.18+ +([#406](https://github.com/open-telemetry/opentelemetry-demo/pull/406))