Skip to main content
Helicone OSS LLM Observability

Log Trace

Log a trace to the Helicone API
1 min read
post/v1/trace/log
Request example
post/v1/trace/log
Warning

For users in the European Union: Please use eu.api.helicone.ai instead of api.helicone.ai.

Authorization

Authorizationstringheaderrequired#
Bearer token authentication. Format: 'Bearer YOUR_API_KEY'

Body

application/json
resourceSpansobject[]required#
Show child attributes
scopeSpansobject[]required#
Show child attributes
spansobject[]required#
Show child attributes
droppedLinksCountnumberrequired#
statusobjectrequired#
Show child attributes
codenumberrequired#
droppedEventsCountnumberrequired#
eventsany[]required#
droppedAttributesCountnumberrequired#
attributesobject[]required#
Show child attributes
valueobjectrequired#
Show child attributes
intValuenumber#
stringValuestring#
keystringrequired#
endTimeUnixNanostringrequired#
startTimeUnixNanostringrequired#
kindnumberrequired#
namestringrequired#
spanIdstringrequired#
traceIdstringrequired#
scopeobjectrequired#
Show child attributes
versionstringrequired#
namestringrequired#
resourceobjectrequired#
Show child attributes
droppedAttributesCountnumberrequired#
attributesobject[]required#
Show child attributes
valueobjectrequired#
Show child attributes
arrayValueobject#
Show child attributes
valuesobject[]required#
Show child attributes
stringValuestringrequired#
intValuenumber#
stringValuestring#
keystringrequired#

Responses

204
No content