Skip to content

Commit

Permalink
Update docs to 1.17.0, point to new annotation coordinates (#1642)
Browse files Browse the repository at this point in the history
  • Loading branch information
jack-berg authored Aug 22, 2022
1 parent 4a63260 commit 43d6b7c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions content/en/docs/instrumentation/java/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ using our BOM to keep the versions of the various components in sync.
<dependency>
<groupId>io.opentelemetry</groupId>
<artifactId>opentelemetry-bom</artifactId>
<version>1.16.0</version>
<version>1.17.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand All @@ -65,7 +65,7 @@ using our BOM to keep the versions of the various components in sync.

```kotlin
dependencies {
implementation(platform("io.opentelemetry:opentelemetry-bom:1.16.0"))
implementation(platform("io.opentelemetry:opentelemetry-bom:1.17.0"))
implementation("io.opentelemetry:opentelemetry-api")
}
```
Expand Down
16 changes: 8 additions & 8 deletions content/en/docs/instrumentation/java/automatic/annotations.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@ custom code without doing too much code change.

## Dependencies

You'll need to add a dependency on the `opentelemetry-extension-annotations`
You'll need to add a dependency on the `opentelemetry-instrumentation-annotations`
library to use the `@WithSpan` annotation.

### Maven

```xml
<dependencies>
<dependency>
<groupId>io.opentelemetry</groupId>
<artifactId>opentelemetry-extension-annotations</artifactId>
<version>1.16.0</version>
<groupId>io.opentelemetry.instrumentation</groupId>
<artifactId>opentelemetry-instrumentation-annotations</artifactId>
<version>1.17.0</version>
</dependency>
</dependencies>
```
Expand All @@ -31,7 +31,7 @@ library to use the `@WithSpan` annotation.

```groovy
dependencies {
implementation('io.opentelemetry:opentelemetry-extension-annotations:1.16.0')
implementation('io.opentelemetry.instrumentation:opentelemetry-instrumentation-annotations:1.17.0')
}
```

Expand All @@ -41,7 +41,7 @@ To create a [span](/docs/concepts/signals/traces/#spans-in-opentelemetry)
corresponding to one of your method, annotate the method with `@WithSpan`.

```java
import io.opentelemetry.extension.annotations.WithSpan;
import io.opentelemetry.instrumentation.annotations.WithSpan;

public class MyClass {
@WithSpan
Expand Down Expand Up @@ -82,8 +82,8 @@ be automatically added as
annotating the method parameters with the `@SpanAttribute` annotation.

```java
import io.opentelemetry.extension.annotations.SpanAttribute;
import io.opentelemetry.extension.annotations.WithSpan;
import io.opentelemetry.instrumentation.annotations.SpanAttribute;
import io.opentelemetry.instrumentation.annotations.WithSpan;

public class MyClass {

Expand Down

0 comments on commit 43d6b7c

Please sign in to comment.