Helicone (tracing)
Helicone’s Manual Logger records calls to custom, self-hosted, and provider-backed models. The Respan Helicone instrumentation observes that same manual-logger lifecycle and emits canonical Respan spans without replacing or bypassing Helicone’s own logging.
The integration supports helicone-helpers >=1.2.1,<1.3.0 for Python and @helicone/helpers >=1.8.3 <1.9.0 for TypeScript.
Set up Respan
Create an account at platform.respan.ai and grab an API key.
Run npx @respan/cli setup to set up with your coding agent.
Use Respan Gateway
See Helicone gateway setup to replace Helicone Gateway routing with the OpenAI-compatible Respan Gateway.
Setup
Set environment variables
RESPAN_API_KEY exports traces to Respan. HELICONE_API_KEY keeps the Manual Logger connected to Helicone. This example calls OpenAI directly, so it also needs OPENAI_API_KEY; use the credential required by the provider in your callback. RESPAN_BASE_URL is optional for a self-hosted or non-default Respan endpoint.
View your trace
Open the Traces page to inspect the Helicone span’s model, provider, input, output, usage, status, timing, and correlation attributes.
What is traced
The instrumentors patch Helicone’s published Manual Logger methods rather than the underlying provider SDK.
The emitted span type is inferred from the payload:
When Helicone supplies them, Respan retains model and provider identity, request and response content, token usage, tool definitions and calls, streaming timing, HTTP status, and errors. An operation that fails before Helicone reaches its shared logging sink still produces one error span rather than a duplicate success/error pair.
Configuration
Disable content capture
Disable content capture when prompts or responses may contain sensitive data:
Model, provider, usage, timing, status, errors, and safe correlation fields remain available. Helicone API keys, authorization headers, unknown headers, and structured secret fields are never copied into spans.
Correlation attributes
The instrumentors recognize Helicone’s safe correlation headers:
Respan propagated attributes also stay attached to the manual-log span, including parent workflow context captured when a delayed builder is created.
Avoid duplicate telemetry
Helicone instrumentation is explicit-only. Activate it only in processes that use HeliconeManualLogger.
Do not also activate a provider-specific instrumentor for the same provider call unless two spans for one logical operation are intentional. Likewise, a request routed through Respan Gateway already creates a gateway log; wrapping it in an instrumented Helicone manual log adds a separate manual-log span. See the gateway guide for the simpler gateway-only migration path.