aboutsummaryrefslogtreecommitdiff
path: root/services
AgeCommit message (Collapse)Author
2018-05-03 all: normalize copyright header Carl Mastrangelo
2018-05-02services: BinaryLog is an overused term, rename to BinlogHelper (#4429)zpencer
This class really is an internal helper class for the implementation.
2018-05-02service: include go package in channelz.protoCarl Mastrangelo
2018-05-02services: update channelz proto packageCarl Mastrangelo
2018-05-02services: BinaryLogProviderImpl is experimental (#4420)Eric Anderson
This class is not stable API.
2018-04-30 services: move health.proto to correct directoryCarl Mastrangelo
2018-04-30services: update channelz with docs from upstreamCarl Mastrangelo
2018-04-27services: remove monitoring fileCarl Mastrangelo
2018-04-27services,core: simplify CallId generation (#4365)zpencer
BinaryLog.java is the class that is responsible for intercepting client and server calls. It now requires a CallId to be passed in. The BinaryLogProviderImpl is responsible for generating a CallId and passing it in.
2018-04-25services: fix channelz linter warnings (#4395)zpencer
- final classes should have toString() - fix arg name mismatch
2018-04-25 services: update to remote channelz.proto defCarl Mastrangelo
2018-04-25core,netty,okhttp,services,testing: expose security info to channelz (#4300)zpencer
Pull the TLS info from the SSLSession object for TLS, and AltsContext for ALTS.
2018-04-20services: move channelz proto into normalized directory structureCarl Mastrangelo
2018-04-19services: avoid static initialization for BinaryLog.java (#4363)zpencer
The code that uses this will create an instance.
2018-04-16services: turn channelz null futures into Status.UNIMPLEMENTED (#4346)zpencer
Then channelz GUI will take this into account. This is particularly useful for InProcessTransport, where I have decided we do not need special support for in channelz. The server and channel stats are already sufficient.
2018-04-13services: socket options were erroneously ignored if socket has no stats (#4336)zpencer
This fixes listen sockets. It is ok to have no data but report socket options.
2018-04-13services: make channelz constructor static (#4334)zpencer
Right now this is inaccessible to services.
2018-04-05core,netty: add NettySocketSupport to populate TcpInfo (#4306)zpencer
NettySocketSupport is responsible for making the low level calls to get and populate the TcpInfo structure.
2018-04-04netty,services: fix param comment lint (#4304)zpencer
Fix linter complaint because comment does not match arg name.
2018-04-03core,services: binary log should use real peer socket and call id (#4266)zpencer
The peer socket is read from TRANSPORT_ATTR_REMOTE_ADDR from the stream attributes. We only log the peer on receive initial metadata. The call id assumes census is available. The call ID read from the context via SERVER_CALL_ID_CONTEXT_KEY on server side, and read from CallOptions via CLIENT_CALL_ID_CALLOPTION_KEY on client side. The value is copied from CONTEXT_SPAN_KEY which is set by census. Pass around CallId with two longs, not a byte[].
2018-04-03core,netty,services: add server listen sockets to channelz proto service (#4220)zpencer
Server listen sockets differ from normal sockets in that they do not have a remote address, do not have stats on calls started/failed/etc, and do not have security info.
2018-03-30core,netty,okhttp,services: expose socket options to channelz (#4228)zpencer
For okhttp, expose the standard options from the Socket object. For netty, expose all the `io.netty.channel.ChannelOption`s of the `channel.config()`.
2018-03-28Fix compilation in Java 9Eric Anderson
2018-03-26build.gradle: bump protobuf plugin to 0.8.5 (#4101)zpencer
This update automatically adds generated sources and proto IDLs to the `idea` plugin.
2018-03-26services: Specify serialVersionUID for the dummy SocketAddressEric Anderson
This fixes a serial warning that breaks the build when building _without_ ErrorProne. I have no clue why _disabling_ ErrorProne makes the warning pop up, but whatever, the warning is legit. I also gave it a name, since the anonymous $1 seems weird if we're providing a serialVersionUID. Not to say we're actually supporting serializing this object. But if we ever see a serialized form show up in the future, having a more clear name would make it obvious what it is.
2018-03-23Bump to Guava 20Eric Anderson
Fixes #4176
2018-03-23core,services: implement binarylog Client and ServerInterceptor (#4174)zpencer
- To make unit tests easier, added the BinaryLogSinkWriter abstract class, which allows verifying high level arguments rather than low level protobufs. - remove InputStream based marshaller (IDENTITY_MARSHALLER) in favor of byte[] because retries will need to call serialize multiple times. This is achieved with a special InputStream that lets us access the internal byte[] without copying. - Change ByteBuffer based internal methods to use byte[] - Update unit tests to reflect the above
2018-03-16core,services: track server sockets in channelz (#4226)zpencer
Rather than querying the ServerImpl for its sockets, we register them into channelz as with all the other entities, for consistency. Error conditions are checked with `assert` statements, so we throw in tests.
2018-03-16services: update channelz TLS proto to use RFC names (#4233)zpencer
For context: https://github.com/grpc/proposal/pull/71
2018-03-15services: fix lint warningCarl Mastrangelo
2018-03-14services: fix binary logging empty metadata NPE, add null checks (#4213)zpencer
Fix NPE and refactor tests to make it more obvious whether tests assume empty or non empty metadata. Add null checks to applicable places in binary log.
2018-03-10core,services: add ChannelzService class (#4205)zpencer
This implements the methods to expose the stats as a gRPC service. GetServerSockets is still unimplemented and will require a follow up change.
2018-03-09services: update channelz.proto to refer to sockets as socket_ref (#4203)zpencer
This is more consistent with the other fields.
2018-03-08services: add channelz protos (#4191)zpencer
This adds the proto and generated output. These options are used: option java_multiple_files = true; option java_package = "io.grpc.channelz.v1"; option java_outer_classname = "ChannelzProto";
2018-03-01 buildscripts,travis: fetch from mvn with retries (#4140)zpencer
A band aid for #3284, to make its symptoms less noticeable.
2018-02-22core,services: fix binarylog unit tests (#4109)zpencer
- The unsafe operation was reverted in code, so the test should not use it either - The variable naming is tripping internal linters
2018-02-20core,services: lock down visibility of BinaryLogSink (#4100)zpencer
- This class should not be a part of the public API - Update ServiceProvidersTest to verify package private services can be loaded with the utility.
2018-02-16services: introduce BinaryLogSinkProvider (#3917)zpencer
The `BinaryLog` will write `GrpcLogEntry`s to the sink, which is intended as a pluggable interface. It is the sink's responsibility to send the binlog protos to disk, to a remote logging service, etc.
2018-02-08compiler: avoid invoking experimental method in generated codeEric Gribkoff
2018-01-26Update opencensus to 0.11.0 and remove extra dependencies.Bogdan Drutu
2018-01-09Update ErrorProne to 2.1.3 and fix failuresEric Anderson
The fixes could have subtle side-effects, but I did take care when making them.
2018-01-09services: fix lint warnings on binlog (#3927)zpencer
2018-01-04respond to commentsSpencer Fang
2018-01-04services: utility methods for create binlog protosSpencer Fang
2017-12-14services: let BinaryLog factory return null (#3868)zpencer
2017-12-14core,services: move BinaryLog class to grpc-services (#3867)zpencer
2017-12-04all: add Status messages to all statusesCarl Mastrangelo
2017-11-30all: update to proto 3.5.0Carl Mastrangelo
2017-11-01core: set sampled for local span per MethodDescriptor. (#3627)Kun Zhang
This moves away from the global String-based Span name registry which is not as flexible as we desire. Also renamed the option name to be more accurate. This is not API-breaking because the origianl addition to MethodDescriptor and code-gen didn't make it into the 1.7.0 release.
2017-11-01testing: move io.grpc.testing.StreamRecorder to internalZHANG Dapeng