Skip to content

Commit

Permalink
use alpha to version main instrumentation version
Browse files Browse the repository at this point in the history
  • Loading branch information
breedx-splk committed Oct 24, 2024
1 parent 6f2ec14 commit 265208b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,12 @@ jobs:
else
prior_version="$major.$minor.$((patch - 1))"
fi
inst_version=$(grep ^opentelemetry-alpha gradle/libs.versions.toml | sed -E "s/^.*\"(.*)\"/\1/")
# otel instrumentation version comes in through alpha bom
# inst_version=$(grep ^opentelemetry-alpha gradle/libs.versions.toml | sed -E "s/^.*\"(.*)\"/\1/")
inst_version=$(./gradlew --console=plain android-agent:dependencies | \
grep 'io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom ' | \
sed -e "s/.* -> //" | sed -e "s/ .*//" | \
sort | head -1)
# otel-java core libs are transient deps thru instrumentation boms
sdk_version=$(./gradlew --console=plain android-agent:dependencies | \
grep 'io.opentelemetry:opentelemetry-api ' | \
Expand Down
4 changes: 2 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[versions]
opentelemetry-instrumentation = "2.9.0"
opentelemetry-instrumentation-alpha = "2.9.0-alpha"
#opentelemetry-instrumentation = "2.9.0" // alpha bom includes non-alpha bom
opentelemetry-semconv = "1.25.0-alpha"
opentelemetry-contrib = "1.40.0-alpha"
mockito = "5.14.2"
Expand All @@ -14,8 +14,8 @@ junitKtx = "1.2.1"
autoService = "1.1.1"

[libraries]
opentelemetry-platform = { module = "io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom", version.ref = "opentelemetry-instrumentation" }
opentelemetry-platform-alpha = { module = "io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom-alpha", version.ref = "opentelemetry-instrumentation-alpha" }
opentelemetry-platform = { module = "io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom" }
androidx-navigation-fragment = "androidx.navigation:navigation-fragment:2.7.7"
androidx-core = "androidx.core:core:1.13.1"
androidx-lifecycle-process = "androidx.lifecycle:lifecycle-process:2.8.6"
Expand Down
1 change: 0 additions & 1 deletion instrumentation/startup/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ android {
}

dependencies {
api(platform(libs.opentelemetry.platform))
api(platform(libs.opentelemetry.platform.alpha))
api(libs.opentelemetry.api)
api(project(":core"))
Expand Down

0 comments on commit 265208b

Please sign in to comment.