Skip to content

Commit

Permalink
Mark :extensions:annotations as deprecated (open-telemetry#4659)
Browse files Browse the repository at this point in the history
  • Loading branch information
jack-berg authored Aug 7, 2022
1 parent 5def2f7 commit 1d63b2a
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 14 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -230,14 +230,14 @@ dependency as follows, replacing `{{artifact-id}}` with the value from the "Arti

### API Extensions

| Component | Description | Artifact ID | Version |
|---------------------------------------------------------------|--------------------------------------------------------------------------------|---------------------------------------------|-------------------------------------------------------------|
| [Annotations Extension](./extensions/annotations) | Instrumentation annotations, used in conjunction with OpenTelemetry java agent | `opentelemetry-extension-annotations` | <!--VERSION_STABLE-->1.16.0<!--/VERSION_STABLE--> |
| [AWS Extension](./extensions/aws) | AWS Xray propagator | `opentelemetry-extension-aws` | <!--VERSION_STABLE-->1.16.0<!--/VERSION_STABLE--> |
| [Kotlin Extension](./extensions/kotlin) | Context extension for coroutines | `opentelemetry-extension-kotlin` | <!--VERSION_STABLE-->1.16.0<!--/VERSION_STABLE--> |
| [Trace Propagators Extension](./extensions/trace-propagators) | Trace propagators, including B3, Jaeger, OT Trace | `opentelemetry-extension-trace-propagators` | <!--VERSION_STABLE-->1.16.0<!--/VERSION_STABLE--> |
| [Incubator Extension](./extensions/incubator) | API incubator, including pass through propagator, and extended tracer | `opentelemetry-extension-incubator` | <!--VERSION_UNSTABLE-->1.16.0-alpha<!--/VERSION_UNSTABLE--> |
| [Noop API Extension](./extensions/noop-api) | A noop OpenTelemetry implementation which ignores context | `opentelemetry-extension-noop-api` | <!--VERSION_UNSTABLE-->1.16.0-alpha<!--/VERSION_UNSTABLE--> |
| Component | Description | Artifact ID | Version |
|---------------------------------------------------------------|---------------------------------------------------------------------------------------------|---------------------------------------------|-------------------------------------------------------------|
| [AWS Extension](./extensions/aws) | AWS Xray propagator | `opentelemetry-extension-aws` | <!--VERSION_STABLE-->1.16.0<!--/VERSION_STABLE--> |
| [Kotlin Extension](./extensions/kotlin) | Context extension for coroutines | `opentelemetry-extension-kotlin` | <!--VERSION_STABLE-->1.16.0<!--/VERSION_STABLE--> |
| [Trace Propagators Extension](./extensions/trace-propagators) | Trace propagators, including B3, Jaeger, OT Trace | `opentelemetry-extension-trace-propagators` | <!--VERSION_STABLE-->1.16.0<!--/VERSION_STABLE--> |
| [Incubator Extension](./extensions/incubator) | API incubator, including pass through propagator, and extended tracer | `opentelemetry-extension-incubator` | <!--VERSION_UNSTABLE-->1.16.0-alpha<!--/VERSION_UNSTABLE--> |
| [Noop API Extension](./extensions/noop-api) | A noop OpenTelemetry implementation which ignores context | `opentelemetry-extension-noop-api` | <!--VERSION_UNSTABLE-->1.16.0-alpha<!--/VERSION_UNSTABLE--> |
| [Annotations Extension](./extensions/annotations) | Instrumentation annotations, used in conjunction with OpenTelemetry java agent (deprecated) | `opentelemetry-extension-annotations` | <!--VERSION_STABLE-->1.16.0<!--/VERSION_STABLE--> |

### SDK

Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
Comparing source compatibility of against
No changes.
=== UNCHANGED ANNOTATION: PUBLIC ABSTRACT io.opentelemetry.extension.annotations.SpanAttribute (not serializable)
=== CLASS FILE FORMAT VERSION: 52.0 <- 52.0
+++ NEW ANNOTATION: java.lang.Deprecated
=== UNCHANGED ANNOTATION: PUBLIC ABSTRACT io.opentelemetry.extension.annotations.WithSpan (not serializable)
=== CLASS FILE FORMAT VERSION: 52.0 <- 52.0
+++ NEW ANNOTATION: java.lang.Deprecated
4 changes: 2 additions & 2 deletions exporters/jaeger-proto/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# OpenTelemetry - Jaeger Proto
# OpenTelemetry - Jaeger Proto (DEPRECATED)

External use of this artifact is deprecated. It will not have any changes in the future but will continue to be published as is until 2.0.0.
> **NOTICE**: External use of this artifact is deprecated. It will not have any changes in the future but will continue to be published as is until 2.0.0.
[![Javadocs][javadoc-image]][javadoc-url]

Expand Down
6 changes: 4 additions & 2 deletions extensions/annotations/README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
OpenTelemetry Extension Annotations
======================================================
# OpenTelemetry Extension Annotations (DEPRECATED)

[![Javadocs][javadoc-image]][javadoc-url]

> **NOTICE**: This artifact is deprecated and its contents have been moved to [opentelemetry-instrumentation-annotations] starting with version 1.17.0. It will not have any changes in the future but will continue to be published as is until 2.0.0.
This module contains various annotations that can be used by clients of OpenTelemetry API.
Please see [Javadocs][javadoc-url] for more information.

[javadoc-image]: https://www.javadoc.io/badge/io.opentelemetry/opentelemetry-extension-annotations.svg
[javadoc-url]: https://www.javadoc.io/doc/io.opentelemetry/opentelemetry-extension-annotations
[opentelemetry-instrumentation-annotations]: https://github.com/open-telemetry/opentelemetry-java-instrumentation/tree/main/instrumentation-annotations
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@
* @see <a href="https://github.com/open-telemetry/opentelemetry-java-instrumentation">OpenTelemetry
* OpenTelemetry Instrumentation for Java</a>
* @since 1.4.0
* @deprecated Moved to {@code
* io.opentelemetry.instrumentation:opentelemetry-instrumentation-annotations:<version>} in
* version 1.17.0+.
*/
@Deprecated
@Target(ElementType.PARAMETER)
@Retention(RetentionPolicy.RUNTIME)
public @interface SpanAttribute {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@
*
* @see <a href="https://github.com/open-telemetry/opentelemetry-java-instrumentation">OpenTelemetry
* OpenTelemetry Instrumentation for Java</a>
* @deprecated Moved to {@code
* io.opentelemetry.instrumentation:opentelemetry-instrumentation-annotations:<version>} in
* version 1.17.0+.
*/
@Deprecated
@Target({ElementType.METHOD, ElementType.CONSTRUCTOR})
@Retention(RetentionPolicy.RUNTIME)
public @interface WithSpan {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* WithSpan} annotation together with some explanations. The goal of this class is to serve as an
* early detection system for inconvenient API and unintended API breakage.
*/
@SuppressWarnings("unused")
@SuppressWarnings({"unused", "deprecation"}) // Testing deprecated code
public class WithSpanUsageExamples {

/**
Expand Down

0 comments on commit 1d63b2a

Please sign in to comment.