Hacker
Meghana Pabba
@meghana_pabba
Projects
Spanlift: every span is already a metric
Flagsmith Experimentation HackathonNov 2026
Spanlift turns the OpenTelemetry traces your services already send into Flagsmith Experimentation results, with zero tracking code. The problem: To measure a Flagsmith experiment today, a developer has to hand-write `trackEvent` calls at every point that matters, in every service and every language, for every experiment. Yet the services already record all of it (checkout time, order totals, failures, even an AI model's answers) in their traces. With the OpenFeature tracing hook, the flag variant sits on the same trace. The data is already there; only the bridge to Flagsmith was missing. Who uses it: Any team that already runs OpenTelemetry and ships features behind Flagsmith flags: product engineers running A/B tests, and the release owner who has to say "ship it" or "roll it back". How it works: 1. A service evaluates a Flagsmith multivariate flag through OpenFeature. The tracing hook stamps flag, variant and identity onto the span. 2. The OpenTelemetry Collector gets one extra exporter and sends Spanlift a copy of every trace. 3. Spanlift maps spans to metrics using one YAML file (a duration, an attribute such as order revenue, success or failure). It posts "flag_exposure" and metric events to Flagsmith's own events API. 4. Flagsmith Experimentation does the statistics: lift, 95% interval, chance to win, per metric. 5. A gate enforces the experiment's guardrails in code. Shipping a variant while a guardrail is proven red is refused by the server (HTTP 409). The verdict appears on the feature as Feature Health. A person makes the final call, and Spanlift completes the experiment in Flagsmith and verifies the rollout. Proven on self-hosted Flagsmith with two real experiments: - Checkout v2: 4,278 shoppers, checkout 91% slower. The gate blocked it, and Flagsmith marked the feature Unhealthy within 15 seconds. - AI assistant on a 3× smaller model: 608 answers, 55% faster, with no proven drop in accuracy. The gate cleared it for a person to approve. Spanlift also ships a CLI (`spanlift status / watch / gate --wait`) and a GitHub Action that fails a deploy while a guardrail is red.
Team Toggled@maheswar