Skip to content

Commit

Permalink
Auto-update java instrumentation version (#2568)
Browse files Browse the repository at this point in the history
Co-authored-by: Phillip Carter <[email protected]>
  • Loading branch information
trask and cartermp authored Apr 3, 2023
1 parent 342d91f commit bb15f8e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/auto-update-versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
.github/workflows/scripts/auto-update-version.sh "opentelemetry-collector-releases" "collectorVersion" "content/en/docs/collector/_index.md"
git reset --hard origin/main
.github/workflows/scripts/auto-update-version.sh "opentelemetry-java" "javaVersion" "content/en/docs/instrumentation/java/_index.md"
.github/workflows/scripts/auto-update-version.sh "opentelemetry-java-instrumentation" "javaInstrumentationVersion" "content/en/docs/instrumentation/java/automatic/annotations.md"
env:
# change this to secrets.GITHUB_TOKEN when testing against a fork
GH_TOKEN: ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }}
6 changes: 3 additions & 3 deletions content/en/docs/instrumentation/java/automatic/annotations.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: Annotations
description: Using instrumentation annotations with a Java agent.
aliases: [/docs/instrumentation/java/annotations]
weight: 4
javaAnnotationsVersion: 1.24.0
javaInstrumentationVersion: 1.24.0
---

For most users, the out-of-the-box instrumentation is completely sufficient and
Expand All @@ -24,7 +24,7 @@ annotation.
<dependency>
<groupId>io.opentelemetry.instrumentation</groupId>
<artifactId>opentelemetry-instrumentation-annotations</artifactId>
<version>{{% param javaAnnotationsVersion %}}</version>
<version>{{% param javaInstrumentationVersion %}}</version>
</dependency>
</dependencies>
```
Expand All @@ -33,7 +33,7 @@ annotation.

```groovy
dependencies {
implementation('io.opentelemetry.instrumentation:opentelemetry-instrumentation-annotations:{{% param javaAnnotationsVersion %}}')
implementation('io.opentelemetry.instrumentation:opentelemetry-instrumentation-annotations:{{% param javaInstrumentationVersion %}}')
}
```

Expand Down

0 comments on commit bb15f8e

Please sign in to comment.