Skip to main content

TasksRuby Microservices Instrumentation

Ruby0% pass rateView TaskView Prompt

Add OTEL tracing and logging to Ruby Sinatra microservices (gateway, order, stock). Export to OTLP, log lifecycle and HTTP events.

Common failure modes

Code compiles and dependencies install, but no telemetry is exported. Common issues: - Wrong OTLP endpoint configuration - Exporter not initialized properly - Missing shutdown/flush calls

Example error

All code compiled successfully
Found 0 rows in traces table

Performance

ModelPass RateRunsAvg CostAvg Time
Grokgrok-4.1-fast0%
$0.0510m
Kimikimi-k2-thinking0%
$0.0715m
Googlegemini-3-flash-preview0%
$0.093m
DeepSeekdeepseek-v3.20%
$0.0915m
Anthropicclaude-haiku-4.50%
$0.265m
Z.aiglm-4.70%
$0.3113m
Grokgrok-40%
$0.338m
OpenAIgpt-5.10%
$0.4111m
OpenAIgpt-5.1-codex-max0%
$0.4412m
Googlegemini-3-pro-preview0%
$0.526m
OpenAIgpt-5.2-codex0%
$0.5614m
OpenAIgpt-5.20%
$0.6212m
Anthropicclaude-sonnet-4.50%
$0.938m
Anthropicclaude-opus-4.50%
$0.988m