Skip to content

Commit 7ceaf28

Browse files
prepare 3.2.2 release (#15)
1 parent ee95a48 commit 7ceaf28

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

src/__tests__/diagnosticEvents-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ describe('DiagnosticsAccumulator', () => {
4949
it('records successful stream init', () => {
5050
const acc = DiagnosticsAccumulator(1000);
5151
acc.recordStreamInit(1001, false, 500);
52-
expect(acc.getProps().streamInits).toEqual([{ timestamp: 1001, durationMillis: 500 }]);
52+
expect(acc.getProps().streamInits).toEqual([{ timestamp: 1001, failed: false, durationMillis: 500 }]);
5353
});
5454

5555
it('records failed stream init', () => {

src/diagnosticEvents.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,7 @@ function DiagnosticsAccumulator(startTime) {
5151
eventsInLastBatch = n;
5252
},
5353
recordStreamInit: (timestamp, failed, durationMillis) => {
54-
const info = { timestamp, durationMillis };
55-
if (failed) {
56-
info.failed = true;
57-
}
54+
const info = { timestamp, failed, durationMillis };
5855
streamInits.push(info);
5956
},
6057
reset,
@@ -200,8 +197,6 @@ function DiagnosticsManager(platform, accumulator, eventSender, environmentId, c
200197
};
201198
// Client-side JS SDKs do not have the following properties which other SDKs have:
202199
// connectTimeoutMillis
203-
// eventsCapacity
204-
// offline
205200
// pollingIntervalMillis
206201
// samplingInterval
207202
// socketTimeoutMillis

0 commit comments

Comments
 (0)