|
|
@ -17,7 +17,7 @@ endef |
|
|
|
.PHONY: ci |
|
|
|
.PHONY: ci |
|
|
|
ci: gen-cpp gen-csharp gen-go gen-java gen-objc gen-openapi gen-php gen-python gen-ruby |
|
|
|
ci: gen-cpp gen-csharp gen-go gen-java gen-objc gen-openapi gen-php gen-python gen-ruby |
|
|
|
|
|
|
|
|
|
|
|
OTEL_DOCKER_PROTOBUF ?= otel/build-protobuf:0.2.0
|
|
|
|
OTEL_DOCKER_PROTOBUF ?= otel/build-protobuf:0.2.1
|
|
|
|
PROTOC := docker run --rm -u ${shell id -u} -v${PWD}:${PWD} -w${PWD} ${OTEL_DOCKER_PROTOBUF} --proto_path=${PWD}
|
|
|
|
PROTOC := docker run --rm -u ${shell id -u} -v${PWD}:${PWD} -w${PWD} ${OTEL_DOCKER_PROTOBUF} --proto_path=${PWD}
|
|
|
|
PROTO_INCLUDES := -I/usr/include/github.com/gogo/protobuf
|
|
|
|
PROTO_INCLUDES := -I/usr/include/github.com/gogo/protobuf
|
|
|
|
|
|
|
|
|
|
|
@ -83,13 +83,13 @@ gen-objc: |
|
|
|
$(PROTOC) --objc_out=./$(PROTO_GEN_OBJC_DIR) --grpc-objc_out=./$(PROTO_GEN_OBJC_DIR) opentelemetry/proto/collector/metrics/v1/metrics_service.proto
|
|
|
|
$(PROTOC) --objc_out=./$(PROTO_GEN_OBJC_DIR) --grpc-objc_out=./$(PROTO_GEN_OBJC_DIR) opentelemetry/proto/collector/metrics/v1/metrics_service.proto
|
|
|
|
$(PROTOC) --objc_out=./$(PROTO_GEN_OBJC_DIR) --grpc-objc_out=./$(PROTO_GEN_OBJC_DIR) opentelemetry/proto/collector/logs/v1/logs_service.proto
|
|
|
|
$(PROTOC) --objc_out=./$(PROTO_GEN_OBJC_DIR) --grpc-objc_out=./$(PROTO_GEN_OBJC_DIR) opentelemetry/proto/collector/logs/v1/logs_service.proto
|
|
|
|
|
|
|
|
|
|
|
|
# Generate gRPC/Protobuf for openapiv2
|
|
|
|
# Generate gRPC/Protobuf for swagger
|
|
|
|
.PHONY: gen-openapi |
|
|
|
.PHONY: gen-openapi |
|
|
|
gen-openapi: |
|
|
|
gen-openapi: |
|
|
|
mkdir -p $(PROTO_GEN_OPENAPI_DIR)
|
|
|
|
mkdir -p $(PROTO_GEN_OPENAPI_DIR)
|
|
|
|
$(PROTOC) --openapiv2_out=logtostderr=true,grpc_api_configuration=opentelemetry/proto/collector/trace/v1/trace_service_http.yaml:$(PROTO_GEN_OPENAPI_DIR) opentelemetry/proto/collector/trace/v1/trace_service.proto
|
|
|
|
$(PROTOC) --swagger_out=logtostderr=true,grpc_api_configuration=opentelemetry/proto/collector/trace/v1/trace_service_http.yaml:$(PROTO_GEN_OPENAPI_DIR) opentelemetry/proto/collector/trace/v1/trace_service.proto
|
|
|
|
$(PROTOC) --openapiv2_out=logtostderr=true,grpc_api_configuration=opentelemetry/proto/collector/metrics/v1/metrics_service_http.yaml:$(PROTO_GEN_OPENAPI_DIR) opentelemetry/proto/collector/metrics/v1/metrics_service.proto
|
|
|
|
$(PROTOC) --swagger_out=logtostderr=true,grpc_api_configuration=opentelemetry/proto/collector/metrics/v1/metrics_service_http.yaml:$(PROTO_GEN_OPENAPI_DIR) opentelemetry/proto/collector/metrics/v1/metrics_service.proto
|
|
|
|
$(PROTOC) --openapiv2_out=logtostderr=true,grpc_api_configuration=opentelemetry/proto/collector/logs/v1/logs_service_http.yaml:$(PROTO_GEN_OPENAPI_DIR) opentelemetry/proto/collector/logs/v1/logs_service.proto
|
|
|
|
$(PROTOC) --swagger_out=logtostderr=true,grpc_api_configuration=opentelemetry/proto/collector/logs/v1/logs_service_http.yaml:$(PROTO_GEN_OPENAPI_DIR) opentelemetry/proto/collector/logs/v1/logs_service.proto
|
|
|
|
|
|
|
|
|
|
|
|
# Generate gRPC/Protobuf implementation for PhP.
|
|
|
|
# Generate gRPC/Protobuf implementation for PhP.
|
|
|
|
.PHONY: gen-php |
|
|
|
.PHONY: gen-php |