diff --git a/client_test.go b/client_test.go index 79be3f2..09c13b8 100644 --- a/client_test.go +++ b/client_test.go @@ -518,6 +518,7 @@ func testGettersAndSetters(client *rollbar.Client, t *testing.T) { errorIfNotEqual(fingerprint, configuredOptions["fingerprint"].(bool), t) errorIfNotEqual(scrubHeaders, configuredOptions["scrubHeaders"].(*regexp.Regexp), t) errorIfNotEqual(scrubFields, configuredOptions["scrubFields"].(*regexp.Regexp), t) + errorIfNotEqual(itemsPerMinute, configuredOptions["itemsPerMinute"].(int), t) } else { t.Fail() } diff --git a/transforms.go b/transforms.go index 11278e5..8dff133 100644 --- a/transforms.go +++ b/transforms.go @@ -79,20 +79,21 @@ func buildCustom(custom map[string]interface{}, extras map[string]interface{}) m func buildConfiguredOptions(configuration configuration) map[string]interface{} { return map[string]interface{}{ - "environment": configuration.environment, - "endpoint": configuration.endpoint, - "platform": configuration.platform, - "codeVersion": configuration.codeVersion, - "serverHost": configuration.serverHost, - "serverRoot": configuration.serverRoot, - "fingerprint": configuration.fingerprint, - "scrubHeaders": configuration.scrubHeaders, - "scrubFields": configuration.scrubFields, - "transform": functionToString(configuration.transform), - "unwrapper": functionToString(configuration.unwrapper), - "stackTracer": functionToString(configuration.stackTracer), - "checkIgnore": functionToString(configuration.checkIgnore), - "captureIp": configuration.captureIp, + "environment": configuration.environment, + "endpoint": configuration.endpoint, + "platform": configuration.platform, + "codeVersion": configuration.codeVersion, + "serverHost": configuration.serverHost, + "serverRoot": configuration.serverRoot, + "fingerprint": configuration.fingerprint, + "scrubHeaders": configuration.scrubHeaders, + "scrubFields": configuration.scrubFields, + "transform": functionToString(configuration.transform), + "unwrapper": functionToString(configuration.unwrapper), + "stackTracer": functionToString(configuration.stackTracer), + "checkIgnore": functionToString(configuration.checkIgnore), + "captureIp": configuration.captureIp, + "itemsPerMinute": configuration.itemsPerMinute, "person": map[string]string{ "Id": configuration.person.Id, "Username": configuration.person.Username,