fix(obs): send spooled traces as OTLP protobuf; neatlogs ingest rejects OTLP/JSON

main
No checks reported

Commit

Raj Karia1mo ago

roster traces flush posted the spooled OTLP/JSON body and every resend came back HTTP 400 "Invalid protobuf payload". Flush now encodes the request with the OTLP generated root the SDK's own exporter uses (hex ids as bytes) and posts application/x-protobuf. The three spooled review traces were re-sent: HTTP 200.

Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com