-
Notifications
You must be signed in to change notification settings - Fork 790
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
Logs: Add LogEmitter API #3423
Logs: Add LogEmitter API #3423
Conversation
Codecov Report
@@ Coverage Diff @@
## main #3423 +/- ##
==========================================
- Coverage 86.22% 86.18% -0.05%
==========================================
Files 261 263 +2
Lines 9411 9542 +131
==========================================
+ Hits 8115 8224 +109
- Misses 1296 1318 +22
|
var logEmitter = provider.CreateEmitter(); | ||
|
||
DateTime timestamp = DateTime.SpecifyKind( | ||
new DateTime(2022, 6, 30, 16, 0, 0), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm inclined to suggest using some well-known historical date here, but no great ones are jumping to my mind 😆
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you saying the date that I wrote the test is NOT historically significant?! 🤣
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LoGemiTter.. M <- ugh, i went and tried something but failed... no place to put this M
[Goal is to pare down the amount of changes on #3305]
Changes
I didn't implement
LogEmitterProvider
because it didn't seem to really be needed. Users can getLogEmitter
viaOpenTelemetryLoggerProvider.CreateEmitter
.TODOs
* [ ] AppropriateThis is all internal so I'm not going to add a CHANGELOG entry. We can add if/when it becomes public? If anyone thinks it should be there LMK.CHANGELOG.md
updated for non-trivial changes