Skip to content

Version 3.2.0

Compare
Choose a tag to compare
@matus-tomlein matus-tomlein released this 28 Jun 12:16
· 156 commits to master since this release

The tracker now makes use of the client_session schema version 1-0-2, which adds two new properties to the session context entity – eventIndex (index of the event in the session) and firstEventTimestamp (timestamp of the first event in the session). The event index property is useful for ordering events as they were tracked.

The release also changes the behaviour for 5 HTTP status codes (400, 401, 403, 410, and 422) that, when received in response from the Collector, will now cause the tracker not to retry sending events (i.e., drop the events). Requests with all other 3xx, 4xx, and 5xx status codes are retried. The set of status codes for which events should be retried or not is customizable in EmitterConfiguration. The following shows the configuration in the iOS tracker:

var customRetryRules = [Int:Bool]()
customRetryRules[403] = true // retry for the 403 HTTP status code
let emitterConfig = EmitterConfiguration()
    .customRetryForStatusCodes(customRetryRules)

CHANGELOG

Features:

  • Add eventIndex and firstEventTimestamp properties to client sessions (#682)
  • Add a customizable set of failure HTTP status codes for which collector requests should not be retried (#684)