1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2025-01-03 22:52:30 +02:00

Add application/json header

This commit is contained in:
Paul Thomson 2020-05-29 06:24:22 +10:00
parent 49043f6f97
commit 6929c15957

View File

@ -105,6 +105,7 @@ func (e *Exporter) ExportSpans(ctx context.Context, batch []*export.SpanData) {
e.logf("failed to create request to %s: %v", e.url, err)
return
}
req.Header.Set("Content-Type", "application/json")
resp, err := e.client.Do(req)
if err != nil {
e.logf("request to %s failed: %v", e.url, err)