Skip to content

Commit

Permalink
fix float values
Browse files Browse the repository at this point in the history
  • Loading branch information
mikkeschiren committed Feb 6, 2024
1 parent 42849da commit faaa846
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions SystemSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,11 @@ private function createDSNSetting()
*/
private function createDSNSampleRateSetting()
{
return $this->makeSetting('DSNSampleRate', "1.0", FieldConfig::TYPE_FLOAT, function (FieldConfig $field) {
return $this->makeSetting('DSNSampleRate', 1.0, FieldConfig::TYPE_FLOAT, function (FieldConfig $field) {
$field->title = 'Error tracking sample rate (float value)';
$field->uiControl = FieldConfig::UI_CONTROL_TEXT;
$field->description =
'Add sample rate, 0.0 for no error tracking, 1.0 for 100% and 0.25 for 25% as an example.';
'Add sample rate, 0 for no error tracking, 1.0 for 100% and 0.25 for 25% as an example.';
$field->validate = function ($value) {
if (empty($value)) {
throw new \Exception('Value is required');
Expand All @@ -85,11 +85,11 @@ private function createDSNSampleRateSetting()
*/
private function createTracesSampleRateSetting()
{
return $this->makeSetting('TracesSampleRate', "0.0", FieldConfig::TYPE_FLOAT, function (FieldConfig $field) {
return $this->makeSetting('TracesSampleRate', 0.0, FieldConfig::TYPE_FLOAT, function (FieldConfig $field) {
$field->title = 'Tracing sample rate (float value)';
$field->uiControl = FieldConfig::UI_CONTROL_TEXT;
$field->description =
'Default 0.0 (off). 1.0 for 100% and 0.25 for 25% etc.';
'Default 0 (off). 1.0 for 100% and 0.25 for 25% etc.';
$field->validate = function ($value) {
if (empty($value)) {
throw new \Exception('Value is required');
Expand Down
2 changes: 1 addition & 1 deletion plugin.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Sentry",
"description": "Log Matomo errors to Sentry",
"version": "5.0.6",
"version": "5.0.7",
"theme": false,
"require": {
"matomo": ">=5.0.0-stable,<6.0.0-b1",
Expand Down

0 comments on commit faaa846

Please sign in to comment.