Skip to content

Ruby bindings via FFI #20

@ibrahimcesar

Description

@ibrahimcesar

Description

Create Ruby bindings for telemetry-kit using FFI.

Features

  • Ruby FFI wrapper
  • Idiomatic Ruby API
  • Block support for scoped tracking
  • RubyGems package

Example Usage

```ruby
require 'telemetry_kit'

telemetry = TelemetryKit.new(
service_name: 'my-ruby-app',
auto_sync: true
)

Track command

telemetry.track_command('deploy', success: true, duration_ms: 1234)

Block-based tracking

telemetry.track_feature('data_export') do

Your code here

end
```

Technical Approach

  • Export C-compatible API from Rust
  • Ruby FFI for bindings
  • Prebuilt binaries via RubyGems native extensions

Acceptance Criteria

  • Published on RubyGems
  • Works with Rails
  • Full documentation

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is neededtype: featureNew feature or enhancement

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions