Skip to content

Commit

Permalink
feat: use gRPC to write spans to cloud trace (#97)
Browse files Browse the repository at this point in the history
* WIP: Add creation for protobuffers

* WIP: add credentials to grpc

* Add new dependencies

* WIP: updated to enable auth

* trace, types: added support for rpc calls

* transform: updated timestamp representation so that its compatible with calls to the rpc service

* trace: updated dependencies to use js grpc implementation

* types: removed unecessary import

* Updated tests for rpc client

* removed accidental spacing

* transformation: fixed time transformation to include nanoseconds

* Fix linting

* Fixed more linting

* added linting override

* added test for init function

* fix lint

* address pr feedback to remove import that was not needed

* addressed PR feedback by merging creating a getter for the rpc client

* fix lint

* removed uncecessary try-catch

* address PR feedback by fixing a typo in a variable name

* addressed pr feedback by mocking imported dependencies to improve testing of _getClient

* added metadata to rpc call

* fix lint

* fix lint

* Addressed pr feedback by mocking credentials to test that they are properly formed

* fix lint

* fix: address pr feedback by pulling ot header into a constant

* fix: address pr feedback by loading protobuf asynchronously, and added more specific params to protoloading

* fix: address pr feedback by removing callback with promisify

* fix: bind context

* fix: address pr feedback to remove timestamp optionals

* fix: address pr feedback by moving null check for traceService into getClient

* fix: modify the error message to the logger when creating client

* chore: update package-lock

* fix: adddress pr comment to remove unecessary variable assignment
  • Loading branch information
reggiemcdonald committed Aug 5, 2020
1 parent 6ac47d5 commit ddf130b
Show file tree
Hide file tree
Showing 7 changed files with 869 additions and 177 deletions.
Loading

0 comments on commit ddf130b

Please sign in to comment.