Skip to content

Commit

Permalink
fix: otlp json encoding
Browse files Browse the repository at this point in the history
Regression introduced in commit bd0a46a after api change in open-telemetry/opentelemetry-js#4220
  • Loading branch information
gdaszuta authored Aug 21, 2024
1 parent 30ee772 commit bd81d40
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 bd81d40

Please sign in to comment.