Add goinstrument helper

This commit is contained in:
Yusuke Kuoka 2024-05-27 05:06:37 +00:00
parent 3be7128f9a
commit 7a11d7270f
1 changed files with 17 additions and 0 deletions

17
instrument.sh Executable file
View File

@ -0,0 +1,17 @@
#!/usr/bin/env bash
set -e
git reset --hard origin/master
go get go.opentelemetry.io/otel
go get gopkg.in/DataDog/dd-trace-go.v1
go get github.com/davecgh/go-spew
go get github.com/pmezard/go-difflib
find . -name "*.go" | grep -E '(cmd/ghalistener|cmd/githubrunnerscalesetlistener|controllers/actions.github.com)' | xargs -I{} go-instrument -app arc -w -filename {}
git add -u
git commit -m 'chore: goinstrument'
git cherry-pick a6d6f3e