[all-commits] [llvm/llvm-project] 524fe5: [clangd] Add basic monitoring info request for rem...

Kirill Bobyrev via All-commits all-commits at lists.llvm.org
Tue Mar 16 05:38:31 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 524fe515091d31e1c054fc521113a3bf2088d159
      https://github.com/llvm/llvm-project/commit/524fe515091d31e1c054fc521113a3bf2088d159
  Author: Kirill Bobyrev <kbobyrev at google.com>
  Date:   2021-03-16 (Tue, 16 Mar 2021)

  Changed paths:
    M clang-tools-extra/clangd/index/remote/CMakeLists.txt
    A clang-tools-extra/clangd/index/remote/MonitoringService.proto
    M clang-tools-extra/clangd/index/remote/Service.proto
    M clang-tools-extra/clangd/index/remote/server/Server.cpp

  Log Message:
  -----------
  [clangd] Add basic monitoring info request for remote index server

This allows requesting information about the server uptime and start time. This is the first patch in a series of monitoring changes, hence it's not immediately useful. Next step is propagating the index freshness information and then probably loading metadata into the index server.

The way to test new behaviour through command line:

```
$ grpc_cli call localhost:50051 Monitor/MonitoringInfo ''
connecting to localhost:50051
uptime_seconds: 42
index_age_seconds: 609568
Rpc succeeded with OK status
```

Reviewed By: kadircet

Differential Revision: https://reviews.llvm.org/D98246




More information about the All-commits mailing list