https://github.com/rnburn/lua-bridge-tracer
Provides an implementation of the Lua OpenTracing API on top of the C++ API
https://github.com/rnburn/lua-bridge-tracer
cpp lua opentracing
Last synced: 9 months ago
JSON representation
Provides an implementation of the Lua OpenTracing API on top of the C++ API
- Host: GitHub
- URL: https://github.com/rnburn/lua-bridge-tracer
- Owner: rnburn
- Created: 2018-06-28T15:36:20.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-04-14T23:27:52.000Z (almost 7 years ago)
- Last Synced: 2025-01-20T02:49:24.657Z (about 1 year ago)
- Topics: cpp, lua, opentracing
- Language: C++
- Homepage:
- Size: 61.5 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# lua-bridge-tracer
Provides an implementation of the [Lua OpenTracing API](https://github.com/opentracing/opentracing-lua)
on top of the [C++ OpenTracing API](https://github.com/opentracing/opentracing-cpp).
Dependencies
------------
- The [C++ OpenTracing Library](https://github.com/opentracing/opentracing-cpp)
- A C++ OpenTracing Tracer. It currently works with
[Jaeger](https://github.com/jaegertracing/cpp-client),
[Zipkin](https://github.com/rnburn/zipkin-cpp-opentracing), or
[LightStep](https://github.com/lightstep/lightstep-tracer-cpp).
Installation
------------
```bash
mkdir .build
cd .build
cmake ..
make
sudo make install
```
Usage
-----
```lua
bridge_tracer = require 'opentracing_bridge_tracer'
library = --[[ path to OpenTracing plugin ]]
config = --[[ vendor specific JSON configuration for the tracer ]]
tracer = bridge_tracer:new(library, config)
-- `tracer` conforms to the Lua OpenTracing API. See
-- https://github.com/opentracing/opentracing-lua for API documentation.
```
See also [example/tutorial](example/tutorial).