aboutsummaryrefslogtreecommitdiff
path: root/services
AgeCommit message (Collapse)Author
2018-10-09services: fix callbacks not being forwarded in binlog interceptors (#4918)zpencer
2018-10-09services: fix channelz javadoc lint for reference not found (#4920)zpencer
Referring to the public abstract class seems to be OK, but referring to the package private impl trips the linter.
2018-10-08services: allow config str to be passed into binlog object (#4919)zpencer
Do not require binlog str to be defined by env var. This allows --flag=value styled configuration, which is more common internally.
2018-10-03services: sync health.proto from grpc-proto repo (#4904)Kun Zhang
2018-09-27core,services: v1 binlog (#4846)zpencer
Log using new proto definition - Remove io.grpc.BinaryLog.CallId because a call ID is now an AtomicLong - Add the concept of "always included" and "never included" metadata keys. This is needed because grpc-status-details-bin is already logged in the binlog msg, and we will log grpc-trace-bin for the census info. - unit tests are effectively rewritten
2018-09-21services: disallow duplicate rules for a binlogging services or methods (#4868)zpencer
Let's simplify the impementation to just disallow duplicates. This makes it easier to maintain. Background info: https://github.com/grpc/proposal/pull/104
2018-09-14all: use Java7 bracketsCarl Mastrangelo
2018-09-12services: fix duration in Binlog testCarl Mastrangelo
2018-09-10services: remove RequireDoubleSubmitCookieInterceptor (#4833)zpencer
The CSRF protection has been moved to the proxy implementation. This is cleaner since the gRPC service should not need to know about grpc-web.
2018-09-10core, services: remove census from binary logs (#4845)zpencer
The exact census span behavior wrt gRPC is not yet defined, so let's punt on tight integration. It may be fine to log grpc-trace-bin on server side because it is a key visible to the application.
2018-09-05all: prepend internal classes with Internal (#4826)zpencer
This is a safer way to hide the classes, because they will not appear in public targets for some build configurations.
2018-09-04all: move Channelz to io.grpc as InternalChannelz (#4797)zpencer
This is an API used to coordinate across packages and must live in `io.grpc`. Prepending `Internal` makes it easier to detect and hide this class from public visibility when using certain build tools. fixes #4796
2018-08-17services: Fix binarylog's java_package to include versionEric Anderson
2018-08-09all: update animalsniffer to Java 7 and add Android 14 (#4727)Eric Gribkoff
2018-07-31all: add tracking issues for all experimental APIs and make it requiredCarl Mastrangelo
Additionally, make Status*Exception.getTrailers() non experimental
2018-07-17services: binlog status code, msg, details (#4551)zpencer
Log these additional bits of info in RPC binary logging
2018-07-12compiler,stub: update RpcMethod docs and usageCarl Mastrangelo
2018-07-12services: double submit cookie interceptor for channelz (#4628)zpencer
Add this form of XSRF protection to channelz. Non web browser clients calling channelz must also include the cookie header and metadata key.
2018-07-12services: add javadocs for binlog constructors (#4637)zpencer
2018-07-10compiler, stub: Rename inputType and outputType in @RpcMethodjbingham-google
2018-07-06compiler, stub: Add @RpcMethod annotationjbingham-google
This annotation will enable Java APT to generate code. Addresses part of #3173.
2018-06-29services: delete unused proto (#4604)Eric Gribkoff
2018-06-27services: binlog method name should include leading / char (#4588)zpencer
The APIs of the other implementations all begin method names with `/`, since the binlog is language agnostic we should be aligned.
2018-06-11all: add gradle format checkerZHANG Dapeng
This PR adds an automatic gradle format checker and reformats all the *.gradle files. After this, new changes to *.gradle files will fail to build if not in good format, just like checkStyle failure.
2018-06-11all: fix lint warningsZHANG Dapeng
2018-06-07services: binlog deadline and methodName at start of rpc (#4550)zpencer
These are first class concepts and should be pulled to top level of proto.
2018-06-07services: add sequence id within call for entries (#4549)zpencer
This is a new field added to the binlog proto so that we can detect when the storage impl reorders or drops recorded entries.
2018-06-07services: sync binlog proto (#4542)zpencer
https://github.com/grpc/grpc-proto/pull/20
2018-06-05stub: remove static Method descriptors and stabilize method accessorsCarl Mastrangelo
2018-06-04services: allow binlog to blacklist methods (#4523)zpencer
The spec says users can specify a blacklist a method from binlogs by saying "-package.service/method".
2018-06-01core: Implement channel tracing for some eventsZHANG Dapeng
Includes - API plumbing for channel tracing `+ManagedChannelBuilder.maxTraceEvents()` - trace logging for channel/subchannel creation events and name resolving events. Trace logging for all other events will be added in subsequent PRs.
2018-05-31 services: update the binlog message truncation flag (#4508)zpencer
The truncation flag tells us whether the msg or meta was truncated.
2018-05-30services: use RE2/JNathan Herring
RE2/J ensures linear time matching, and as such is preferred over `java.util.regex` for safety in the mono repo. While currently safe, this conversion future-proofs any `Pattern`s in BinlogHelper, and removes the need to maintain an exception for gRPC wrt. use of regexes.
2018-05-24core,services: fix lints (#4504)zpencer
- Type parameters must be upper camel case - constant case field must be final
2018-05-23services,core: make BinaryLogSink visible, add setter (#4503)zpencer
* make BinaryLogSink public * add io.grpc.BinaryLog to server/channel builder
2018-05-23move io.grpc.BinaryLogProvider to io.grpc.services (#4501)zpencer
Add internal accessors for ServerInterceptors and ClientInterceptors because some helpers were pkg private Fix tests that were once creating BinaryLogProvider instances, they should now only create io.grpc.BinaryLog instances
2018-05-23services: use Peer.address proto (#4502)zpencer
address+ip_port is the new way; peer is deprecated
2018-05-23services: sync binarylog.proto (#4500)zpencer
Sync from grpc/grpc-proto and rerun codegen.
2018-05-23io.grpc.BinaryLog is now the fully functional API (#4498)zpencer
classes in internal now use the io.grpc.BinaryLog API, io.grpc.BinaryLogProvider is an implementation of the API and will be moved to io.grpc.services.
2018-05-23noop: resolve lint warnings found at import. (#4496)Kun Zhang
2018-05-21all: TimeProvider to use nanos rather than millisZHANG Dapeng
This is the same practice as #2833
2018-05-20services: add temp file based binary log sink (#4404)zpencer
No need to use service provider for BinaryLogSink, it can just be an interface that is passed into BinaryLogProviderImpl. Add a default TempFileSink that uses the protobuf object's writeDelimited method to write to the output stream. Warning: TempFileSink blocks.
2018-05-18core: remove io.grpc core dependency on census (#4461)zpencer
io.grpc (core) does not strictly require census. Move the usages and and remove census from BUILD.bazel .
2018-05-18services: fix lint on toString (#4481)zpencer
BinlogHelper does not override toString so print something else that is more descriptive.
2018-05-17protobuf,examples: move json encoding to examplesCarl Mastrangelo
2018-05-16services: differentiate between tcpi_retransmits and tcpi_retrans (#4470)zpencer
These are subtly differently named but distinct fields.
2018-05-15core,services: Add ChannelTracing data objectZHANG Dapeng
Added `ChannelTrace` as an inner class of `Channelz`. This is in preparation for the implementation of [Channel Tracing](https://github.com/grpc/proposal/blob/master/A3-channel-tracing.md)
2018-05-15services: allow binlog env str to be empty or null (#4447)zpencer
Binary log objects are explicitly passed into channel and server builders, but the configuration is something that's from the environment variables. An unset or empty GRPC_BINARY_LOG_CONFIG should be allowed to disable logging. Previously, the SPI just reported itself as not available when the conf str was not something valid.
2018-05-07core, services: make BinaryLog an explicit object that is passed into ↵zpencer
channels/servers (#4431) remove SPI, io.grpc.BinaryLog is a public API that is passed into builders and must be explicitly closed.
2018-05-04services: complete ChannelTrace in channelz.protoZHANG Dapeng