File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
receiver/splunkhecreceiver Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ require (
66 github.com/goccy/go-json v0.10.5
77 github.com/google/uuid v1.6.0
88 github.com/gorilla/mux v1.8.1
9- github.com/json-iterator/go v1.1.12
109 github.com/open-telemetry/opentelemetry-collector-contrib/exporter/splunkhecexporter v0.139.0
1110 github.com/open-telemetry/opentelemetry-collector-contrib/extension/ackextension v0.139.0
1211 github.com/open-telemetry/opentelemetry-collector-contrib/internal/common v0.139.0
@@ -49,6 +48,7 @@ require (
4948 github.com/google/go-tpm v0.9.6 // indirect
5049 github.com/hashicorp/go-version v1.7.0 // indirect
5150 github.com/hashicorp/golang-lru/v2 v2.0.7 // indirect
51+ github.com/json-iterator/go v1.1.12 // indirect
5252 github.com/klauspost/compress v1.18.1 // indirect
5353 github.com/knadh/koanf/maps v0.1.2 // indirect
5454 github.com/knadh/koanf/providers/confmap v1.0.0 // indirect
Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ import (
1717 "testing"
1818 "time"
1919
20- jsoniter "github.com/json-iterator/go"
2120 "github.com/stretchr/testify/assert"
2221 "github.com/stretchr/testify/require"
2322 "go.opentelemetry.io/collector/component"
@@ -1814,7 +1813,7 @@ func Test_splunkhecreceiver_handle_nested_fields(t *testing.T) {
18141813 currentTime := float64 (time .Now ().UnixNano ()) / 1e6
18151814 event := buildSplunkHecMsg (currentTime , 3 )
18161815 event .Fields ["nested_map" ] = tt .field
1817- msgBytes , err := jsoniter .Marshal (event )
1816+ msgBytes , err := json .Marshal (event )
18181817 require .NoError (t , err )
18191818 req := httptest .NewRequest (http .MethodPost , "http://localhost/services/collector" , bytes .NewReader (msgBytes ))
18201819
You can’t perform that action at this time.
0 commit comments