Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Got error when tracing kafka #1049

Open
NhatVuDuy opened this issue Sep 2, 2024 · 15 comments
Open

Got error when tracing kafka #1049

NhatVuDuy opened this issue Sep 2, 2024 · 15 comments
Labels
bug Something isn't working response needed A response from the author is required

Comments

@NhatVuDuy
Copy link

NhatVuDuy commented Sep 2, 2024

Describe the bug

I got a crash when using otel auto instrumentation docker container with the main container has kafka service.

Environment

  • OS: [ubuntun k8s for go]
  • Go Version: [1.22]

To Reproduce

Steps to reproduce the behavior:
Run otel auto instrumentation docker container with main docker container.
Got the error if main container has kafka service.

Expected behavior

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

Additional context

The log is:

{"level":"info","ts":1724839308.755223,"logger":"[go.opentelemetry.io/auto](https://www.google.com/url?q=http://go.opentelemetry.io/auto&sa=D&source=editors&ust=1725277443124090&usg=AOvVaw2x1v3n3-SA5Mws4svnjIBu)","caller":"cli/main.go:86","msg":"building OpenTelemetry Go instrumentation ...","globalImpl":false}
{"level":"info","ts":1724839310.7561524,"logger":"Instrumentation.Analyzer","caller":"process/discover.go:67","msg":"found process","pid":8}
{"level":"error","ts":1724839310.7569983,"logger":"Instrumentation.Analyzer","caller":"process/analyze.go:83","msg":"error parsing module version","error":"Malformed version: (devel)","stacktrace":"[go.opentelemetry.io/auto/internal/pkg/process.(*Analyzer).Analyze\n\t/app/internal/pkg/process/analyze.go:83\ngo.opentelemetry.io/auto.NewInstrumentation\n\t/app/instrumentation.go:133\nmain.main\n\t/app/cli/main.go:104\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:271](https://www.google.com/url?q=http://go.opentelemetry.io/auto/internal/pkg/process.(*Analyzer).Analyze%5Cn%5Ct/app/internal/pkg/process/analyze.go:83%5Cngo.opentelemetry.io/auto.NewInstrumentation%5Cn%5Ct/app/instrumentation.go:133%5Cnmain.main%5Cn%5Ct/app/cli/main.go:104%5Cnruntime.main%5Cn%5Ct/usr/local/go/src/runtime/proc.go:271&sa=D&source=editors&ust=1725277443124181&usg=AOvVaw2Y3tc1TVDifYJWsrumCeiF)"}
{"level":"info","ts":1724839310.7942715,"logger":"Instrumentation.Allocate","caller":"process/allocate.go:73","msg":"Detaching from process","pid":8}
{"level":"info","ts":1724839310.7946124,"logger":"Instrumentation","caller":"app/instrumentation.go:144","msg":"target process analysis completed","pid":8,"go_version":"1.22.0","dependencies":{"[github.com/beorn7/perks](https://www.google.com/url?q=http://github.com/beorn7/perks&sa=D&source=editors&ust=1725277443124237&usg=AOvVaw0xOiAemd1UoKG6AnTFbV0H)":"1.0.1","[github.com/cespare/xxhash/v2](https://www.google.com/url?q=http://github.com/cespare/xxhash/v2&sa=D&source=editors&ust=1725277443124249&usg=AOvVaw0X24mG5TeUJFzkLwqa5uAz)":"2.1.1","[github.com/eclipse/paho.mqtt.golang](https://www.google.com/url?q=http://github.com/eclipse/paho.mqtt.golang&sa=D&source=editors&ust=1725277443124262&usg=AOvVaw3mpoXc8jlC9FqkdPi5CzmI)":"1.2.0","[github.com/fsnotify/fsnotify](https://www.google.com/url?q=http://github.com/fsnotify/fsnotify&sa=D&source=editors&ust=1725277443124274&usg=AOvVaw12CyNPc7seB11SjClFfw7t)":"1.4.7","[github.com/go-kit/kit](https://www.google.com/url?q=http://github.com/go-kit/kit&sa=D&source=editors&ust=1725277443124284&usg=AOvVaw2aeBrbwN5H4oflMVw__j0o)":"0.10.0","[github.com/go-logfmt/logfmt](https://www.google.com/url?q=http://github.com/go-logfmt/logfmt&sa=D&source=editors&ust=1725277443124296&usg=AOvVaw1CfUxeXpBTVerX80waYDsn)":"0.5.0","[github.com/go-redis/redis](https://www.google.com/url?q=http://github.com/go-redis/redis&sa=D&source=editors&ust=1725277443124307&usg=AOvVaw1935lXnKWiaXbQgGhGV03D)":"6.15.9+incompatible","[github.com/go-stack/stack](https://www.google.com/url?q=http://github.com/go-stack/stack&sa=D&source=editors&ust=1725277443124317&usg=AOvVaw3mre7ChcbZnkMq8_f6eBAJ)":"1.8.0","[github.com/go-zoo/bone](https://www.google.com/url?q=http://github.com/go-zoo/bone&sa=D&source=editors&ust=1725277443124328&usg=AOvVaw0gQ1KcvLDV6UsxBeLGBQS9)":"1.3.0","[github.com/gofrs/uuid](https://www.google.com/url?q=http://github.com/gofrs/uuid&sa=D&source=editors&ust=1725277443124339&usg=AOvVaw0fTeyVnTQHfWhdPJgHsHoa)":"3.3.0+incompatible","[github.com/golang/protobuf](https://www.google.com/url?q=http://github.com/golang/protobuf&sa=D&source=editors&ust=1725277443124349&usg=AOvVaw05BrnAWM70sapbFiDmjWmq)":"1.4.2","[github.com/golang/snappy](https://www.google.com/url?q=http://github.com/golang/snappy&sa=D&source=editors&ust=1725277443124360&usg=AOvVaw2_ri17VCVcZqRgNu-B8jhZ)":"0.0.1","[github.com/google/uuid](https://www.google.com/url?q=http://github.com/google/uuid&sa=D&source=editors&ust=1725277443124371&usg=AOvVaw1lPVyweqngEnepDVW1OiHy)":"1.1.1","[github.com/hailocab/go-hostpool](https://www.google.com/url?q=http://github.com/hailocab/go-hostpool&sa=D&source=editors&ust=1725277443124383&usg=AOvVaw0Ou6XuTZwa-jlCFlwz1DRs)":"0.0.0-20160125115350-e80d13ce29ed","[github.com/jmoiron/sqlx](https://www.google.com/url?q=http://github.com/jmoiron/sqlx&sa=D&source=editors&ust=1725277443124402&usg=AOvVaw0p7abLtwaO6Xl5mIwyN8o4)":"1.2.1-0.20190319043955-cdf62fdf55f6","[github.com/klauspost/compress](https://www.google.com/url?q=http://github.com/klauspost/compress&sa=D&source=editors&ust=1725277443124422&usg=AOvVaw3EelAEd3qBF-FBQFR22J5m)":"1.9.5","[github.com/lib/pq](https://www.google.com/url?q=http://github.com/lib/pq&sa=D&source=editors&ust=1725277443124433&usg=AOvVaw0vN4MXVk--p4xi5EuY9pHA)":"1.8.0","[github.com/mainflux/mainflux](https://www.google.com/url?q=http://github.com/mainflux/mainflux&sa=D&source=editors&ust=1725277443124444&usg=AOvVaw0mwGP_7yNLFhfEMXZjTPTE)":"0.11.0","[github.com/matttproud/golang_protobuf_extensions](https://www.google.com/url?q=http://github.com/matttproud/golang_protobuf_extensions&sa=D&source=editors&ust=1725277443124458&usg=AOvVaw0eShfskML1-ew5p2aqpLi4)":"1.0.1","[github.com/opentracing/opentracing-go](https://www.google.com/url?q=http://github.com/opentracing/opentracing-go&sa=D&source=editors&ust=1725277443124471&usg=AOvVaw2bFaJI2FDy5wL7ucMYLdsN)":"1.1.0","[github.com/pkg/errors](https://www.google.com/url?q=http://github.com/pkg/errors&sa=D&source=editors&ust=1725277443124483&usg=AOvVaw1nrMuXbMaxRS0vi7dhLfob)":"0.8.1","[github.com/prometheus/client_golan](https://www.google.com/url?q=http://github.com/prometheus/client_golan&sa=D&source=editors&ust=1725277443124494&usg=AOvVaw2p-HZcQGMRnqIWolMg6Q9V)

Please give me any suggestion.
Thank you so much.

@NhatVuDuy NhatVuDuy added the bug Something isn't working label Sep 2, 2024
@grcevski
Copy link
Contributor

grcevski commented Sep 3, 2024

Hi @NhatVuDuy, it appears that the issue is with Otel-go-auto parsing the go modules for analyzing offsets. It discovered a module with version (devel), e.g. "Malformed version: (devel)". It's something we should fix. Do you mind sharing what your go.mod looks like if possible?

@MrAlias
Copy link
Contributor

MrAlias commented Sep 3, 2024

It looks like the log output was truncated. Can you post the full message?

@MrAlias MrAlias added the response needed A response from the author is required label Sep 3, 2024
@NhatVuDuy
Copy link
Author

It looks like the log output was truncated. Can you post the full message?

Hi @MrAlias,
This is the full issue log from otel k8s pod log. Do you mean the full log of starting process of otel in k8s pod?

Thank you!

@NhatVuDuy
Copy link
Author

Hi @NhatVuDuy, it appears that the issue is with Otel-go-auto parsing the go modules for analyzing offsets. It discovered a module with version (devel), e.g. "Malformed version: (devel)". It's something we should fix. Do you mind sharing what your go.mod looks like if possible?

Thank you for your reply.
I trace the log and can to get the section in otel auto instrumentation source code, where the issue is. It's loading probe step, with version issue as you said. But I don't know why the issue is, with kafka service only.

For go.mod, sorry I can't show the full content, because it's not my personal project. But I can share you the relevant info, like the version of packages which you need. Please tell me which you need.

Thank you so much!

@damemi
Copy link
Contributor

damemi commented Sep 4, 2024

@NhatVuDuy are you sure that is the full output of the auto-instrumentation container log? It looks like it got cut off at the end here:

"0.8.1","github.com/prometheus/client_golan

(Also if you paste the log in 3 backticks like ``` it can be easier to read)

@NhatVuDuy
Copy link
Author

NhatVuDuy commented Sep 5, 2024

@damemi Thank you.
You're right. The log is cut off at the end. Have you just edited it? I see the log is different from my record.
Should I re-run and get the full log of otel container again, then update into my issue record?

@damemi
Copy link
Contributor

damemi commented Sep 5, 2024

@NhatVuDuy I copied and pasted exactly what you shared, please re-run to get the full log of the otel container and share here. Thanks!

@NhatVuDuy
Copy link
Author

NhatVuDuy commented Sep 6, 2024

@damemi Here it is. Hope this is correct.
Thank you!

{"level":"info","ts":1725501606.8059921,"logger":"go.opentelemetry.io/auto","caller":"cli/main.go:86","msg":"building OpenTelemetry Go instrumentation ...","globalImpl":false}
{"level":"info","ts":1725501608.806907,"logger":"Instrumentation.Analyzer","caller":"process/discover.go:67","msg":"found process","pid":7}
{"level":"error","ts":1725501608.8076844,"logger":"Instrumentation.Analyzer","caller":"process/analyze.go:83","msg":"error parsing module version","error":"Malformed version: (devel)","stacktrace":"go.opentelemetry.io/auto/internal/pkg/process.(*Analyzer).Analyze\n\t/app/internal/pkg/process/analyze.go:83\ngo.opentelemetry.io/auto.NewInstrumentation\n\t/app/instrumentation.go:133\nmain.main\n\t/app/cli/main.go:104\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:271"}
{"level":"info","ts":1725501608.8363714,"logger":"Instrumentation.Allocate","caller":"process/allocate.go:73","msg":"Detaching from process","pid":7}
{"level":"info","ts":1725501608.84071,"logger":"Instrumentation","caller":"app/instrumentation.go:144","msg":"target process analysis completed","pid":7,"go_version":"1.20.2","dependencies":{"github.com/beorn7/perks":"1.0.1","github.com/cespare/xxhash/v2":"2.1.1","github.com/eclipse/paho.mqtt.golang":"1.2.0","github.com/fsnotify/fsnotify":"1.4.7","github.com/go-kit/kit":"0.10.0","github.com/go-logfmt/logfmt":"0.5.0","github.com/go-sql-driver/mysql":"1.4.1","github.com/go-stack/stack":"1.8.0","github.com/go-zoo/bone":"1.3.0","github.com/gocql/gocql":"0.0.0-20200511135441-57b003a04490","github.com/gofrs/uuid":"3.3.0+incompatible","github.com/golang/protobuf":"1.4.2","github.com/golang/snappy":"0.0.1","github.com/google/uuid":"1.1.1","github.com/hailocab/go-hostpool":"0.0.0-20160125115350-e80d13ce29ed","github.com/jmoiron/sqlx":"1.2.1-0.20190319043955-cdf62fdf55f6","github.com/klauspost/compress":"1.9.5","github.com/lib/pq":"1.8.0","github.com/matttproud/golang_protobuf_extensions":"1.0.1","github.com/opentracing/opentracing-go":"1.1.0","github.com/pkg/errors":"0.8.1","github.com/prometheus/client_golang":"1.6.0","github.com/prometheus/client_model":"0.2.0","github.com/prometheus/common":"0.9.1","github.com/prometheus/procfs":"0.0.11","github.com/rubenv/sql-migrate":"0.0.0-20200616145509-8d140a17f351","github.com/subosito/gotenv":"1.2.0","github.com/uber/jaeger-lib":"2.3.0+incompatible","github.com/xdg/scram":"0.0.0-20180814205039-7eeb5667e42c","github.com/xdg/stringprep":"1.0.1-0.20180714160509-73f8eece6fdc","go.mongodb.org/mongo-driver":"1.3.3","go.uber.org/atomic":"1.5.0","golang.org/x/crypto":"0.0.0-20200622213623-75b288015ac9","golang.org/x/net":"0.0.0-20201224014010-6772e930b67b","golang.org/x/sync":"0.0.0-20201020160332-67f06af15bc9","golang.org/x/sys":"0.0.0-20201119102817-f84b799fce68","golang.org/x/text":"0.3.3","google.golang.org/genproto":"0.0.0-20200513103714-09dca8ec2884","google.golang.org/grpc":"1.29.1","google.golang.org/protobuf":"1.23.0","gopkg.in/gorp.v1":"1.7.2","gopkg.in/inf.v0":"0.9.1","gopkg.in/ini.v1":"1.51.0","gopkg.in/mail.v2":"2.3.1","std":"1.20.2"},"total_functions_found":11}
{"level":"info","ts":1725501608.8410597,"logger":"go.opentelemetry.io/auto","caller":"cli/main.go:119","msg":"starting instrumentation..."}
{"level":"info","ts":1725501608.8414338,"logger":"Instrumentation.Manager","caller":"instrumentation/manager.go:197","msg":"loading probe","name":"net/http/client"}
{"level":"info","ts":1725501609.0524049,"logger":"Instrumentation.Manager","caller":"instrumentation/manager.go:197","msg":"loading probe","name":"database/sql/client"}
{"level":"info","ts":1725501609.1308398,"logger":"Instrumentation.Manager","caller":"instrumentation/manager.go:197","msg":"loading probe","name":"github.com/segmentio/kafka-go/consumer"}
{"level":"error","ts":1725501609.1316051,"logger":"Instrumentation.Manager","caller":"instrumentation/manager.go:200","msg":"error while loading probes, cleaning up","name":"github.com/segmentio/kafka-go/consumer","error":"unknown module version: github.com/segmentio/kafka-go\nunknown module version: github.com/segmentio/kafka-go\nunknown module version: github.com/segmentio/kafka-go\nunknown module version: github.com/segmentio/kafka-go\nunknown module version: github.com/segmentio/kafka-go\nunknown module version: github.com/segmentio/kafka-go\nunknown module version: github.com/segmentio/kafka-go","stacktrace":"go.opentelemetry.io/auto/internal/pkg/instrumentation.(*Manager).load\n\t/app/internal/pkg/instrumentation/manager.go:200\ngo.opentelemetry.io/auto/internal/pkg/instrumentation.(*Manager).Run\n\t/app/internal/pkg/instrumentation/manager.go:143\ngo.opentelemetry.io/auto.(*Instrumentation).Run\n\t/app/instrumentation.go:162\nmain.main\n\t/app/cli/main.go:120\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:271"}
{"level":"error","ts":1725501609.970436,"logger":"go.opentelemetry.io/auto","caller":"cli/main.go:121","msg":"instrumentation crashed","error":"unknown module version: github.com/segmentio/kafka-go\nunknown module version: github.com/segmentio/kafka-go\nunknown module version: github.com/segmentio/kafka-go\nunknown module version: github.com/segmentio/kafka-go\nunknown module version: github.com/segmentio/kafka-go\nunknown module version: github.com/segmentio/kafka-go\nunknown module version: github.com/segmentio/kafka-go","stacktrace":"main.main\n\t/app/cli/main.go:121\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:271"}

@damemi
Copy link
Contributor

damemi commented Sep 6, 2024

It looks like your version of kafka-go is unknown, Do you happen to be using a local/development version of kafka-go/consumer?

@NhatVuDuy
Copy link
Author

I used kafka from standard dependency: https://github.com/segmentio/kafka-go (go vendor mode).

@MrAlias
Copy link
Contributor

MrAlias commented Sep 11, 2024

(go vendor mode).

What happens when you run this with the upstream module directly?

I'm guessing this is where that package is reporting a devel version from.

@NhatVuDuy
Copy link
Author

Let me try to check this. Because the system is separated from direct internet. So I have to use vendor mode to transfer dependencies via file transfer system.

@SamsonDoSomeThing
Copy link

SamsonDoSomeThing commented Oct 30, 2024

#1224

In fact, every service I encountered has this kind of error. I will provide one of them first

images:ghcr.io/open-telemetry/opentelemetry-go-instrumentation/autoinstrumentation-go:latest

logs:

{"time":"2024-10-30T02:05:11.741508092Z","level":"INFO","source":{"function":"go.opentelemetry.io/auto/internal/pkg/process.(*Analyzer).DiscoverProcessID","file":"/app/internal/pkg/process/discover.go","line":64},"msg":"found process","pid":7}
{"time":"2024-10-30T02:05:11.742625446Z","level":"ERROR","source":{"function":"go.opentelemetry.io/auto/internal/pkg/process.(*Analyzer).Analyze","file":"/app/internal/pkg/process/analyze.go","line":83},"msg":"parsing dependency version","error":"Malformed version: (devel)","dependency":{"Path":"zeroapiend","Version":"(devel)","Sum":"","Replace":null}}
{"time":"2024-10-30T02:05:13.842074495Z","level":"INFO","source":{"function":"go.opentelemetry.io/auto/internal/pkg/process.remoteAllocate.func1","file":"/app/internal/pkg/process/allocate.go","line":70},"msg":"Detaching from process","pid":7}
{"time":"2024-10-30T02:05:13.842174565Z","level":"INFO","source":{"function":"go.opentelemetry.io/auto.NewInstrumentation","file":"/app/instrumentation.go","line":113},"msg":"target process analysis completed","pid":7,"go_version":"1.20.3","dependencies":{"ariga.io/atlas":"0.19.1-0.20240203083654-5948b60a8e43","buf.build/gen/go/nv99/agentrpc/grpc/go":"1.5.1-20240910083333-2720953a4bf5.1","buf.build/gen/go/nv99/agentrpc/protocolbuffers/go":"1.35.1-20241029100102-dd9adefc3004.1","buf.build/gen/go/nv99/cmsrpc/grpc/go":"1.5.1-20240815033201-7d55a0535f4f.1","buf.build/gen/go/nv99/cmsrpc/protocolbuffers/go":"1.34.2-20240819145352-ebfd542d1e04.2","buf.build/gen/go/nv99/paycallback/grpc/go":"1.5.1-20241016070412-cd8ace879d71.1","buf.build/gen/go/nv99/paycallback/protocolbuffers/go":"1.35.1-20241016070412-cd8ace879d71.1","buf.build/gen/go/nv99/user-rpc/grpc/go":"1.5.1-20240911063519-44913cd1ff50.1","buf.build/gen/go/nv99/user-rpc/protocolbuffers/go":"1.34.2-20240911063519-44913cd1ff50.2","buf.build/gen/go/nv99/zerogamerpc/grpc/go":"1.4.0-20240729055653-dd27fc2a7d13.2","buf.build/gen/go/nv99/zerogamerpc/protocolbuffers/go":"1.34.2-20240729055653-dd27fc2a7d13.2","buf.build/gen/go/zorm/admin-core/grpc/go":"1.3.0-20240313070343-761107ca477b.2","buf.build/gen/go/zorm/admin-core/protocolbuffers/go":"1.33.0-20240313070343-761107ca477b.1","cloud.google.com/go/compute/metadata":"0.2.3","entgo.io/ent":"0.13.1","github.com/agext/levenshtein":"1.2.3","github.com/apparentlymart/go-textseg/v13":"13.0.0","github.com/aws/aws-sdk-go":"1.49.9","github.com/beorn7/perks":"1.0.1","github.com/bluele/gcache":"0.0.2","github.com/bwmarrin/snowflake":"0.3.0","github.com/casbin/casbin/v2":"2.84.1","github.com/casbin/ent-adapter":"0.3.0","github.com/casbin/govaluate":"1.1.0","github.com/casbin/redis-watcher/v2":"2.5.0","github.com/cenkalti/backoff/v4":"4.2.1","github.com/cespare/xxhash/v2":"2.2.0","github.com/coreos/go-semver":"0.3.1","github.com/coreos/go-systemd/v22":"22.5.0","github.com/davecgh/go-spew":"1.1.2-0.20180830191138-d8f796af33cc","github.com/dgryski/go-rendezvous":"0.0.0-20200823014737-9f7001d12a5f","github.com/eclipse/paho.mqtt.golang":"1.5.0","github.com/emicklei/go-restful/v3":"3.11.0","github.com/fatih/color":"1.16.0","github.com/felixge/httpsnoop":"1.0.4","github.com/fsnotify/fsnotify":"1.7.0","github.com/gabriel-vasile/mimetype":"1.4.3","github.com/go-logr/logr":"1.4.1","github.com/go-logr/stdr":"1.2.2","github.com/go-openapi/inflect":"0.19.0","github.com/go-openapi/jsonpointer":"0.19.6","github.com/go-openapi/jsonreference":"0.20.2","github.com/go-openapi/swag":"0.22.4","github.com/go-playground/locales":"0.14.1","github.com/go-playground/universal-translator":"0.18.1","github.com/go-playground/validator/v10":"10.19.0","github.com/go-redis/redis/v8":"8.11.5","github.com/go-sql-driver/mysql":"1.7.1","github.com/gogf/gf/v2":"2.7.0","github.com/gogo/protobuf":"1.3.2","github.com/golang-jwt/jwt/v4":"4.5.0","github.com/golang-jwt/jwt/v5":"5.0.0","github.com/golang/freetype":"0.0.0-20170609003504-e2365dfdc4a0","github.com/golang/groupcache":"0.0.0-20210331224755-41bb18bfe9da","github.com/golang/mock":"1.6.0","github.com/golang/protobuf":"1.5.4","github.com/google/gnostic-models":"0.6.8","github.com/google/go-cmp":"0.6.0","github.com/google/gofuzz":"1.2.0","github.com/google/s2a-go":"0.1.7","github.com/google/uuid":"1.6.0","github.com/googleapis/enterprise-certificate-proxy":"0.3.2","github.com/googleapis/gax-go/v2":"2.12.2","github.com/gorilla/websocket":"1.5.3","github.com/grpc-ecosystem/grpc-gateway/v2":"2.19.0","github.com/hashicorp/errwrap":"1.1.0","github.com/hashicorp/go-multierror":"1.1.1","github.com/hashicorp/hcl/v2":"2.16.2","github.com/jackc/chunkreader/v2":"2.0.1","github.com/jackc/pgconn":"1.14.0","github.com/jackc/pgio":"1.0.0","github.com/jackc/pgpassfile":"1.0.0","github.com/jackc/pgproto3/v2":"2.3.2","github.com/jackc/pgservicefile":"0.0.0-20221227161230-091c0ba34f0a","github.com/jackc/pgtype":"1.14.0","github.com/jackc/pgx/v4":"4.18.1","github.com/jinzhu/copier":"0.4.0","github.com/jinzhu/inflection":"1.0.0","github.com/jinzhu/now":"1.1.5","github.com/jmespath/go-jmespath":"0.4.0","github.com/josharian/intern":"1.0.0","github.com/json-iterator/go":"1.1.12","github.com/karlseguin/ccache/v3":"3.0.3","github.com/leodido/go-urn":"1.4.0","github.com/lib/pq":"1.10.9","github.com/longbridgeapp/sqlparser":"0.3.1","github.com/mailru/easyjson":"0.7.7","github.com/mattn/go-colorable":"0.1.13","github.com/mattn/go-isatty":"0.0.20","github.com/mattn/go-sqlite3":"1.14.22","github.com/mitchellh/go-wordwrap":"1.0.1","github.com/modern-go/concurrent":"0.0.0-20180306012644-bacd9c7ef1dd","github.com/modern-go/reflect2":"1.0.2","github.com/mohae/deepcopy":"0.0.0-20170929034955-c48cc78d4826","github.com/mojocn/base64Captcha":"1.3.6","github.com/munnerz/goautoneg":"0.0.0-20191010083416-a7dc8b61c822","github.com/nicksnyder/go-i18n/v2":"2.4.0","github.com/openzipkin/zipkin-go":"0.4.2","github.com/pelletier/go-toml/v2":"2.1.1","github.com/philchia/agollo/v4":"4.1.5","github.com/pkg/errors":"0.9.1","github.com/prometheus/client_golang":"1.19.0","github.com/prometheus/client_model":"0.5.0","github.com/prometheus/common":"0.48.0","github.com/prometheus/procfs":"0.12.0","github.com/redis/go-redis/v9":"9.5.1","github.com/richardlehane/mscfb":"1.0.4","github.com/richardlehane/msoleps":"1.0.3","github.com/scylladb/go-set":"1.0.2","github.com/shopspring/decimal":"1.3.1","github.com/spaolacci/murmur3":"1.1.0","github.com/spf13/cast":"1.5.1","github.com/suyuan32/simple-admin-common":"1.1.3","github.com/tidwall/gjson":"1.14.4","github.com/tidwall/match":"1.1.1","github.com/tidwall/pretty":"1.2.0","github.com/valyala/bytebufferpool":"1.0.0","github.com/valyala/fasttemplate":"1.2.2","github.com/xuri/efp":"0.0.0-20230802181842-ad255f2331ca","github.com/xuri/excelize/v2":"2.8.0","github.com/xuri/nfp":"0.0.0-20230819163627-dc951e3ffe1a","github.com/zclconf/go-cty":"1.13.1","github.com/zeromicro/go-zero":"1.6.3","github.com/zeromicro/x":"0.0.0-20230424055333-01c7fb9548d4","gitlab.1319labels.com/zero-core/common":"1.0.35","gitlab.1319labels.com/zero-core/sharding":"1.0.1","gitlab.1319labels.com/zero-core/zorm-cache":"1.0.1","go.etcd.io/etcd/api/v3":"3.5.12","go.etcd.io/etcd/client/pkg/v3":"3.5.12","go.etcd.io/etcd/client/v3":"3.5.12","go.opencensus.io":"0.24.0","go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp":"0.49.0","go.opentelemetry.io/otel":"1.24.0","go.opentelemetry.io/otel/exporters/otlp/otlptrace":"1.24.0","go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc":"1.24.0","go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp":"1.24.0","go.opentelemetry.io/otel/exporters/stdout/stdouttrace":"1.24.0","go.opentelemetry.io/otel/exporters/zipkin":"1.24.0","go.opentelemetry.io/otel/metric":"1.24.0","go.opentelemetry.io/otel/sdk":"1.24.0","go.opentelemetry.io/otel/trace":"1.24.0","go.opentelemetry.io/proto/otlp":"1.1.0","go.uber.org/atomic":"1.10.0","go.uber.org/automaxprocs":"1.5.3","go.uber.org/multierr":"1.11.0","go.uber.org/zap":"1.24.0","golang.org/x/crypto":"0.25.0","golang.org/x/exp":"0.0.0-20230817173708-d852ddb80c63","golang.org/x/image":"0.15.0","golang.org/x/mod":"0.17.0","golang.org/x/net":"0.27.0","golang.org/x/oauth2":"0.18.0","golang.org/x/sync":"0.7.0","golang.org/x/sys":"0.22.0","golang.org/x/term":"0.22.0","golang.org/x/text":"0.16.0","golang.org/x/time":"0.5.0","golang.org/x/tools":"0.21.1-0.20240508182429-e35e4ccd0d2d","google.golang.org/api":"0.169.0","google.golang.org/genproto/googleapis/api":"0.0.0-20240318140521-94a12d6c2237","google.golang.org/genproto/googleapis/rpc":"0.0.0-20240318140521-94a12d6c2237","google.golang.org/grpc":"1.64.1","google.golang.org/protobuf":"1.35.1","gopkg.in/inf.v0":"0.9.1","gopkg.in/yaml.v2":"2.4.0","gopkg.in/yaml.v3":"3.0.1","gorm.io/datatypes":"1.1.1-0.20230130040222-c43177d3cf8c","gorm.io/driver/mysql":"1.5.4","gorm.io/gen":"0.3.23","gorm.io/gorm":"1.25.10","gorm.io/hints":"1.1.2","gorm.io/plugin/dbresolver":"1.4.2","gorm.io/plugin/prometheus":"0.0.0-20230504115745-1aec2356381b","k8s.io/api":"0.29.2","k8s.io/apimachinery":"0.29.2","k8s.io/client-go":"0.29.2","k8s.io/klog/v2":"2.110.1","k8s.io/kube-openapi":"0.0.0-20231010175941-2dd684a91f00","k8s.io/utils":"0.0.0-20240102154912-e7106e64919e","sigs.k8s.io/json":"0.0.0-20221116044647-bc3834ca7abd","sigs.k8s.io/structured-merge-diff/v4":"4.4.1","sigs.k8s.io/yaml":"1.3.0","std":"1.20.3"},"total_functions_found":10}
{"time":"2024-10-30T02:05:13.842659388Z","level":"INFO","source":{"function":"main.main","file":"/app/cli/main.go","line":134},"msg":"starting instrumentation..."}
{"time":"2024-10-30T02:05:13.862986662Z","level":"INFO","source":{"function":"go.opentelemetry.io/auto/internal/pkg/instrumentation.(*Manager).load","file":"/app/internal/pkg/instrumentation/manager.go","line":324},"msg":"loading probe","name":{"SpanKind":2,"InstrumentedPkg":"google.golang.org/grpc"}}
{"time":"2024-10-30T02:05:15.25842114Z","level":"INFO","source":{"function":"go.opentelemetry.io/auto/internal/pkg/instrumentation.(*Manager).load","file":"/app/internal/pkg/instrumentation/manager.go","line":324},"msg":"loading probe","name":{"SpanKind":2,"InstrumentedPkg":"net/http"}}
{"time":"2024-10-30T02:05:15.666122217Z","level":"INFO","source":{"function":"go.opentelemetry.io/auto/internal/pkg/instrumentation.(*Manager).load","file":"/app/internal/pkg/instrumentation/manager.go","line":324},"msg":"loading probe","name":{"SpanKind":3,"InstrumentedPkg":"net/http"}}
{"time":"2024-10-30T02:05:16.054278711Z","level":"INFO","source":{"function":"go.opentelemetry.io/auto/internal/pkg/instrumentation.(*Manager).load","file":"/app/internal/pkg/instrumentation/manager.go","line":324},"msg":"loading probe","name":{"SpanKind":3,"InstrumentedPkg":"database/sql"}}
{"time":"2024-10-30T02:05:16.261791648Z","level":"INFO","source":{"function":"go.opentelemetry.io/auto/internal/pkg/instrumentation.(*Manager).load","file":"/app/internal/pkg/instrumentation/manager.go","line":324},"msg":"loading probe","name":{"SpanKind":3,"InstrumentedPkg":"google.golang.org/grpc"}}
{"time":"2024-10-30T02:05:16.966215954Z","level":"INFO","source":{"function":"go.opentelemetry.io/auto/internal/pkg/instrumentation.(*Manager).ConfigLoop","file":"/app/internal/pkg/instrumentation/manager.go","line":238},"msg":"Configuration provider closed, configuration updates will no longer be received"}
{"time":"2024-10-30T02:05:16.966257966Z","level":"INFO","source":{"function":"main.main.func3","file":"/app/cli/main.go","line":130},"msg":"instrumentation loaded successfully"}

go.mod:


go 1.20

require (
	buf.build/gen/go/nv99/agentrpc/grpc/go v1.5.1-20240910083333-2720953a4bf5.1
	buf.build/gen/go/nv99/agentrpc/protocolbuffers/go v1.35.1-20241029100102-dd9adefc3004.1
	buf.build/gen/go/nv99/cmsrpc/grpc/go v1.5.1-20240815033201-7d55a0535f4f.1
	buf.build/gen/go/nv99/cmsrpc/protocolbuffers/go v1.34.2-20240819145352-ebfd542d1e04.2
	buf.build/gen/go/nv99/paycallback/grpc/go v1.5.1-20241016070412-cd8ace879d71.1
	buf.build/gen/go/nv99/paycallback/protocolbuffers/go v1.35.1-20241016070412-cd8ace879d71.1
	buf.build/gen/go/nv99/user-rpc/grpc/go v1.5.1-20240911063519-44913cd1ff50.1
	buf.build/gen/go/nv99/user-rpc/protocolbuffers/go v1.34.2-20240911063519-44913cd1ff50.2
	buf.build/gen/go/nv99/zerogamerpc/grpc/go v1.4.0-20240729055653-dd27fc2a7d13.2
	buf.build/gen/go/nv99/zerogamerpc/protocolbuffers/go v1.34.2-20240729055653-dd27fc2a7d13.2
	buf.build/gen/go/zorm/admin-core/grpc/go v1.3.0-20240313070343-761107ca477b.2
	buf.build/gen/go/zorm/admin-core/protocolbuffers/go v1.33.0-20240313070343-761107ca477b.1
	github.com/aws/aws-sdk-go v1.49.9
	github.com/casbin/casbin/v2 v2.84.1
	github.com/eclipse/paho.mqtt.golang v1.5.0
	github.com/golang-jwt/jwt/v5 v5.0.0
	github.com/google/uuid v1.6.0
	github.com/jinzhu/copier v0.4.0
	github.com/json-iterator/go v1.1.12
	github.com/mojocn/base64Captcha v1.3.6
	github.com/nicksnyder/go-i18n/v2 v2.4.0
	github.com/philchia/agollo/v4 v4.1.5
	github.com/pkg/errors v0.9.1
	github.com/redis/go-redis/v9 v9.5.1
	github.com/scylladb/go-set v1.0.2
	github.com/shopspring/decimal v1.3.1
	github.com/spf13/cast v1.5.1
	github.com/suyuan32/simple-admin-common v1.1.3
	github.com/tidwall/gjson v1.14.4
	github.com/valyala/fasttemplate v1.2.2
	github.com/xuri/excelize/v2 v2.8.0
	github.com/zeromicro/go-zero v1.6.3
	gitlab.mygit.com/zero-core/common v1.0.35
	gitlab.mygit.com/zero-core/zorm-cache v1.0.1
	golang.org/x/crypto v0.25.0
	golang.org/x/exp v0.0.0-20230817173708-d852ddb80c63
	golang.org/x/text v0.16.0
	google.golang.org/api v0.169.0
	google.golang.org/grpc v1.64.1
	gorm.io/driver/mysql v1.5.4
	gorm.io/gen v0.3.23
	gorm.io/gorm v1.25.10
)

replace github.com/suyuan32/simple-admin-common v1.1.3 => github.com/suyuan32/simple-admin-common v1.3.10

replace ariga.io/atlas v0.19.1-0.20240203083654-5948b60a8e43 => ariga.io/atlas v0.12.0

require (
	ariga.io/atlas v0.19.1-0.20240203083654-5948b60a8e43 // indirect
	cloud.google.com/go/compute v1.25.1 // indirect
	cloud.google.com/go/compute/metadata v0.2.3 // indirect
	entgo.io/ent v0.13.1 // indirect
	github.com/agext/levenshtein v1.2.3 // indirect
	github.com/apparentlymart/go-textseg/v13 v13.0.0 // indirect
	github.com/beorn7/perks v1.0.1 // indirect
	github.com/bluele/gcache v0.0.2 // indirect
	github.com/bwmarrin/snowflake v0.3.0 // indirect
	github.com/casbin/ent-adapter v0.3.0 // indirect
	github.com/casbin/govaluate v1.1.0 // indirect
	github.com/casbin/redis-watcher/v2 v2.5.0 // indirect
	github.com/cenkalti/backoff/v4 v4.2.1 // indirect
	github.com/cespare/xxhash/v2 v2.2.0 // indirect
	github.com/coreos/go-semver v0.3.1 // indirect
	github.com/coreos/go-systemd/v22 v22.5.0 // indirect
	github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
	github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect
	github.com/emicklei/go-restful/v3 v3.11.0 // indirect
	github.com/fatih/color v1.16.0 // indirect
	github.com/felixge/httpsnoop v1.0.4 // indirect
	github.com/fsnotify/fsnotify v1.7.0 // indirect
	github.com/gabriel-vasile/mimetype v1.4.3 // indirect
	github.com/go-logr/logr v1.4.1 // indirect
	github.com/go-logr/stdr v1.2.2 // indirect
	github.com/go-openapi/inflect v0.19.0 // indirect
	github.com/go-openapi/jsonpointer v0.19.6 // indirect
	github.com/go-openapi/jsonreference v0.20.2 // indirect
	github.com/go-openapi/swag v0.22.4 // indirect
	github.com/go-playground/locales v0.14.1 // indirect
	github.com/go-playground/universal-translator v0.18.1 // indirect
	github.com/go-playground/validator/v10 v10.19.0 // indirect
	github.com/go-redis/redis/v8 v8.11.5 // indirect
	github.com/go-sql-driver/mysql v1.7.1 // indirect
	github.com/gogf/gf/v2 v2.7.0 // indirect
	github.com/gogo/protobuf v1.3.2 // indirect
	github.com/golang-jwt/jwt/v4 v4.5.0 // indirect
	github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0 // indirect
	github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
	github.com/golang/mock v1.6.0 // indirect
	github.com/golang/protobuf v1.5.4 // indirect
	github.com/google/gnostic-models v0.6.8 // indirect
	github.com/google/go-cmp v0.6.0 // indirect
	github.com/google/gofuzz v1.2.0 // indirect
	github.com/google/pprof v0.0.0-20230323073829-e72429f035bd // indirect
	github.com/google/s2a-go v0.1.7 // indirect
	github.com/googleapis/enterprise-certificate-proxy v0.3.2 // indirect
	github.com/googleapis/gax-go/v2 v2.12.2 // indirect
	github.com/gorilla/websocket v1.5.3 // indirect
	github.com/grpc-ecosystem/grpc-gateway/v2 v2.19.0 // indirect
	github.com/hashicorp/errwrap v1.1.0 // indirect
	github.com/hashicorp/go-multierror v1.1.1 // indirect
	github.com/hashicorp/hcl/v2 v2.16.2 // indirect
	github.com/jackc/chunkreader/v2 v2.0.1 // indirect
	github.com/jackc/pgconn v1.14.0 // indirect
	github.com/jackc/pgio v1.0.0 // indirect
	github.com/jackc/pgpassfile v1.0.0 // indirect
	github.com/jackc/pgproto3/v2 v2.3.2 // indirect
	github.com/jackc/pgservicefile v0.0.0-20221227161230-091c0ba34f0a // indirect
	github.com/jackc/pgtype v1.14.0 // indirect
	github.com/jackc/pgx/v4 v4.18.1 // indirect
	github.com/jinzhu/inflection v1.0.0 // indirect
	github.com/jinzhu/now v1.1.5 // indirect
	github.com/jmespath/go-jmespath v0.4.0 // indirect
	github.com/josharian/intern v1.0.0 // indirect
	github.com/karlseguin/ccache/v3 v3.0.3 // indirect
	github.com/leodido/go-urn v1.4.0 // indirect
	github.com/lib/pq v1.10.9 // indirect
	github.com/longbridgeapp/sqlparser v0.3.1 // indirect
	github.com/mailru/easyjson v0.7.7 // indirect
	github.com/mattn/go-colorable v0.1.13 // indirect
	github.com/mattn/go-isatty v0.0.20 // indirect
	github.com/mattn/go-sqlite3 v1.14.22 // indirect
	github.com/mitchellh/go-wordwrap v1.0.1 // indirect
	github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
	github.com/modern-go/reflect2 v1.0.2 // indirect
	github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826 // indirect
	github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
	github.com/openzipkin/zipkin-go v0.4.2 // indirect
	github.com/pelletier/go-toml/v2 v2.1.1 // indirect
	github.com/prometheus/client_golang v1.19.0 // indirect
	github.com/prometheus/client_model v0.5.0 // indirect
	github.com/prometheus/common v0.48.0 // indirect
	github.com/prometheus/procfs v0.12.0 // indirect
	github.com/richardlehane/mscfb v1.0.4 // indirect
	github.com/richardlehane/msoleps v1.0.3 // indirect
	github.com/spaolacci/murmur3 v1.1.0 // indirect
	github.com/tidwall/match v1.1.1 // indirect
	github.com/tidwall/pretty v1.2.0 // indirect
	github.com/valyala/bytebufferpool v1.0.0 // indirect
	github.com/xuri/efp v0.0.0-20230802181842-ad255f2331ca // indirect
	github.com/xuri/nfp v0.0.0-20230819163627-dc951e3ffe1a // indirect
	github.com/zclconf/go-cty v1.13.1 // indirect
	github.com/zeromicro/x v0.0.0-20230424055333-01c7fb9548d4 // indirect
	gitlab.mygit.com/zero-core/sharding v1.0.1 // indirect
	go.etcd.io/etcd/api/v3 v3.5.12 // indirect
	go.etcd.io/etcd/client/pkg/v3 v3.5.12 // indirect
	go.etcd.io/etcd/client/v3 v3.5.12 // indirect
	go.opencensus.io v0.24.0 // indirect
	go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 // indirect
	go.opentelemetry.io/otel v1.24.0 // indirect
	go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.24.0 // indirect
	go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.24.0 // indirect
	go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.24.0 // indirect
	go.opentelemetry.io/otel/exporters/stdout/stdouttrace v1.24.0 // indirect
	go.opentelemetry.io/otel/exporters/zipkin v1.24.0 // indirect
	go.opentelemetry.io/otel/metric v1.24.0 // indirect
	go.opentelemetry.io/otel/sdk v1.24.0 // indirect
	go.opentelemetry.io/otel/trace v1.24.0 // indirect
	go.opentelemetry.io/proto/otlp v1.1.0 // indirect
	go.uber.org/atomic v1.10.0 // indirect
	go.uber.org/automaxprocs v1.5.3 // indirect
	go.uber.org/multierr v1.11.0 // indirect
	go.uber.org/zap v1.24.0 // indirect
	golang.org/x/image v0.15.0 // indirect
	golang.org/x/mod v0.17.0 // indirect
	golang.org/x/net v0.27.0 // indirect
	golang.org/x/oauth2 v0.18.0 // indirect
	golang.org/x/sync v0.7.0 // indirect
	golang.org/x/sys v0.22.0 // indirect
	golang.org/x/term v0.22.0 // indirect
	golang.org/x/time v0.5.0 // indirect
	golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d // indirect
	google.golang.org/appengine v1.6.8 // indirect
	google.golang.org/genproto/googleapis/api v0.0.0-20240318140521-94a12d6c2237 // indirect
	google.golang.org/genproto/googleapis/rpc v0.0.0-20240318140521-94a12d6c2237 // indirect
	google.golang.org/protobuf v1.35.1 // indirect
	gopkg.in/inf.v0 v0.9.1 // indirect
	gopkg.in/yaml.v2 v2.4.0 // indirect
	gopkg.in/yaml.v3 v3.0.1 // indirect
	gorm.io/datatypes v1.1.1-0.20230130040222-c43177d3cf8c // indirect
	gorm.io/hints v1.1.2 // indirect
	gorm.io/plugin/dbresolver v1.4.2 // indirect
	gorm.io/plugin/prometheus v0.0.0-20230504115745-1aec2356381b // indirect
	k8s.io/api v0.29.2 // indirect
	k8s.io/apimachinery v0.29.2 // indirect
	k8s.io/client-go v0.29.2 // indirect
	k8s.io/klog/v2 v2.110.1 // indirect
	k8s.io/kube-openapi v0.0.0-20231010175941-2dd684a91f00 // indirect
	k8s.io/utils v0.0.0-20240102154912-e7106e64919e // indirect
	sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect
	sigs.k8s.io/structured-merge-diff/v4 v4.4.1 // indirect
	sigs.k8s.io/yaml v1.3.0 // indirect
)

replace (
	github.com/zeromicro/go-zero v1.6.2 => github.com/suyuan32/simple-admin-tools v1.5.16
	github.com/zeromicro/go-zero v1.6.3 => github.com/suyuan32/simple-admin-tools v1.6.4
)

@MrAlias
Copy link
Contributor

MrAlias commented Oct 31, 2024

@Will-Will-Will-Wu thanks for the additional information.

The following looks to be the source of the error:

"dependency":{"Path":"zeroapiend","Version":"(devel)","Sum":"","Replace":null}

I do not see any clear indication from your go.mod or logging info where that dependency is coming from. Can you search your codebase for zeroapiend and determine the package/module source.

I expect that module is returning a non-canonical Go version.

@SamsonDoSomeThing
Copy link

Zeroapiend is the name of the service itself, not a third-party module.
Operator:
instrumentation.opentelemetry.io/otel-go-auto-target-exe: /app/zeroapiend_api

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working response needed A response from the author is required
Projects
None yet
Development

No branches or pull requests

5 participants