Skip to content

✨ Add log sample rate to loggers. - #459

Merged
fuzzybinary merged 3 commits into
developfrom
jward/RUMM-3467-log-sampling
Jul 24, 2023
Merged

fuzzybinary merged 3 commits into
developfrom
jward/RUMM-3467-log-sampling

Conversation

@fuzzybinary

Copy link
Copy Markdown
Member

What and why?

There was a request to add sampleRate to Flutter loggers, similar to those that exist on Web and Native. Because of platform differences, Flutter handles log sampling itself, and keeps the sampling rate at the native level at 100%

This also differs slightly from Web, as each log is sampled, instead of each session.

refs: RUMM-3467

Review checklist

  • This pull request has appropriate unit and / or integration tests
  • This pull request references a Github or JIRA issue

CI Configuration (optional)

  • Run unit tests
  • Run integration tests

Because of platform differences, Flutter handles log sampling itself, and keeps the sampling rate at the native level at 100%

refs: RUMM-3467
@fuzzybinary
fuzzybinary requested a review from a team as a code owner July 20, 2023 18:43
logger!.loggerHandle, loggingConfiguration));
});

test('initialize with logging sample rate creates logger with sample rate',

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems that this test is identical to the test above, I don't see any setup/assert for the sample rate here.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, good call. I think this is left over from when I put the sample rate on the global configuration and it never got removed.

@fuzzybinary
fuzzybinary merged commit 1fce603 into develop Jul 24, 2023
@fuzzybinary
fuzzybinary deleted the jward/RUMM-3467-log-sampling branch July 24, 2023 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants