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
| Model | Pass Rate | Runs | Avg Cost | Avg Time |
|---|---|---|---|---|
| grok-4.1-fast | 0% | | $0.05 | 10m |
| kimi-k2-thinking | 0% | | $0.07 | 15m |
| gemini-3-flash-preview | 0% | | $0.09 | 3m |
| deepseek-v3.2 | 0% | | $0.09 | 15m |
| claude-haiku-4.5 | 0% | | $0.26 | 5m |
| glm-4.7 | 0% | | $0.31 | 13m |
| grok-4 | 0% | | $0.33 | 8m |
| gpt-5.1 | 0% | | $0.41 | 11m |
| gpt-5.1-codex-max | 0% | | $0.44 | 12m |
| gemini-3-pro-preview | 0% | | $0.52 | 6m |
| gpt-5.2-codex | 0% | | $0.56 | 14m |
| gpt-5.2 | 0% | | $0.62 | 12m |
| claude-sonnet-4.5 | 0% | | $0.93 | 8m |
| claude-opus-4.5 | 0% | | $0.98 | 8m |
All product names, logos, and brands (™/®) are the property of their respective owners; they're used here solely for identification and comparison, and their use does not imply affiliation, endorsement, or sponsorship.