Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds ability to specify user values via NLog configuration #336

Merged
merged 6 commits into from Jan 14, 2020

Conversation

josh-degraw
Copy link
Contributor

RE: #322
I opted to have a user object to keep the user information logically coupled. If it would be more clear in another format I'm fine with changing it, but I also figured it would be more straightforward to do it this way especially if we want to add support for structured contexts or other things (i.e. fingerprint) for them to be logically structured like in sentry documentation.

@codecov-io
Copy link

codecov-io commented Jan 9, 2020

Codecov Report

Merging #336 into master will decrease coverage by 0.16%.
The diff coverage is 94.73%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #336      +/-   ##
==========================================
- Coverage   92.23%   92.06%   -0.17%     
==========================================
  Files          81       82       +1     
  Lines        2073     2092      +19     
==========================================
+ Hits         1912     1926      +14     
- Misses        161      166       +5
Impacted Files Coverage Δ
src/Sentry.NLog/SentryNLogUser.cs 100% <100%> (ø)
src/Sentry.NLog/SentryNLogOptions.cs 100% <100%> (ø) ⬆️
src/Sentry.NLog/SentryTarget.cs 97.85% <92.3%> (-0.57%) ⬇️
src/Sentry/Internal/AppDomainAdapter.cs 71.42% <0%> (-14.29%) ⬇️
...rc/Sentry/Extensibility/SentryStackTraceFactory.cs 94.93% <0%> (-3.8%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 385a1e4...bf78710. Read the comment docs.

Copy link
Member

@bruno-garcia bruno-garcia left a comment

Choose a reason for hiding this comment

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

other than 2 nits: LGTM!
Thanks Josh!

src/Sentry.NLog/SentryTarget.cs Show resolved Hide resolved
test/Sentry.NLog.Tests/SentryTargetTests.cs Outdated Show resolved Hide resolved
@bruno-garcia
Copy link
Member

❤️ !

@bruno-garcia bruno-garcia merged commit dcea346 into getsentry:master Jan 14, 2020
@josh-degraw josh-degraw deleted the feature/scope-config branch January 29, 2020 17:54
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.

None yet

3 participants