the browser-facing portion of osu!
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Remove datadog enable check

nanaya 5b8ad1ac 1914dd3a

+16 -22
+5 -7
app/Libraries/Elasticsearch/Search.php
··· 262 262 app('sentry')->captureException($e); 263 263 } 264 264 265 - if (config('datadog-helper.enabled')) { 266 - Datadog::increment( 267 - config('datadog-helper.prefix_web').'.search.errors', 268 - 1, 269 - $tags 270 - ); 271 - } 265 + Datadog::increment( 266 + config('datadog-helper.prefix_web').'.search.errors', 267 + 1, 268 + $tags 269 + ); 272 270 } 273 271 274 272 private function isSearchWindowExceeded()
+8 -10
app/Providers/AppServiceProvider.php
··· 37 37 }); 38 38 39 39 Queue::after(function (JobProcessed $event) { 40 - if (config('datadog-helper.enabled')) { 41 - Datadog::increment( 42 - config('datadog-helper.prefix_web').'.queue.run', 43 - 1, 44 - [ 45 - 'job' => $event->job->resolveName(), 46 - 'queue' => $event->job->getQueue(), 47 - ] 48 - ); 49 - } 40 + Datadog::increment( 41 + config('datadog-helper.prefix_web').'.queue.run', 42 + 1, 43 + [ 44 + 'job' => $event->job->resolveName(), 45 + 'queue' => $event->job->getQueue(), 46 + ] 47 + ); 50 48 }); 51 49 52 50 $this->app->make('translator')->setSelector(new OsuMessageSelector);
+2 -4
app/helpers.php
··· 223 223 $result = $callable(); 224 224 clock()->endEvent($uid); 225 225 226 - if (config('datadog-helper.enabled')) { 227 - $duration = microtime(true) - $start; 228 - Datadog::microtiming($stat, $duration, 1, $tag); 229 - } 226 + $duration = microtime(true) - $start; 227 + Datadog::microtiming($stat, $duration, 1, $tag); 230 228 231 229 return $result; 232 230 }
+1 -1
config/datadog-helper.php
··· 9 9 | Set this option to enable or disable the datadog helper. 10 10 | 11 11 */ 12 - 'enabled' => env('DATADOG_ENABLED', false), 12 + 'enabled' => env('DATADOG_ENABLED', true), 13 13 14 14 /* 15 15 |--------------------------------------------------------------------------