简体   繁体   English

C++ 上的 gRPC 中的跟踪支持

[英]Tracing support in gRPC on C++

I found some old threads claiming that C++ is not supported, but no recent information.我发现一些旧线程声称不支持 C++,但没有最新信息。

Is there any way to do tracing on gRPC with C++?有没有办法使用 C++ 对 gRPC 进行跟踪?

As mentioned in the comments, it seems like this is the solution.正如评论中提到的,似乎是解决方案。

The instructions are here as well as here说明在这里这里

After doing a lot of research this is what seems to be true as of April 25th 2020:经过大量研究,截至 2020 年 4 月 25 日,这似乎是真的:

  1. The framework of choice is OpenCensus, it supports both tracing and metrics选择的框架是 OpenCensus,它支持跟踪和度量
  2. OpenTelemetry will be replacing OpenCensus at some point, but is not ready for C++ OpenTelemetry 将在某个时候取代 OpenCensus,但尚未为 C++ 做好准备
  3. OpenCensus for C++ is not perfect, it mostly works, but is missing some features available in other languages (eg metric for number of RPCs) C++ 的 OpenCensus 并不完美,它主要工作,但缺少其他语言中可用的一些功能(例如 RPC 数量的度量)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM