Skip to content

Commit

Permalink
Generate proto for C++
Browse files Browse the repository at this point in the history
open-telemetry#1787

Signed-off-by: Charlie Le <[email protected]>
  • Loading branch information
CharlieTLe committed Dec 25, 2024
1 parent 7543c59 commit 7bb3ebf
Show file tree
Hide file tree
Showing 12 changed files with 29,181 additions and 1 deletion.
9 changes: 8 additions & 1 deletion docker-gen-proto.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ gen_proto_go() {
protoc -I /build/pb /build/pb/demo.proto --go_out="./src/$1/" --go-grpc_out="./src/$1/"
}

gen_proto_cpp() {
echo "Generating Cpp protobuf files for $1"
docker build --build-arg OPENTELEMETRY_CPP_VERSION=${OPENTELEMETRY_CPP_VERSION} -f "src/$1/genproto/Dockerfile" -t "$1-genproto" .
docker run --rm -v $(pwd):/build "$1-genproto" \
cp -r "/$1/build/generated" "/build/src/$1/"
}

gen_proto_python() {
echo "Generating Python protobuf files for $1"
docker build -f "src/$1/genproto/Dockerfile" -t "$1-genproto" .
Expand All @@ -25,7 +32,7 @@ gen_proto_python() {
#gen_proto_java ad
#gen_proto_dotnet cart
gen_proto_go checkoutservice
#gen_proto_cpp currency
gen_proto_cpp currency
#gen_proto_ruby email
#gen_proto_ts frontend
#gen_proto_js payment
Expand Down
1,055 changes: 1,055 additions & 0 deletions src/currency/generated/proto/demo.grpc.pb.cc

Large diffs are not rendered by default.

3,708 changes: 3,708 additions & 0 deletions src/currency/generated/proto/demo.grpc.pb.h

Large diffs are not rendered by default.

10,792 changes: 10,792 additions & 0 deletions src/currency/generated/proto/demo.pb.cc

Large diffs are not rendered by default.

12,001 changes: 12,001 additions & 0 deletions src/currency/generated/proto/demo.pb.h

Large diffs are not rendered by default.

119 changes: 119 additions & 0 deletions src/currency/generated/proto/demo_mock.grpc.pb.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

90 changes: 90 additions & 0 deletions src/currency/generated/proto/grpc/health/v1/health.grpc.pb.cc

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 7bb3ebf

Please sign in to comment.