New LogRecord and Recordable implementations.#1766
New LogRecord and Recordable implementations.#1766lalitb merged 2 commits intoopen-telemetry:mainfrom
LogRecord and Recordable implementations.#1766Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #1766 +/- ##
==========================================
- Coverage 85.73% 85.71% -0.01%
==========================================
Files 171 171
Lines 5240 5240
==========================================
- Hits 4492 4491 -1
- Misses 748 749 +1
|
LogRecord and Recordable implementations.LogRecord and Recordable implementations.
740bf23 to
35f1ac8
Compare
Do you think we can keep the existing API intact (maybe renaming to And then the new interface can build the |
Sorry, I'm poor in English and perhaps I didn't make it clear. The For users, we can still use the old |
Thanks for explanation. So to summarise
This looks fine to me. Log Data model is already stable, I don't think LogRecord would change any further, definitely not after log API is also made stable. So, there shouldn't be upgrade issues with users. |
Thanks, I will push another commit later to change the relationship between I also have a idea about the new |
Aren't variable templates part of C++14 ? |
No, it's C++11. See https://en.cppreference.com/w/cpp/compiler_support/11 |
Oh variadic templates :) Not sure if that would look good at public API surface. I would prefer overloaded methods, but would leave it to you. |
e28b065 to
1bb5f7a
Compare
|
@lalitb Could you please take some time to review this PR again when you have time?The |
1bb5f7a to
250eb44
Compare
250eb44 to
f5a22e7
Compare
043030a to
dbe9b50
Compare
lalitb
left a comment
There was a problem hiding this comment.
Have some minor comments. In general looks in good shape. Need to review otlp exporter part to finish the review, will be doing that tomorrow.
dbe9b50 to
878649e
Compare
lalitb
left a comment
There was a problem hiding this comment.
LGTM. with few minor comments.
We can wait for couple of days if there are more reviews before merging.
Thanks for the work, it is nicely done :)
878649e to
5c885ca
Compare
…on#2941 Signed-off-by: owent <admin@owent.net> Fix `-Werror=suggest-override` and style Signed-off-by: owent <admin@owent.net> Fix ostream_log_test Signed-off-by: owent <admin@owent.net> Fix ostream print_value for `AttributeValue` Signed-off-by: owent <admin@owent.net> New Recordable of logs Signed-off-by: owent <admin@owent.net> Restore .vscode/launch.json Signed-off-by: owent <admin@owent.net> Fix warning. Signed-off-by: owent <admin@owent.net> Fix warnings in maintainer mode and ETW exporter Signed-off-by: owent <admin@owent.net> Add CHANGELOG Signed-off-by: owent <admin@owent.net> Allow to move 'nostd::unique_ptr<T>' into `nostd::shared_ptr<T>` Signed-off-by: owent <admin@owent.net> Do not use `std/type_traits.h` any more. Maybe we should remove this file later. Signed-off-by: owent <admin@owent.net> Allow to add rvalue into `CircularBuffer` Signed-off-by: owent <admin@owent.net> Finish new `LogRecord` for exporters. Signed-off-by: owent <admin@owent.net> Finish unit tests in API and SDK. Exporters are still work in progress. Signed-off-by: owent <admin@owent.net> New `LogRecord` and `Recordable` implementations. Signed-off-by: WenTao Ou <admin@owent.net> Restore `nostd::unique_ptr` to `std::unique_ptr` in sdk and exporters. Signed-off-by: WenTao Ou <admin@owent.net> Fix feedback of comments and useless headers Signed-off-by: WenTao Ou <admin@owent.net> Optimize if branch in `ReadWriteLogRecord::GetResource` . Signed-off-by: owent <admin@owent.net>
5c885ca to
8785f64
Compare
Signed-off-by: WenTao Ou admin@owent.net
Fixes #1691
Fixes #1689
Changes
There are a lot break changes in this PR.But it's easy to migrate if users do not implement their own Logger and Exporter.
Logger::LogAPIs.namefield are removed now.Thenamefield is ognored from v1.4.0.LogRecord,ReadableLogRecord,ReadWriteLogRecordlogs::Recordableto collect data from the all in oneLogRecord.EmitEventfunction which will be use to implement [Logs API] LoggerProvider changes #1687 and [Logs API] - Logger Changes #1688 in the future.std::unique_ptr<T>withnostd::unique_ptr<T>in logs.For significant contributions please make sure you have completed the following items:
CHANGELOG.mdupdated for non-trivial changes