Skip to content

Latest commit

 

History

History
536 lines (402 loc) · 14.5 KB

ROADMAP.md

File metadata and controls

536 lines (402 loc) · 14.5 KB

telemetry-kit Roadmap

Last Updated: 2025-11-23 Status: Active Development (v0.2.0-alpha.1) Next Release: v0.2.0 (Q1 2025)

Recent Milestones:

  • ✅ Week 8: Security Hardening Complete (Jan 2025)
  • ✅ Node.js Bindings Proof-of-Concept (Jan 2025)
  • ✅ #[instrument] Procedural Macro (Jan 2025)
  • ✅ CLI Project Scaffolding (Jan 2025)
  • ✅ Smart Instrumentation Recommendations (Nov 2025)
  • 🚧 v0.3.0: Developer Experience (In Progress)

Quick Stats:

  • 49 unit tests + 11 property tests + 10 integration tests = 70 tests passing
  • Zero critical vulnerabilities in SDK
  • SLSA Level 2 compliance
  • Node.js bindings proof-of-concept complete

Vision

telemetry-kit aims to be the simplest, most privacy-respecting way to add telemetry to Rust applications - especially CLI tools and libraries.

Core Principles:

  • 🔒 Privacy-first - Anonymous by default, GDPR compliant
  • 🎯 Zero boilerplate - 3 lines instead of 50+
  • 📦 Self-hostable - Your data, your infrastructure
  • 🚀 CLI-optimized - Works perfectly with short-lived processes

Current Status (v0.2.0-alpha.1)

✅ Implemented Features

SDK Core:

  • Event tracking (command and feature events)
  • Privacy features (anonymization, sanitization, consent)
  • SQLite offline storage
  • Auto-sync background task
  • DO_NOT_TRACK support
  • HMAC-SHA256 authentication

CLI Tool:

  • Project scaffolding (telemetry-kit new)
  • Interactive setup (telemetry-kit init)
  • Configuration validation
  • Event statistics
  • Manual sync
  • Database cleanup
  • Privacy consent management

Infrastructure:

  • Reference server implementation (Rust + PostgreSQL + Redis)
  • Docker deployment
  • Rate limiting
  • Batch ingestion
  • Replay protection

✅ Recently Completed

Week 8 - Security Hardening (January 2025):

  • Security audit complete (zero critical vulnerabilities)
  • Supply chain security (SLSA Level 2, cargo-deny configured)
  • CI/CD security automation (cargo-audit + cargo-deny in CI)
  • Comprehensive security documentation
  • Documentation reorganization (project-docs/ structure)
  • Community-facing ROADMAP.md

Node.js Bindings - Proof of Concept (January 2025):

  • napi-rs native addon implementation
  • TypeScript definitions (full type safety)
  • npm package structure (@telemetry-kit/node)
  • Builder pattern API
  • Async/await support
  • Examples (basic + sync)
  • Comprehensive documentation

CLI Project Scaffolding (January 2025):

  • telemetry-kit new command for project creation
  • Binary/CLI application template with telemetry pre-configured
  • Library template with telemetry integration
  • Web service template (Axum) with telemetry
  • Optional sync configuration (--with-sync flag)
  • Automatic git initialization
  • README generation with privacy documentation
  • Project types: bin, lib, web

Smart Instrumentation Recommendations (November 2025):

  • telemetry-kit analyze command for code analysis
  • Pattern detection engine (main functions, async functions, HTTP handlers, DB operations)
  • Priority-based recommendations (High/Medium/Low)
  • Detailed mode with code snippets
  • JSON output format for tooling integration
  • Recursive directory scanning
  • Smart filtering (skips already-instrumented code)

🚧 In Progress

Developer Experience (v0.3.0):

  • Quick start guide development

Release Plan

v0.2.0 - Privacy & Sync (Q1 2025)

Target Date: February 2025

Focus: Privacy-first telemetry with production-ready sync

Features:

  • Privacy controls (anonymization, sanitization)
  • Consent management
  • Auto-sync with configurable intervals
  • CLI tool for configuration
  • Security audit complete ✅
  • SLSA Level 2 compliance ✅
  • CI/CD with security checks ✅
  • Node.js bindings proof-of-concept ✅
  • Comprehensive user documentation (in progress)
  • SLSA Level 3 compliance (Q2 2025)

Breaking Changes: None (alpha → beta)


v0.3.0 - Developer Experience (Q2 2025) 🚧

Target Date: April 2025

Focus: Making integration effortless

Status: In active development (started January 2025)

