Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add gRPC plugin proto changes (#1323)
* Add gRPC plugin proto changes Relating to issue #422 and review #1214, add proto changes to later allow for gRPC plugins to be used. Signed-off-by: Charles Dixon <chvckd@gmail.com> * Change FindTraces signature to return a stream. FindTraces can hit grpc message size limits if a large number of spans are requested, using a stream mitigates this issue. Signed-off-by: Charles Dixon <chvckd@gmail.com> * Satisfy gofmt tool Signed-off-by: Charles Dixon <chvckd@gmail.com> * Change proto package and service names Signed-off-by: Charles Dixon <chvckd@gmail.com> * Delete commented out spanstorage Signed-off-by: Charles Dixon <chvckd@gmail.com> * Change FindTraces response to be a stream of spans Signed-off-by: Charles Dixon <chvckd@gmail.com> * Change from EmptyMessage to google.protobuf.Empty Signed-off-by: Charles Dixon <chvckd@gmail.com> * Move from using StoragePluginError to google.rpc.Status Signed-off-by: Charles Dixon <chvckd@gmail.com> * Remove commented code and clean up proto formatting Signed-off-by: Charles Dixon <chvckd@gmail.com> * Remove protobuf responses and only return successes, rely on Status for errors Signed-off-by: Charles Dixon <chvckd@gmail.com> * Update Gopkg lockfile Signed-off-by: Charles Dixon <chvckd@gmail.com> * Update Span type to come from model.proto Signed-off-by: Charles Dixon <chvckd@gmail.com> * Update storage proto file Signed-off-by: Charles Dixon <chvckd@gmail.com> * Add generated storage plugin file to lint ignores Signed-off-by: Charles Dixon <chvckd@gmail.com> * Lint ignore grpc plugin generated code by name not path Signed-off-by: Charles Dixon <chvckd@gmail.com> * Rename FindTracesResponseChunk to SpansResponseChunk Signed-off-by: Charles Dixon <chvckd@gmail.com> * Add marshal/unmarshal tests for DependencyLink Signed-off-by: Charles Dixon <chvckd@gmail.com> * Add tests for storage protos with custom types Signed-off-by: Charles Dixon <chvckd@gmail.com> * Run fmt and ignore storage_test for linting Signed-off-by: Charles Dixon <chvckd@gmail.com> * Remove DependencyLinkSource and use string Signed-off-by: Charles Dixon <chvckd@gmail.com> * Update headers Signed-off-by: Charles Dixon <chvckd@gmail.com> * Add SpansChunkResponse test Signed-off-by: Charles Dixon <chvckd@gmail.com> * Update makefile protoc calls Signed-off-by: Charles Dixon <chvckd@gmail.com> * Update proto generated files and update license script Signed-off-by: Charles Dixon <chvckd@gmail.com> * Update generated storage file to new proto layout Signed-off-by: Charles Dixon <chvckd@gmail.com> * Add storage generated files to import order cleanup ignores Signed-off-by: Charles Dixon <chvckd@gmail.com> * Move storage generated file to proto-gen dir Signed-off-by: Charles Dixon <chvckd@gmail.com> * Remove generated plugin storage file from script ignores Signed-off-by: Charles Dixon <chvckd@gmail.com> * Fix copyright headers Signed-off-by: Charles Dixon <chvckd@gmail.com> * Update storage_test generated file Signed-off-by: Charles Dixon <chvckd@gmail.com>
- Loading branch information