| 541 | } |
| 542 | |
| 543 | func disableSentry(input string) string { |
| 544 | //utils.Replace(&input, `\(([^,]+),([^,]+),\{sampleRate:([^,]+),tracesSampleRate:([^,]+)(,.*?)?\}`, func(submatches ...string) string { |
| 545 | // return fmt.Sprintf(",%s", submatches[0]) |
| 546 | //}) |
| 547 | // Spotify enables sentry only for versions that are newer than 30 days old. |
| 548 | utils.Replace(&input, "/864e5<30", func(submatches ...string) string { |
| 549 | return "<0" |
| 550 | }) |
| 551 | return input |
| 552 | } |
| 553 | |
| 554 | func disableLogging(input string) string { |
| 555 | loggingPatches := []Patch{ |