[grpc-io] Re: Implementing a logging application using gRPC

2022-01-24 Thread 'sanjay...@google.com' via grpc.io
I assume the microservices will use gRPC to send their log entries to the 
centralized logging server. In that case I don't understand what you mean 
by "how these logs would be returned by the server?". The centralized 
logging server would log to a logging backend.

Few questions:
- you will need to modify your microservices to insert the logging 
statements. I suppose that's ok?
- what do you want to log from your microservices? The inter-service calls 
or application state or something else?
- How are the microservices communicating - gRPC, REST or something else? 
Are you already using gRPC for something else?
- which language are the microservices written in?

On Wednesday, November 10, 2021 at 2:16:48 PM UTC-8 anderson...@gmail.com 
wrote:

>
> Guys, I need to implement an application that generates logs for several 
> microservices. I was suggested to use protobuf to generate these logs. I've 
> never dealt with protobuf, gRPC, etc. I was able to verify the advantages 
> of using gRPC in this case (data serialization speed, contracts that would 
> facilitate the standardization of logs, etc). But I can't see safely and 
> practically how this system would be structured. Until then I thought of a 
> server using gRPC that would serve to collect the microservices logs, but 
> how these logs would be returned by the server?
>

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to grpc-io+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/5208444a-472d-461d-8bfc-33cb66d2b6afn%40googlegroups.com.


Re: [grpc-io] [proposal] PHP - drop php 7.0+7.1 support for protobuf

2022-01-24 Thread 'Stanley Cheung' via grpc.io
Hi I am the contact person for this. Please let me know what I can do to
help from the gRPC side.

-Stanley

On Thu, Jan 13, 2022 at 2:32 AM Brett McBride 
wrote:

> Hello maintainers,
> I've got a PR in progress [1] for google/protobuf which removes
> deprecation warnings that appear in PHP 8.1. These deprecations will become
> fatal errors in PHP 9.0, when that eventually comes out.
> In order to make the php library + extension work with 8.1, I've made some
> changes that break BC with 7.0 (library) and 7.1 (extension), so such a
> change would need to be coordinated with GRPC.
>
> Thoughts and feedback welcome!
> thanks,
> Brett
>
> [1] https://github.com/protocolbuffers/protobuf/pull/9370
>
> --
> You received this message because you are subscribed to the Google Groups "
> grpc.io" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to grpc-io+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/grpc-io/facf68c0-e77a-4f55-bc6b-dea40e587e02n%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to grpc-io+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/CAEteGX1nB-V%3Dhr8truoNQFqRxu8ZFztnGP20XQcuFJQgMX619Q%40mail.gmail.com.


Re: [grpc-io] Re: grpcio_testing code samples

2022-01-24 Thread 'Lidi Zheng' via grpc.io
The grpc-testing package is for mocking the services. It can intercept 
messages, inject logic, alter timestamp.

How to write tests is a programming philosophy question. In most of the 
gRPC Python tests, we try to use "end2end" style tests, conduct tests only 
using the public API.

On Saturday, December 4, 2021 at 12:53:56 PM UTC-8 M T wrote:

> One thing I just noticed that I didn't include in my original request: I'm 
> looking for examples on how to write tests for *python* grpc services & 
> clients.
>
> Thanks for getting back to me - but unfortunately, neither link helps:
>
> * https://github.com/grpc/grpc/tree/master/examples only contains usage 
> examples of actually implementing services / clients, but not about  how to 
> test them
> * https://github.com/grpc/grpc/tree/master/test only contains a bunch of 
> .cc files, which don't help in my case, since I'm looking for python unit 
> tests, and the only python-related files I could find in there where about 
> testing the generation of the wheels that are required for the python 
> grpcio packages
>
> When I said "the documentation only lists what classes / methods exist, 
> but not how to use them", I was talking about this: 
> https://grpc.github.io/grpc/python/grpc_testing.html - and this is quite 
> cryptic to a newbie like me. A simple example (e.g. unit tests for the 
> hello world example) would be enough to get started, but the way it is, I 
> can't really make sense of any of these classes. And googling also didn't 
> provide me with any kind of guidance on the python grpc test classes. A 
> possible place to add such an example would be 
> https://grpc.io/docs/languages/python/basics/, I guess, which contains 
> the hello world example for python.
>
> On Wed, Dec 1, 2021 at 8:10 PM 'yas...@google.com' via grpc.io <
> grp...@googlegroups.com> wrote:
>
>> Thank you for the feedback! Do the examples in 
>> https://github.com/grpc/grpc/tree/master/examples and 
>> https://github.com/grpc/grpc/tree/master/test help?
>>
>> On Tuesday, November 16, 2021 at 6:32:13 AM UTC-8 M T wrote:
>>
>>> Hi all,
>>>
>>> I'm just starting to get into grpc, and was wondering about tests. The 
>>> documentation of the testing package only lists what classes etc. are 
>>> available, but not really how to use them - would it be possible to add 
>>> small testing examples to the general code examples, to help people 
>>> starting out?
>>>
>> -- 
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "grpc.io" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/grpc-io/pNIulgyXSQ0/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to 
>> grpc-io+u...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/grpc-io/a787b200-e683-4a48-9d90-f1da02430f41n%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to grpc-io+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/eb364618-65c1-42c6-8950-a36412d62623n%40googlegroups.com.


[grpc-io] CMAKE: he CMAKE_C_COMPILER is set to a C++ compiler

2022-01-24 Thread Mirko Borich
Dearas,  I cannot build grpc and protocol buffers, something is wrong with 
cmake I installed locally. Any idea?


~/mygrpc/grpc/cmake/build$ cmake ../..
-- The C compiler identification is unknown
-- The CXX compiler identification is GNU 7.3.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc - broken
CMake Error at 
/home/build/share/cmake-3.19/Modules/CMakeTestCCompiler.cmake:66 (message):
  The C compiler

"/usr/bin/gcc"

  is not able to compile a simple test program.

  It fails with the following output:

Change Dir: /home/build/mygrpc/grpc/cmake/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make cmTC_fe086/fast && /usr/bin/make  -f 
CMakeFiles/cmTC_fe086.dir/build.make CMakeFiles/cmTC_fe086.dir/build
make[1]: Entering directory 
'/home/build/mygrpc/grpc/cmake/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_fe086.dir/testCCompiler.c.o
/usr/bin/gcc-o CMakeFiles/cmTC_fe086.dir/testCCompiler.c.o -c 
/home/build/mygrpc/grpc/cmake/build/CMakeFiles/CMakeTmp/testCCompiler.c

/home/build/mygrpc/grpc/cmake/build/CMakeFiles/CMakeTmp/testCCompiler.c:2:3: 
error: #error "The CMAKE_C_COMPILER is set to a C++ compiler"
 # error "The CMAKE_C_COMPILER is set to a C++ compiler"
   ^
make[1]: *** [CMakeFiles/cmTC_fe086.dir/build.make:85: 
CMakeFiles/cmTC_fe086.dir/testCCompiler.c.o] Error 1
make[1]: Leaving directory 
'/home/build/mygrpc/grpc/cmake/build/CMakeFiles/CMakeTmp'
make: *** [Makefile:140: cmTC_fe086/fast] Error 2



  

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:38 (project)


-- Configuring incomplete, errors occurred!
See also "/home/build/mygrpc/grpc/cmake/build/CMakeFiles/CMakeOutput.log".
See also "/home/build/mygrpc/grpc/cmake/build/CMakeFiles/CMakeError.log".

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to grpc-io+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/7b828261-4947-4d5b-a429-368d22eb2d70n%40googlegroups.com.