Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update docs to 1.17.0, point to new annotation coordinates #1642

Merged
merged 1 commit into from
Aug 22, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Update docs to 1.17.0, point to new annotation coordinates
jack-berg committed Aug 22, 2022
commit a42209128be2a2aca58b290b2583d06a46f8683b
4 changes: 2 additions & 2 deletions content/en/docs/instrumentation/java/_index.md
Original file line number Diff line number Diff line change
@@ -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>
@@ -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")
}
```
16 changes: 8 additions & 8 deletions content/en/docs/instrumentation/java/automatic/annotations.md
Original file line number Diff line number Diff line change
@@ -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>
chalin marked this conversation as resolved.
Show resolved Hide resolved
</dependency>
</dependencies>
```
@@ -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')
}
```

@@ -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
@@ -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 {