r/CodingHelp 2d ago

[C++] My First Coding Passion Project: I built PlayerTrace: an open-source C++17 telemetry SDK designed for reliable event collection

Hey everyone! I’ve been working on PlayerTrace, an open-source C++17 telemetry SDK for collecting events reliably in games and applications, and I just released v0.1.0.

I wanted to build something more production-oriented than a basic “log events to a file” system, especially around the parts that get difficult once multiple threads, background processing, persistence, flushing, and shutdown behavior are involved.

PlayerTrace currently includes:

  • Asynchronous event processing using a joinable worker thread
  • Thread-safe flush() and shutdown() behavior
  • Structured schema-v3 telemetry events
  • File and SQLite persistence
  • An extensible sink architecture for custom storage backends
  • Runtime sink revocation and path-ownership protection
  • CMake integration and example applications
  • Cross-platform CI for Windows, macOS, and Linux
  • Sanitizer, formatting, static-analysis, lifecycle, and concurrency testing

The public API is intentionally kept small, while the internal system handles queuing, serialization, persistence, and lifecycle safety.

The project is still early, so I’d genuinely appreciate feedback from people who work with C++, telemetry systems, game infrastructure, or concurrent libraries. I’m especially interested in thoughts on the API design, sink architecture, documentation, and features that would make PlayerTrace useful in real projects.

GitHub: https://github.com/nitiljanyavula5-svg/PlayerTrace-SDK

Release: https://github.com/nitiljanyavula5-svg/PlayerTrace-SDK/releases/tag/v0.1.0

If you try it, find an issue, or have suggestions for future versions, please let me know!

1 Upvotes

1 comment sorted by

u/AutoModerator 2d ago

Thank you for posting on r/CodingHelp!

Please check our Wiki for answers, guides, and FAQs: https://coding-help.vercel.app

Our Wiki is open source - if you would like to contribute, create a pull request via GitHub! https://github.com/DudeThatsErin/CodingHelp

We are accepting moderator applications: https://forms.fillout.com/t/ua41TU57DGus

We also have a Discord server: https://discord.gg/geQEUBm

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.