Skip to main content

TasksC++ Simple Instrumentation

C++76% pass rateView TaskView Prompt

Instrument a simple C++ application with 3 methods (`work`, `fastOp`, `slowOp`) to generate OpenTelemetry-compatible trace output. Create OTEL implementation that outputs JSON traces with parent-child span relationships.

What makes it easy

- Simple, well-defined scope (3 spans only) - No external dependencies or network calls - Clear output format requirements

Common failure modes

- Missing parent-child relationships

Performance

ModelPass RateRunsAvg CostAvg Time
DeepSeekdeepseek-v3.2100%
$0.036m
OpenAIgpt-5.1100%
$0.072m
OpenAIgpt-5.2-codex100%
$0.105m
OpenAIgpt-5.2100%
$0.112m
Anthropicclaude-sonnet-4.5100%
$0.172m
Anthropicclaude-opus-4.5100%
$0.282m
Googlegemini-3-flash-preview67%
$0.011m
Z.aiglm-4.767%
$0.043m
OpenAIgpt-5.1-codex-max67%
$0.044m
Anthropicclaude-haiku-4.567%
$0.051m
Googlegemini-3-pro-preview67%
$0.132m
Grokgrok-467%
$0.307m
Kimikimi-k2-thinking33%
$0.027m
Grokgrok-4.1-fast33%
$0.037m