Skip to content

Commit bd81d40

Browse files
authored
fix: otlp json encoding
Regression introduced in commit evanderkoogh@bd0a46a after api change in open-telemetry/opentelemetry-js#4220
1 parent 30ee772 commit bd81d40

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/exporter.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,10 @@ export class OTLPExporter implements SpanExporter {
4343
}
4444

4545
send(items: any[], onSuccess: () => void, onError: (error: OTLPExporterError) => void): void {
46-
const exportMessage = createExportTraceServiceRequest(items)
46+
const exportMessage = createExportTraceServiceRequest(items, {
47+
useHex: true,
48+
useLongBits: false,
49+
})
4750
const body = JSON.stringify(exportMessage)
4851
const params: RequestInit = {
4952
method: 'POST',

0 commit comments

Comments
 (0)