Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: use gRPC to write spans to cloud trace (#97)
* 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