Skip to content

Commit

Permalink
Remove usage of grpc-gateway in otlpreceiver. Http protocols are diff…
Browse files Browse the repository at this point in the history
…erent than grpc (#3422)

Signed-off-by: Bogdan Drutu <[email protected]>
  • Loading branch information
bogdandrutu authored Jun 14, 2021
1 parent 703bbb4 commit cda019f
Show file tree
Hide file tree
Showing 12 changed files with 200 additions and 1,071 deletions.
5 changes: 0 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -336,11 +336,6 @@ genproto_sub:
@echo Generate Go code from .proto files in intermediate directory.
$(foreach file,$(OPENTELEMETRY_PROTO_FILES),$(call exec-command,$(PROTOC) $(PROTO_INCLUDES) --gogofaster_out=plugins=grpc:./ $(file)))

@echo Generate gRPC gateway code.
$(PROTOC) $(PROTO_INCLUDES) --grpc-gateway_out=logtostderr=true,grpc_api_configuration=opentelemetry/proto/collector/trace/v1/trace_service_http.yaml:./ opentelemetry/proto/collector/trace/v1/trace_service.proto
$(PROTOC) $(PROTO_INCLUDES) --grpc-gateway_out=logtostderr=true,grpc_api_configuration=opentelemetry/proto/collector/metrics/v1/metrics_service_http.yaml:./ opentelemetry/proto/collector/metrics/v1/metrics_service.proto
$(PROTOC) $(PROTO_INCLUDES) --grpc-gateway_out=logtostderr=true,grpc_api_configuration=opentelemetry/proto/collector/logs/v1/logs_service_http.yaml:./ opentelemetry/proto/collector/logs/v1/logs_service.proto

@echo Move generated code to target directory.
mkdir -p $(PROTO_TARGET_GEN_DIR)
cp -R $(PROTO_INTERMEDIATE_DIR)/$(PROTO_PACKAGE)/* $(PROTO_TARGET_GEN_DIR)/
Expand Down
169 changes: 0 additions & 169 deletions internal/data/protogen/collector/logs/v1/logs_service.pb.gw.go

This file was deleted.

169 changes: 0 additions & 169 deletions internal/data/protogen/collector/metrics/v1/metrics_service.pb.gw.go

This file was deleted.

Loading

0 comments on commit cda019f

Please sign in to comment.