企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
[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 使用 *****