dd-trace-rb VS sorbet

Compare dd-trace-rb vs sorbet and see what are their differences.

Stream - Scalable APIs for Chat, Feeds, Moderation, & Video.
Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure.
getstream.io
featured
InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com
featured
dd-trace-rb sorbet
5 59
363 3,698
0.6% 0.2%
10.0 9.9
2 days ago 8 days ago
Ruby Ruby
GNU General Public License v3.0 or later Apache License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

dd-trace-rb

Posts with mentions or reviews of dd-trace-rb. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-05-16.
  • Integrating Datadog Instrumented Apps in your OpenTelemetry Stack
    4 projects | dev.to | 16 May 2024
    This action starts two Ruby on Rails APIs, one instrumented with ddtrace and another with OpenTelemetry SDK, both connecting to an OpenTelemetry Collector that sends data to Jaeger:
  • The end of "Useless Ruby sugar": On intuitions and evolutions
    4 projects | news.ycombinator.com | 23 Jan 2024
    Thing is, once you have 1) and 2), the added complexity of bringing in, integrating, and writing for a different tool to achieve 3) begins to make little sense, when you can just go along and do it just as well in rspec anyway... It's a matter of balance and heavily depends on the project.

    > if you're still at Datadog

    As a matter of fact I am. Feel free to shoot me an email.

        curl -s https://github.com/DataDog/dd-trace-rb/commit/176c642ca73679cabc5fa1a113bc9b600aa04dcd.patch | grep '^From:'
  • A few words on Ruby's type annotations state
    4 projects | news.ycombinator.com | 5 May 2023
    > For myself, I'm fine with the typing being in a separate .rbs file

    We type[0] by having one separate .rbs file per .rb file. Works really well with an editor's vertical splits: type outline on one side, code on the other. That, or use something like vim-projectionist[1].

    [0]: (WIP: there's a huge codebase to type, but we're progressively getting there) https://github.com/DataDog/dd-trace-rb/tree/master/sig

    [1]: https://github.com/tpope/vim-projectionist

  • Why Authorization Is Hard
    9 projects | news.ycombinator.com | 15 Sep 2021
    Thanks! I'll pass it on to the team :D

    I've got to say, the folks at Intercom made it particularly fun. They were sending us traces and graphs from their internal systems when we trying to figure out some issues with them (e.g. we ran into this datadog context problem: https://github.com/DataDog/dd-trace-rb/issues/1389)

sorbet

Posts with mentions or reviews of sorbet. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2025-02-12.
  • Tiny JITs for a Faster FFI
    9 projects | news.ycombinator.com | 12 Feb 2025
    If you're looking for static typing a dynamic language is going to be a poor fit. I find a place for both. I love Rust, but trying to write a tool that consumed a GraphQL API with was a brutal exercise in frustation. I'd say that goes for typing of JSON or YAML or whatever structured format in general. It's refreshing being able to just work with data in the form I already know it's in. Ruby can be an incredibly productive language to work with.

    If you're looking for static analysis in general, please note that there are mature tools available. Rubocop¹ is probably the most popular and allows for linting and code formatting. Brakeman² is a vulnerability scanner for Rails. Sorbet³ is a static type checker.

    The tooling is there if you want to try things out. But, if you want a statically typed language then that's a debate that's been going since the dawn of programming language design. I doubt it's going to get resolved in this thread.

    ¹ - https://github.com/rubocop/rubocop

    ² - https://brakemanscanner.org/

    ³ - https://sorbet.org/

  • A Neuromorphic Hardware-Compatible Transformer-Based Spiking Language Model
    3 projects | news.ycombinator.com | 6 Oct 2024
    Context: Sorbet is also the name of a popular Ruby type checker[1], built by Stripe.

    [1]: https://sorbet.org

  • Ruby’s hidden gems: Sorbet
    3 projects | dev.to | 2 Oct 2024
    Sorbet, implemented in C++, is a Ruby gem designed to harmonize the dynamism of Ruby with the reliability and predictability of static typing. As Ruby projects scale in size and complexity, maintaining code quality and preventing errors becomes increasingly challenging. A primary culprit is the absence of static typing, which often necessitates heavy reliance on extensive testing and runtime checks to ensure code correctness, resulting in more frequent bugs slipping into production.
  • Let's Read – Eloquent Ruby – Ch 8
    1 project | dev.to | 4 Sep 2024
    ...which goes beyond static typing into declaring explicitly what something needs to support to be used by the method. Granted this is more complicated than it sounds and has a number of drawbacks, as you can see in this discussion.
  • The Design Principles of the Elixir Type System
    1 project | news.ycombinator.com | 10 Jan 2024
    Not part of the official language spec, but Ruby has Sorbet, from a company who employs Ruby core contributors and helped with the recently released JIT additions to the language, amount countless other contributions over the last couple decades.

    https://sorbet.org/

  • Почему я программирую на Ruby
    11 projects | dev.to | 20 Oct 2023
  • Bringing more sweetness to ruby with sorbet types 🍦
    5 projects | dev.to | 18 Sep 2023
    First let's introduce the tool: Sorbet is a gem developed by Stripe that aims to bring type notation syntax and type checking support for the Ruby ecosystem by utilizing the "Gradual typing" philosophy, it also provide type generation from YARD comments via the tapioca gem, allowing to grow alongside the already built Ruby codebase.
  • An Introduction to Metaprogramming in Ruby
    2 projects | news.ycombinator.com | 27 Jul 2023
    We have hundreds of thousands of lines of ruby code spanning many services / monoliths. Even now I find it somewhat annoying to open a controller / component that is basically an empty class def but somehow executes a bunch of complex stuff via mixins, monkey patches etc, and you have to figure out how.

    We are turning to https://sorbet.org/ to reign in the madness. I'm keen to know if others are doing the same, and how they are finding it (pros and cons)

  • A few words on Ruby's type annotations state
    4 projects | news.ycombinator.com | 5 May 2023
  • Is Ruby on Rails still in demand?I see very few companies using it.Is it used in big tech companies like Google,Amazon,Facebook,Microsoft?
    2 projects | /r/rubyonrails | 23 Apr 2023
    According to https://sorbet.org/ , the vast majority of code at Stripe is written in ruby.

What are some alternatives?

When comparing dd-trace-rb and sorbet you can also consider the following projects:

ffi - Ruby FFI

solargraph - A Ruby language server.

contracts.ruby - Contracts for Ruby.

vscode-solargraph - A Visual Studio Code extension for Solargraph.

inner_performance - Simple database-backed performance monitoring for your Rails app.

rubocop - A Ruby static code analyzer and formatter, based on the community Ruby style guide.

Stream - Scalable APIs for Chat, Feeds, Moderation, & Video.
Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure.
getstream.io
featured
InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com
featured

Did you know that Ruby is
the 12th most popular programming language
based on number of references?