Skip to content

Commit

Permalink
default
Browse files Browse the repository at this point in the history
  • Loading branch information
trask committed Oct 2, 2024
1 parent 26785ca commit 51c8611
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 2 deletions.
5 changes: 4 additions & 1 deletion api/all/src/main/java/io/opentelemetry/api/logs/Logger.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,8 @@ public interface Logger {
* href="https://opentelemetry.io/docs/specs/semconv/general/events/">event.name semantic
* conventions</a> for more details.
*/
EventBuilder eventBuilder(String eventName);
default EventBuilder eventBuilder(String eventName) {
// TODO could implement this on top of logRecordBuilder, or return a no-op implementation
throw new UnsupportedOperationException();

Check warning on line 48 in api/all/src/main/java/io/opentelemetry/api/logs/Logger.java

View check run for this annotation

Codecov / codecov/patch

api/all/src/main/java/io/opentelemetry/api/logs/Logger.java#L48

Added line #L48 was not covered by tests
}
}
29 changes: 28 additions & 1 deletion docs/apidiffs/current_vs_latest/opentelemetry-api.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,29 @@
Comparing source compatibility of opentelemetry-api-1.43.0-SNAPSHOT.jar against opentelemetry-api-1.42.1.jar
No changes.
+++ NEW INTERFACE: PUBLIC(+) ABSTRACT(+) io.opentelemetry.api.logs.EventBuilder (not serializable)
+++ CLASS FILE FORMAT VERSION: 52.0 <- n.a.
+++ NEW SUPERCLASS: java.lang.Object
+++ NEW METHOD: PUBLIC(+) ABSTRACT(+) void emit()
+++ NEW METHOD: PUBLIC(+) io.opentelemetry.api.logs.EventBuilder put(java.lang.String, java.lang.String)
+++ NEW METHOD: PUBLIC(+) io.opentelemetry.api.logs.EventBuilder put(java.lang.String, long)
+++ NEW METHOD: PUBLIC(+) io.opentelemetry.api.logs.EventBuilder put(java.lang.String, double)
+++ NEW METHOD: PUBLIC(+) io.opentelemetry.api.logs.EventBuilder put(java.lang.String, boolean)
+++ NEW METHOD: PUBLIC(+) io.opentelemetry.api.logs.EventBuilder put(java.lang.String, java.lang.String[])
+++ NEW METHOD: PUBLIC(+) io.opentelemetry.api.logs.EventBuilder put(java.lang.String, long[])
+++ NEW METHOD: PUBLIC(+) io.opentelemetry.api.logs.EventBuilder put(java.lang.String, double[])
+++ NEW METHOD: PUBLIC(+) io.opentelemetry.api.logs.EventBuilder put(java.lang.String, boolean[])
+++ NEW METHOD: PUBLIC(+) io.opentelemetry.api.logs.EventBuilder put(io.opentelemetry.api.common.AttributeKey<T>, java.lang.Object)
GENERIC TEMPLATES: +++ T:java.lang.Object
+++ NEW METHOD: PUBLIC(+) ABSTRACT(+) io.opentelemetry.api.logs.EventBuilder put(java.lang.String, io.opentelemetry.api.common.Value<?>)
+++ NEW METHOD: PUBLIC(+) ABSTRACT(+) io.opentelemetry.api.logs.EventBuilder setAttributes(io.opentelemetry.api.common.Attributes)
+++ NEW METHOD: PUBLIC(+) ABSTRACT(+) io.opentelemetry.api.logs.EventBuilder setContext(io.opentelemetry.context.Context)
+++ NEW METHOD: PUBLIC(+) ABSTRACT(+) io.opentelemetry.api.logs.EventBuilder setSeverity(io.opentelemetry.api.logs.Severity)
+++ NEW METHOD: PUBLIC(+) ABSTRACT(+) io.opentelemetry.api.logs.EventBuilder setTimestamp(long, java.util.concurrent.TimeUnit)
+++ NEW METHOD: PUBLIC(+) ABSTRACT(+) io.opentelemetry.api.logs.EventBuilder setTimestamp(java.time.Instant)
*** MODIFIED INTERFACE: PUBLIC ABSTRACT io.opentelemetry.api.logs.Logger (not serializable)
=== CLASS FILE FORMAT VERSION: 52.0 <- 52.0
+++ NEW METHOD: PUBLIC(+) io.opentelemetry.api.logs.EventBuilder eventBuilder(java.lang.String)
*** MODIFIED INTERFACE: PUBLIC ABSTRACT io.opentelemetry.api.OpenTelemetry (not serializable)
=== CLASS FILE FORMAT VERSION: 52.0 <- 52.0
+++ NEW METHOD: PUBLIC(+) io.opentelemetry.api.logs.Logger getLogger(java.lang.String)
+++ NEW METHOD: PUBLIC(+) io.opentelemetry.api.logs.LoggerBuilder getLoggerBuilder(java.lang.String)
+++ NEW METHOD: PUBLIC(+) io.opentelemetry.api.logs.LoggerProvider getLoggerProvider()

0 comments on commit 51c8611

Please sign in to comment.