Skip to content

Commit

Permalink
added itemsPerMinute to configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Pawel Szczodruch committed Jun 18, 2021
1 parent d69a6f9 commit 66c2359
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 14 deletions.
1 change: 1 addition & 0 deletions client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down
29 changes: 15 additions & 14 deletions transforms.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 66c2359

Please sign in to comment.