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

Merge pull request #774 from pauldthomson/master

Add application/json header for Zipkin exporter
This commit is contained in:
Tyler Yahn 2020-05-28 15:51:59 -07:00 committed by GitHub
commit 3964a36097
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)