🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
[TOC] ### LightStep 安装 ***** #### git地址 https://github.com/lightstep/lightstep-tracer-cpp.git ``` git clone https://github.com/lightstep/lightstep-tracer-cpp.git ``` #### 编译 环境准备: 1. cmake 2. protobuf 3. grpc (for gRPC transport) 4. c-ares (for Streaming HTTP transport) 5. libevent (for Streaming HTTP transport) 6. [OpenTracing C++](https://github.com/opentracing/opentracing-cpp)library. 使用[vcpkg](../../C++/%E5%8C%85%E7%AE%A1%E7%90%86%E5%99%A8/vcpkg.md)安装依赖, ``` vcpkg install libevent:x64-windows-static vcpkg install protobuf:x64-windows-static vcpkg install opentracing:x64-windows-static vcpkg install c-ares:x64-windows-static ``` windows 下生成visual studio 解决方案 $VCPKG_DIR=<path to where vcpkg was installed> ``` cmake -DBUILD_SHARED_LIBS=OFF -DWITH_DYNAMIC_LOAD=OFF -DWITH_GRPC=OFF -DVCPKG_TARGET_TRIPLET=x64-windows-static -DCMAKE_TOOLCHAIN_FILE="[vcpkg-toot]\\vcpkg\\scripts\\buildsystems\\vcpkg.cmake" <path-to-lightstep> cmake --build . ``` ### LightStep 使用 *****