Skip to content

Commit

Permalink
Merge pull request #156 from gdaszuta/main
Browse files Browse the repository at this point in the history
 fix: otlp json encoding
  • Loading branch information
evanderkoogh authored Aug 22, 2024
2 parents 30ee772 + bd81d40 commit 9a20713
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/exporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ export class OTLPExporter implements SpanExporter {
}

send(items: any[], onSuccess: () => void, onError: (error: OTLPExporterError) => void): void {
const exportMessage = createExportTraceServiceRequest(items)
const exportMessage = createExportTraceServiceRequest(items, {
useHex: true,
useLongBits: false,
})
const body = JSON.stringify(exportMessage)
const params: RequestInit = {
method: 'POST',
Expand Down

0 comments on commit 9a20713

Please sign in to comment.