Skip to content

Commit

Permalink
[v2] Fix failing tests after merging. (elastic#1396)
Browse files Browse the repository at this point in the history
  • Loading branch information
simitt authored and Ron cohen committed Oct 15, 2018
1 parent 04513c3 commit 1aab36e
Show file tree
Hide file tree
Showing 5 changed files with 499 additions and 488 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@
"name": "1234_service-12a3"
}
},
"parent": {
"id": "ab23456a89012345"
},
"processor": {
"event": "span",
"name": "transaction"
Expand All @@ -54,7 +57,6 @@
},
"hex_id": "0123456a89012345",
"name": "GET /api/types",
"parent_id": "ab23456a89012345",
"start": {
"us": 1845
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@
"name": "backendspans"
}
},
"parent": {
"id": "012345654321123"
},
"processor": {
"event": "span",
"name": "transaction"
Expand All @@ -86,7 +89,6 @@
},
"hex_id": "0147258369abcdef",
"name": "sp1",
"parent_id": "012345654321123",
"start": {
"us": 10000
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@
"name": "backendspans"
}
},
"parent": {
"id": "0000000011111111"
},
"processor": {
"event": "span",
"name": "transaction"
Expand All @@ -57,7 +60,6 @@
},
"hex_id": "1234abcdef56789568",
"name": "GET /api/types",
"parent_id": "0000000011111111",
"start": {
"us": 0
},
Expand All @@ -81,6 +83,9 @@
"name": "backendspans"
}
},
"parent": {
"id": "abcdefabcdef7890"
},
"processor": {
"event": "span",
"name": "transaction"
Expand All @@ -91,7 +96,6 @@
},
"hex_id": "0123456a89012345",
"name": "GET /api/types",
"parent_id": "abcdefabcdef7890",
"start": {
"us": 1845
},
Expand All @@ -115,6 +119,9 @@
"name": "backendspans"
}
},
"parent": {
"id": "ababcdcdefefabde"
},
"processor": {
"event": "span",
"name": "transaction"
Expand All @@ -125,7 +132,6 @@
},
"hex_id": "abcde56a89012345",
"name": "get /api/types",
"parent_id": "ababcdcdefefabde",
"start": {
"us": 0
},
Expand Down Expand Up @@ -158,6 +164,9 @@
"name": "backendspans"
}
},
"parent": {
"id": "abcdef0123456789"
},
"processor": {
"event": "span",
"name": "transaction"
Expand All @@ -168,7 +177,6 @@
},
"hex_id": "1234567890aaaade",
"name": "SELECT FROM product_types",
"parent_id": "abcdef0123456789",
"stacktrace": [
{
"exclude_from_grouping": false,
Expand Down
3 changes: 1 addition & 2 deletions processor/stream/benchmark_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import (
"context"
"errors"
"io/ioutil"
"math"
"path/filepath"
"runtime"
"testing"
Expand Down Expand Up @@ -60,7 +59,7 @@ func BenchmarkStreamProcessor(b *testing.B) {
for i := 0; i < b.N; i++ {
b.StopTimer()
r.Reset(data)
reader := decoder.NewNDJSONStreamReader(r, math.MaxInt32)
reader := decoder.NewNDJSONStreamReader(r, 100000)
b.StartTimer()
sp.HandleStream(ctx, map[string]interface{}{}, reader, report)
}
Expand Down
Loading

0 comments on commit 1aab36e

Please sign in to comment.