Stabilize annotations
Resolves
MODIFY
.github/workflows/build-common.yml
.github/workflows/build-common.yml
@@ -119,7 +119,9 @@ jobs:
- name: Check for jApiCmp diffs
run: |
- if git diff --quiet
+ # need to "git add" in case any generated files did not already exist
+ git add docs/apidiffs
+ if git diff --cached --quiet
then
echo "No diff detected."
else

ADD
docs/apidiffs/current_vs_latest/opentelemetry-instrumentation-annotations.txt
+Comparing source compatibility of against
++++ NEW ANNOTATION: PUBLIC(+) ABSTRACT(+) io.opentelemetry.instrumentation.annotations.SpanAttribute (not serializable)
+ +++ CLASS FILE FORMAT VERSION: 52.0 <- n.a.
+ +++ NEW INTERFACE: java.lang.annotation.Annotation
+ +++ NEW SUPERCLASS: java.lang.Object
+ +++ NEW METHOD: PUBLIC(+) ABSTRACT(+) java.lang.String value()
+ +++ NEW ANNOTATION: java.lang.annotation.Target
+ +++ NEW ELEMENT: value=java.lang.annotation.ElementType.PARAMETER (+)
+ +++ NEW ANNOTATION: java.lang.annotation.Retention
+ +++ NEW ELEMENT: value=java.lang.annotation.RetentionPolicy.RUNTIME (+)
++++ NEW ANNOTATION: PUBLIC(+) ABSTRACT(+) io.opentelemetry.instrumentation.annotations.WithSpan (not serializable)
+ +++ CLASS FILE FORMAT VERSION: 52.0 <- n.a.
+ +++ NEW INTERFACE: java.lang.annotation.Annotation
+ +++ NEW SUPERCLASS: java.lang.Object
+ +++ NEW METHOD: PUBLIC(+) ABSTRACT(+) io.opentelemetry.api.trace.SpanKind kind()
+ +++ NEW METHOD: PUBLIC(+) ABSTRACT(+) java.lang.String value()
+ +++ NEW ANNOTATION: java.lang.annotation.Target
+ +++ NEW ELEMENT: value=java.lang.annotation.ElementType.METHOD,java.lang.annotation.ElementType.CONSTRUCTOR (+)
+ +++ NEW ANNOTATION: java.lang.annotation.Retention
+ +++ NEW ELEMENT: value=java.lang.annotation.RetentionPolicy.RUNTIME (+)

MODIFY
instrumentation-annotations/build.gradle.kts
instrumentation-annotations/build.gradle.kts
plugins {
id("otel.java-conventions")
+ id("otel.japicmp-conventions")
id("otel.publish-conventions")
id("otel.animalsniffer-conventions")

ADD
instrumentation-annotations/gradle.properties
+otel.stable=true

Stabilize annotations (#7046)

Resolves #6494