Skip to content

Commit

Permalink
Merge pull request #4579 from parca-dev/otelprofiling
Browse files Browse the repository at this point in the history
Add otel profiling support
  • Loading branch information
brancz authored Jun 4, 2024
2 parents ba26a71 + e8278ad commit 00f0ba4
Show file tree
Hide file tree
Showing 46 changed files with 27,001 additions and 18,902 deletions.
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,14 @@ proto/generate: proto/vendor
buf generate buf.build/grpc/grpc --path grpc/health/
# docker run --volume ${PWD}:/workspace --workdir /workspace bufbuild/buf generate
buf generate
rm -rf gen/proto/go/opentelemetry
buf generate --template otel-buf.gen.yaml --path proto/opentelemetry/proto/collector/profiles/v1/profiles_service.proto
buf generate --template otel-buf.gen.yaml --path proto/opentelemetry/proto/profiles/v1/alternatives/pprofextended/pprofextended.proto
buf generate --template otel-buf.gen.yaml --path proto/opentelemetry/proto/profiles/v1/profiles.proto
sed -i 's/go.opentelemetry.io\/proto\/otlp\/profiles\/v1\/alternatives\/pprofextended/github.com\/parca-dev\/parca\/gen\/proto\/go\/opentelemetry\/proto\/profiles\/v1\/alternatives\/pprofextended/g' gen/proto/go/opentelemetry/proto/profiles/v1/profiles.pb.go
sed -i 's/go.opentelemetry.io\/proto\/otlp\/profiles\/v1/github.com\/parca-dev\/parca\/gen\/proto\/go\/opentelemetry\/proto\/profiles\/v1/g' gen/proto/go/opentelemetry/proto/collector/profiles/v1/profiles_service.pb.go
rm -rf gen/proto/go/opentelemetry/proto/common
rm -rf gen/proto/go/opentelemetry/proto/resource

.PHONY: proto/vendor
proto/vendor: proto/google/pprof/profile.proto
Expand Down

Large diffs are not rendered by default.

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

Loading

0 comments on commit 00f0ba4

Please sign in to comment.