Features:

  • #[instrument] macro for automatic tracking ✅ (completed Jan 2025)
    • Procedural macro crate created
    • Supports async and sync functions
    • Compile-time code generation
    • Comprehensive tests with trybuild
  • CLI scaffolding (telemetry-kit new my-project) ✅ (completed Jan 2025)
    • Create new projects with telemetry pre-configured
    • Three project types: binary/CLI, library, web service
    • Optional sync configuration with .env.example
    • Auto-generated README with privacy documentation
    • Git initialization included
  • Smart instrumentation recommendations ✅ (completed Nov 2025)
    • Code analysis for instrumentation opportunities
    • Pattern detection (main, async functions, HTTP handlers, DB ops)
    • Priority-based recommendations with code snippets
    • JSON output for tooling integration
  • Interactive consent prompts ✅ (completed Nov 2025)
    • First-run consent dialog with detailed privacy information
    • Minimal (one-liner) consent prompt option
    • Builder API methods: .prompt_for_consent(), .prompt_minimal()
    • Automatic consent status detection
    • Privacy-first defaults (NO by default)
    • Integration with existing CLI consent commands
  • VS Code extension for inline suggestions ✅ (completed Nov 2025)
    • Smart project analysis with CLI integration
    • 17+ code snippets for common patterns
    • Inline diagnostics with quick fixes
    • Context-aware telemetry insertion
    • Configurable auto-analysis on save
    • Priority-based suggestions (High/Medium/Low)
    • Rich documentation and examples
  • Enhanced error messages ✅ (completed in Week 7)

Documentation:

  • Quick start guide (5-minute integration) ✅ (completed Nov 2025)
  • Best practices for different project types ✅ (completed Nov 2025)
  • Privacy compliance guide ✅ (completed Nov 2025)
  • Self-hosting production guide in docs/ ✅ (completed Nov 2025)

Current Sprint:

  • ✅ v0.3.0 Developer Experience COMPLETE
  • All DX features implemented and documented
  • Ready for v0.3.0 release

v0.4.0 - Node.js Ecosystem

Target Date: September 2025

Focus: Node.js/TypeScript support

Features:

  • Publish @telemetry-kit/node to npm
  • Cross-platform prebuilt binaries (Linux, macOS, Windows)
  • Express.js middleware
  • Next.js integration
  • Fastify plugin
  • Nest.js module
  • AWS Lambda/Vercel Functions support

Documentation:

  • Node.js quick start guide
  • Framework integration guides
  • Migration from existing solutions
  • TypeScript best practices

Performance:

  • <10ms event creation latency
  • <5MB package size per platform
  • Zero blocking of event loop

v1.0.0 - Production Release

Target Date: November 2025

Focus: Stable, production-ready release

Criteria:

  • 6+ months of beta testing
  • 100+ active users
  • Zero critical bugs
  • Comprehensive documentation
  • Security audit passed
  • SLSA Level 3 compliance
  • SemVer commitment

Guarantees:

  • API stability (SemVer 2.0)
  • Long-term support (LTS)
  • Migration guides for all breaking changes
  • Deprecation warnings (6+ months notice)

Language Bindings

Node.js / TypeScript (In Progress) 🚀

Status: Proof-of-concept complete (January 2025)

Approach: Native addon via napi-rs

Current Implementation:

  • Rust bindings (napi-rs)
  • TypeScript definitions
  • npm package structure
  • Builder pattern API
  • Async/await support
  • Error handling
  • Examples (basic + sync)
  • Documentation

Next Steps:

  • Local build testing
  • CI/CD for cross-platform builds
  • Publish to npm as @telemetry-kit/node
  • Framework integrations (Express, Next.js, Fastify)

Timeline: v0.6.0 (Q3 2025)

Benefits:

  • 100% code reuse from Rust SDK
  • Native performance (~2-5MB addon)
  • Same privacy guarantees
  • TypeScript-first
  • 19x larger audience (npm vs crates.io)

See: NODE_STRATEGY.md for full details

Example API:

import { TelemetryKit } from '@telemetry-kit/node';

const telemetry = new TelemetryKit({
  serviceName: 'my-node-app',
  autoSync: true,
  syncConfig: { ... }
});

await telemetry.trackCommand('deploy', {
  success: true,
  durationMs: 1234
});

Python (Planned)

Target: v0.7.0 (Q4 2025)

Approach: PyO3 (similar to napi-rs for Node.js)

Benefits:

  • Data science community
  • Machine learning workflows
  • Similar implementation to Node.js

Other Languages

  • Go: Via CGO (v0.8.0+)
  • Ruby: Via FFI (v0.9.0+)
  • C/C++: Direct FFI (any time)

Future Considerations (v1.1+)

Advanced Features

  • A/B testing framework
  • Feature flags integration
  • Real-time streaming analytics
  • Multi-project dashboards
  • Custom retention policies
  • Data export automation

Integrations

  • Sentry integration (error tracking)
  • Datadog integration
  • New Relic integration
  • Custom webhook support
  • Slack/Discord notifications

Platform Support

  • WebAssembly support (browser + edge runtimes)
  • Embedded systems (no_std)
  • Mobile SDK (via FFI - iOS/Android)
  • Node.js bindings (Proof-of-concept complete! 🎉)
  • Python bindings (napi-rs approach proven)
  • Go bindings (via CGO)
  • Ruby bindings

