Skip to content

Promote log API / SDK to stable#5341

Merged
jack-berg merged 8 commits into
open-telemetry:mainfrom
jack-berg:stabilize-logs
May 10, 2023
Merged

Promote log API / SDK to stable#5341
jack-berg merged 8 commits into
open-telemetry:mainfrom
jack-berg:stabilize-logs

Conversation

@jack-berg

Copy link
Copy Markdown
Member

Related to #5340. Draft for now until spec stabilizes.

@codecov

codecov Bot commented Mar 31, 2023

Copy link
Copy Markdown

Codecov Report

Patch coverage: 100.00% and project coverage change: -0.01 ⚠️

Comparison is base (7812ad8) 91.29% compared to head (0c61c45) 91.29%.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #5341      +/-   ##
============================================
- Coverage     91.29%   91.29%   -0.01%     
+ Complexity     4890     4887       -3     
============================================
  Files           549      548       -1     
  Lines         14406    14404       -2     
  Branches       1354     1353       -1     
============================================
- Hits          13152    13150       -2     
  Misses          867      867              
  Partials        387      387              
Impacted Files Coverage Δ
.../java/io/opentelemetry/api/logs/DefaultLogger.java 100.00% <ø> (ø)
.../opentelemetry/api/logs/DefaultLoggerProvider.java 100.00% <ø> (ø)
...va/io/opentelemetry/api/logs/LogRecordBuilder.java 60.00% <ø> (ø)
...java/io/opentelemetry/api/logs/LoggerProvider.java 100.00% <ø> (ø)
.../main/java/io/opentelemetry/api/logs/Severity.java 100.00% <ø> (ø)
...nfigure/AutoConfiguredOpenTelemetrySdkBuilder.java 96.27% <ø> (-0.03%) ⬇️
...main/java/io/opentelemetry/sdk/logs/LogLimits.java 100.00% <ø> (ø)
...va/io/opentelemetry/sdk/logs/LogLimitsBuilder.java 100.00% <ø> (ø)
...a/io/opentelemetry/sdk/logs/SdkLoggerProvider.java 100.00% <ø> (ø)
...entelemetry/sdk/logs/SdkLoggerProviderBuilder.java 100.00% <ø> (ø)
... and 8 more

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

Comment thread api/all/src/main/java/io/opentelemetry/api/OpenTelemetry.java Outdated
@jack-berg jack-berg mentioned this pull request Apr 21, 2023
7 tasks
@jack-berg
jack-berg marked this pull request as ready for review May 5, 2023 21:49
@jack-berg
jack-berg requested a review from a team May 5, 2023 21:49
@trask

trask commented May 6, 2023

Copy link
Copy Markdown
Member

Should io.opentelemetry:opentelemetry-sdk-logs-testing be deleted (and merged into io.opentelemetry:opentelemetry-sdk-testing)?

@jack-berg

Copy link
Copy Markdown
Member Author

Yes. Additionally the otlp logs exporter module should be merged into the general otlp artifact. Also, auto configuration should be updated to enable otlp by default for the log SDK.

Was planning on doing these tasks in separate PRs but happy to do all in one place if helpful.

@trask

trask commented May 8, 2023

Copy link
Copy Markdown
Member

Yes. Additionally the otlp logs exporter module should be merged into the general otlp artifact. Also, auto configuration should be updated to enable otlp by default for the log SDK.

Was planning on doing these tasks in separate PRs but happy to do all in one place if helpful.

separate PRs are no problem, I had missed the tracking issue #5340, thx

Comment thread api/all/src/main/java/io/opentelemetry/api/OpenTelemetry.java Outdated
+++ NEW METHOD: PUBLIC(+) ABSTRACT(+) io.opentelemetry.api.logs.LogRecordBuilder setTimestamp(java.time.Instant)
+++ NEW ENUM: PUBLIC(+) FINAL(+) io.opentelemetry.api.logs.Severity (compatible)
+++ CLASS FILE FORMAT VERSION: 52.0 <- n.a.
+++ NEW INTERFACE: java.lang.constant.Constable

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.

That's a Java 12 interface, is this supposed to be here?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

it all depends on the JDK that's being used to generate the api diffs... as long as we're all ok with using java 17, then this will always show up.

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.

Constable👮😂

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.

What I don't understand is why this doesn't get generated from other enums in our public API. We have the build check that ensures that there are no uncomitted japicmp changes, and that passes for builds in all the java versions. 🤔

@jack-berg
jack-berg merged commit 8a917e0 into open-telemetry:main May 10, 2023
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