| commit | 922d1e671bc02086afdcfb8ae1636eefc53e0ee2 | [log] [tgz] | 
|---|---|---|
| author | Googler <noreply@google.com> | Mon Mar 05 14:49:00 2018 -0800 | 
| committer | Copybara-Service <copybara-piper@google.com> | Mon Mar 05 14:50:44 2018 -0800 | 
| tree | 7aa8c9973ff7d39c970a25dd88e58ad0b4ee30b8 | |
| parent | e225b6fd1a745aaeaef8c90b3b5b0485784b2d67 [diff] | 
remote: Add interceptor for logging gRPC calls during remote execution/caching This provides a io.grpc.ClientInterceptor implementation that can be used to log gRPC call information. The interceptor can select a logging handler to use based on the gRPC method being called (Watch, Execute, Write, etc) to build a LogEntry, which can then be logged after the call has finished. Unit tests for the interceptor are included. In this change, the interceptor is never invoked, nor are there any handlers implemented for any gRPC methods. The interceptor also never tries to log any entries. To avoid circular dependency issues (Remote library will depend on logger which depends on remote library for utils), I've factored out the utility classes from the remote library into their own directory/package as part of this change. PiperOrigin-RevId: 187926516
{Fast, Correct} - Choose two
Build and test software of any size, quickly and reliably.
Speed up your builds and tests: Bazel only rebuilds what is necessary. With advanced local and distributed caching, optimized dependency analysis and parallel execution, you get fast and incremental builds.
One tool, multiple languages: Build and test Java, C++, Android, iOS, Go, and a wide variety of other language platforms. Bazel runs on Windows, macOS, and Linux.
Scalable: Bazel helps you scale your organization, codebase, and continuous integration solution. It handles codebases of any size, in multiple repositories or a huge monorepo.
Extensible to your needs: Easily add support for new languages and platforms with Bazel's familiar extension language. Share and re-use language rules written by the growing Bazel community.
Follow our tutorials:
See CONTRIBUTING.md
Bazel is released in ‘Beta’. See the product roadmap to learn about the path toward a stable 1.0 release.