Community Roadmap

We build in the open and welcome community input!

How to Influence the Roadmap

  1. Vote on Features - Star/thumbs up issues for features you want
  2. Submit Proposals - Open a Discussion with your idea
  3. Contribute Code - See CONTRIBUTING.md
  4. Report Bugs - Help us prioritize fixes

Current Community Priorities

Based on GitHub discussions and issues:

  1. Node.js Support (🆕 In Progress!)

    • Native bindings via napi-rs ✅
    • TypeScript-first API ✅
    • Framework integrations (Express, Next.js)
    • npm package publication
  2. Documentation (High demand)

    • Quick start guides
    • Integration examples
    • Self-hosting tutorials
    • Node.js API reference
  3. Privacy Features (High interest)

    • Fine-grained consent controls
    • PII detection and removal
    • Compliance automation (GDPR, CCPA)
  4. CLI Optimization (Requested)

    • Minimal overhead (<1ms)
    • Graceful degradation
    • Offline-first design
  5. Self-Hosting (Popular ask)

    • Simplified deployment
    • Cost-effective scaling
    • Cloud-parity features

Non-Goals

Things we explicitly won't support:

❌ Session Replay - Too privacy-invasive ❌ User Tracking Across Sites - Against our privacy principles ❌ PII Collection - Anonymous by design ❌ Vendor Lock-in - Always self-hostable ❌ Closed Source Features - Core features always open source


Versioning & Stability

Semantic Versioning

We follow SemVer 2.0:

  • Major (1.x.0): Breaking changes
  • Minor (x.1.0): New features (backwards compatible)
  • Patch (x.x.1): Bug fixes

Alpha/Beta Policy

  • Alpha (0.x.0-alpha.y): Rapid iteration, expect breaking changes
  • Beta (0.x.0-beta.y): Feature-complete, API stabilizing
  • RC (0.x.0-rc.y): Production-ready, final testing

Pre-1.0 Expectations

Before v1.0.0:

  • ⚠️ APIs may change between minor versions
  • ⚠️ Migration guides provided for breaking changes
  • ⚠️ No long-term support guarantees
  • ✅ Production use encouraged for non-critical applications

Release Cadence

Current (Pre-1.0)

  • Minor releases: Every 6-8 weeks
  • Patch releases: As needed (bugs, security)
  • Alpha/Beta: As needed for testing

Post-1.0

  • Major releases: Yearly (with LTS)
  • Minor releases: Quarterly
  • Patch releases: Monthly (if needed)
  • Security patches: Immediate

Long-Term Vision (2-3 Years)

Ecosystem Goals

For Developers:

  • Telemetry as simple as println!
  • Privacy compliance by default
  • Zero vendor lock-in

For Users:

  • Full control over their data
  • Complete transparency
  • Easy opt-out

For the Rust Community:

  • Standard telemetry solution
  • Best-in-class privacy practices
  • Educational resource for observability

Success Metrics

  • 10,000+ crates using telemetry-kit
  • 100,000+ CLI tools instrumented
  • 1,000+ self-hosted instances
  • Zero privacy incidents
  • Top 100 most-used Rust crates

How to Stay Updated

  • 📰 Changelog: CHANGELOG.md - All releases
  • 🐦 Twitter/X: @ibrahimcesar - Major updates
  • 💬 Discussions: GitHub Discussions - Community chat
  • 📧 Newsletter: Coming soon - Monthly updates
  • 🔔 Watch Releases: Star & watch the repo for notifications

Contributing to the Roadmap

Proposing Features

  1. Search existing Discussions

  2. Open a Discussion in "Ideas" category

  3. Describe:

    • Use case and problem
    • Proposed solution
    • Alternative approaches
    • Privacy implications
  4. Community discussion → Issue creation → Implementation

Voting

Vote with 👍 on:

  • GitHub Discussions
  • GitHub Issues
  • Pull Requests

We prioritize based on:

  1. Community votes
  2. Alignment with vision
  3. Implementation feasibility
  4. Maintenance burden

Dependencies & Ecosystem

Key Dependencies

We maintain minimal, well-audited dependencies:

  • Core: serde, tokio, uuid, chrono
  • Storage: rusqlite
  • Crypto: hmac, sha2, hex
  • HTTP: reqwest (optional, sync feature)
  • Privacy: machine-uid (anonymous IDs)

Supply Chain Security

  • SLSA Level 2 (current) ✅
  • SLSA Level 3 (target Q1 2025) 🔄
  • Dependency audits: Weekly via cargo audit
  • License compliance: Enforced via cargo deny

See SLSA.md for details.


Questions?


This roadmap is a living document and will be updated as the project evolves.

Last Updated: 2025-01-23 Next Review: Q2 2025