https://github.com/fluent/ctraces
Library to create and manipulate traces in C
https://github.com/fluent/ctraces
Last synced: 8 months ago
JSON representation
Library to create and manipulate traces in C
- Host: GitHub
- URL: https://github.com/fluent/ctraces
- Owner: fluent
- License: apache-2.0
- Created: 2021-12-18T18:39:35.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2025-05-08T14:43:47.000Z (10 months ago)
- Last Synced: 2025-06-08T16:08:29.078Z (9 months ago)
- Language: C
- Size: 369 KB
- Stars: 6
- Watchers: 11
- Forks: 11
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# CTraces
The [CTraces](https://github.com/calyptia/ctraces) project is a tiny library to create and maintain Traces contexts and provide utilities for data manipulation, including encoding/decoding for compatibility with OpenTelemetry and other formats.
This project is a core library for [Fluent Bit](https://fluentbit.io): agent and aggregator for Observability.
## Build
Clone the repository:
```shell
git clone https://github.com/calyptia/ctraces
```
Get into the project directory and retrieve submodules:
```shell
cd ctraces
git submodule update --init --recursive --remote
```
Compile:
```shell
cd build/
cmake -DCTR_DEV=on ../
make
```
> CTR_DEV flag enables debugging mode, examples and the unit tests
## Usage
In the [examples](examples/) directory, you will find a _simple_ example that describes how to use the API.
## License
This program is under the terms of the [Apache License v2.0](http://www.apache.org/licenses/LICENSE-2.0).
## Authors
[Calyptia Team](https://www.calyptia.com)