zeromicro / go-zero

A cloud-native Go microservices framework with cli tool for productivity.
https://go-zero.dev
MIT License
29.35k stars 3.96k forks source link

Using gozero go.opentelemetriy.io/otel/sdk in environment go version 1.23 may result in incompatibility due to version issues #4369

Open smallshow910 opened 2 months ago

smallshow910 commented 2 months ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior, if applicable:

  1. The code is

  2. The error is

You need to update to the latest version using go get-u go.opentelemetriy.io/otel/sdk to solve the problem

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Environments (please complete the following information):

More description Add any other context about the problem here.

kevwan commented 2 months ago

latest otel versions require go versions to be > 1.20.

Please use the otel versions that specified in go.mod with go-zero.