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

Add Go sample app #35

Merged
merged 1 commit into from
Jul 26, 2023
Merged

Add Go sample app #35

merged 1 commit into from
Jul 26, 2023

Conversation

damemi
Copy link
Member

@damemi damemi commented Jun 27, 2023

Fixes #30

@damemi
Copy link
Member Author

damemi commented Jun 28, 2023

Version v0.2.1-alpha of the go instrumentation (the latest release) crashes in this for the client app:

{"level":"error","ts":1687975483.9678535,"caller":"cli/main.go:76","msg":"error while analyzing target process","error":"could not find function offsets for instrumenter","stacktrace":"main.main\n\t/usr/local/google/home/mikedame/go/src/github.com/open-telemetry/opentelemetry-go-instrumentation/cli/main.go:76\nruntime.main\n\t/usr/lib/google-golang/src/runtime/proc.go:267"}

The next release of https://github.com/open-telemetry/opentelemetry-go-instrumentation should fix that, tested locally and I think the added support for net/http client is what's missing

@damemi
Copy link
Member Author

damemi commented Jul 12, 2023

Should work once open-telemetry/opentelemetry-operator#1915 is released in the operator

@damemi damemi requested a review from a team July 26, 2023 15:23
sample-apps/go/app/go.mod Show resolved Hide resolved
@damemi
Copy link
Member Author

damemi commented Jul 26, 2023

Merging this. it still may not work until the new upstream operator release is published but that should be any day

@damemi damemi merged commit 66edb36 into GoogleCloudPlatform:main Jul 26, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sample for Operator auto-instrumentation with Go
2 participants