Add OTEL tracing and logging to Erlang microservices (gateway, order, stock). Export telemetry to OTLP endpoint, log lifecycle events and HTTP requests.
Common failure modes
Models hallucinate non-existent Erlang packages. The Erlang OTEL ecosystem is poorly documented, leading to packages like `opentelemetry 1.4.2` that don't exist in Hex.
Example error
===> Package not found in any repo: opentelemetry 1.4.2
Performance
| Model | Pass Rate | Runs | Avg Cost | Avg Time |
|---|---|---|---|---|
| kimi-k2-thinking | 0% | | $0.07 | 17m |
| grok-4.1-fast | 0% | | $0.08 | 15m |
| gemini-3-flash-preview | 0% | | $0.10 | 4m |
| deepseek-v3.2 | 0% | | $0.12 | 17m |
| claude-haiku-4.5 | 0% | | $0.29 | 6m |
| glm-4.7 | 0% | | $0.32 | 14m |
| gpt-5.1 | 0% | | $0.48 | 15m |
| gemini-3-pro-preview | 0% | | $0.58 | 7m |
| gpt-5.2 | 0% | | $0.76 | 17m |
| gpt-5.2-codex | 0% | | $0.78 | 25m |
| gpt-5.1-codex-max | 0% | | $0.91 | 16m |
| grok-4 | 0% | | $0.97 | 15m |
| claude-sonnet-4.5 | 0% | | $1.61 | 12m |
| claude-opus-4.5 | 0% | | $1.74 | 14m |
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.