← Graph

Can production observation auto-generate types?

question 2 connections

Final audience question (from someone asking during post-party logistics): could observability tooling (e.g. Coverband) watch production traffic and auto-generate Ruby type annotations? Drapper is skeptical. (1) Observation can't distinguish a string from a `_Union('small','medium','large')` — it would just see a string. (2) Once types raise in production they stop gathering the very data needed to refine them. (3) False negatives could generate types that wrongly raise on rare-but-valid production values. He'd only be open to it as a migration aid that *generates RBS-style hints*, not as a system that raises in production; better migration path is to extract small objects manually and use the `never` type to surface which attribute is wrong. He mentions Marco is doing related production-analysis/documentation work.

answer_summary
Skeptical. Observation can't infer unions, stops working once exceptions raise, and rare-but-valid values would cause false positives. Prefer manual extraction; RBS-style hint generation is acceptable, raising in prod based on observation is not.
question Can production observation auto-generate types?
about
RBS tool
Proposes generating RBS-style types from production observation.
question Can production observation auto-generate types?
asked_at
Final Q&A question on Coverband-style production observation generating types.

Provenance