Skip to content

Commit f4eebeb

Browse files
committed
Enable libcnb tracing
This enables `libcnb`'s `trace` feature, which means traces, spans, and events are written to OpenTelemetry export files on disk in the ephemeral build container, which can then be read by the Heroku build system or when debugging locally with Pack (so long as a suitable `--volume` mount has been configured). See: heroku/libcnb.rs#723 Closes #768. GUS-W-15148616.
1 parent 95dacb5 commit f4eebeb

File tree

13 files changed

+729
-190
lines changed

13 files changed

+729
-190
lines changed

Cargo.lock

+692-173
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

buildpacks/gradle/CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Changed
11+
12+
- Enabled `libcnb`'s `trace` feature. ([#779](https://github.com/heroku/buildpacks-jvm/pull/779))
13+
1014
## [6.0.4] - 2024-12-05
1115

1216
- No changes.

buildpacks/gradle/Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ workspace = true
99
[dependencies]
1010
buildpacks-jvm-shared.workspace = true
1111
indoc = "2"
12-
libcnb = "=0.26.0"
13-
libherokubuildpack = { version = "=0.26.0", default-features = false, features = ["command", "error", "log"] }
12+
libcnb = { version = "=0.27.0", features = ["trace"] }
13+
libherokubuildpack = { version = "=0.27.0", default-features = false, features = ["command", "error", "log"] }
1414
nom = "7"
1515
serde = { version = "1", features = ["derive"] }
1616

1717
[dev-dependencies]
1818
buildpacks-jvm-shared-test.workspace = true
19-
libcnb-test = "=0.26.0"
19+
libcnb-test = "=0.27.0"

buildpacks/jvm-function-invoker/CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Changed
11+
12+
- Enabled `libcnb`'s `trace` feature. ([#779](https://github.com/heroku/buildpacks-jvm/pull/779))
13+
1014
## [6.0.4] - 2024-12-05
1115

1216
- No changes.

buildpacks/jvm-function-invoker/Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ workspace = true
88

99
[dependencies]
1010
indoc = "2"
11-
libcnb = "=0.26.0"
12-
libherokubuildpack = { version = "=0.26.0", default-features = false, features = ["digest", "download", "error", "log", "toml"] }
11+
libcnb = { version = "=0.27.0", features = ["trace"] }
12+
libherokubuildpack = { version = "=0.27.0", default-features = false, features = ["digest", "download", "error", "log", "toml"] }
1313
serde = "1"
1414
thiserror = "2"
1515
toml = "0.8"
1616

1717
[dev-dependencies]
1818
base64 = "0.22"
1919
buildpacks-jvm-shared-test.workspace = true
20-
libcnb-test = "=0.26.0"
20+
libcnb-test = "=0.27.0"
2121
tempfile = "3"
2222
ureq = { version = "2", default-features = false, features = ["tls"] }

buildpacks/jvm/CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Changed
11+
12+
- Enabled `libcnb`'s `trace` feature. ([#779](https://github.com/heroku/buildpacks-jvm/pull/779))
13+
1014
### Fixed
1115

1216
- JDK overlays are now properly sourced from the `.jdk-overlay` directory instead of `.jdk_overlay`. ([#763](https://github.com/heroku/buildpacks-jvm/pull/763))

buildpacks/jvm/Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ workspace = true
1010
buildpacks-jvm-shared.workspace = true
1111
fs_extra = "1"
1212
indoc = "2"
13-
libcnb = "=0.26.0"
14-
libherokubuildpack = { version = "=0.26.0", default-features = false, features = ["digest", "download", "error", "inventory", "inventory-sha2", "log", "tar"] }
13+
libcnb = { version = "=0.27.0", features = ["trace"] }
14+
libherokubuildpack = { version = "=0.27.0", default-features = false, features = ["digest", "download", "error", "inventory", "inventory-sha2", "log", "tar"] }
1515
serde = { version = "1", features = ["derive"] }
1616
tempfile = "3"
1717
url = "2"
@@ -23,4 +23,4 @@ toml = "0.8"
2323

2424
[dev-dependencies]
2525
buildpacks-jvm-shared-test.workspace = true
26-
libcnb-test = "=0.26.0"
26+
libcnb-test = "=0.27.0"

buildpacks/maven/CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Changed
11+
12+
- Enabled `libcnb`'s `trace` feature. ([#779](https://github.com/heroku/buildpacks-jvm/pull/779))
13+
1014
## [6.0.4] - 2024-12-05
1115

1216
- No changes.

buildpacks/maven/Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ workspace = true
1010
buildpacks-jvm-shared.workspace = true
1111
flate2 = { version = "1", default-features = false, features = ["zlib"] }
1212
indoc = "2"
13-
libcnb = "=0.26.0"
14-
libherokubuildpack = { version = "=0.26.0", default-features = false, features = ["digest", "download", "error", "log"] }
13+
libcnb = { version = "=0.27.0", features = ["trace"] }
14+
libherokubuildpack = { version = "=0.27.0", default-features = false, features = ["digest", "download", "error", "log"] }
1515
regex = "1"
1616
serde = { version = "1", features = ["derive"] }
1717
shell-words = "1"
@@ -21,4 +21,4 @@ tempfile = "3"
2121
[dev-dependencies]
2222
buildpacks-jvm-shared-test.workspace = true
2323
java-properties = "2"
24-
libcnb-test = "=0.26.0"
24+
libcnb-test = "=0.27.0"

buildpacks/sbt/CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Changed
11+
12+
- Enabled `libcnb`'s `trace` feature. ([#779](https://github.com/heroku/buildpacks-jvm/pull/779))
13+
1014
## [6.0.4] - 2024-12-05
1115

1216
- No changes.

buildpacks/sbt/Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ workspace = true
1010
buildpacks-jvm-shared.workspace = true
1111
indoc = "2"
1212
java-properties = "2"
13-
libcnb = "=0.26.0"
14-
libherokubuildpack = { version = "=0.26.0", default-features = false, features = ["command", "error", "log"] }
13+
libcnb = { version = "=0.27.0", features = ["trace"] }
14+
libherokubuildpack = { version = "=0.27.0", default-features = false, features = ["command", "error", "log"] }
1515
semver = { version = "1", features = ["serde"] }
1616
serde = { version = "1", features = ["derive"] }
1717
shell-words = "1"
1818

1919
[dev-dependencies]
2020
buildpacks-jvm-shared-test.workspace = true
21-
libcnb-test = "=0.26.0"
21+
libcnb-test = "=0.27.0"
2222
tempfile = "3"
2323
ureq = { version = "2", default-features = false, features = ["tls"] }

shared-test/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ workspace = true
88

99
[dependencies]
1010
exponential-backoff = "2"
11-
libcnb-test = "=0.26.0"
11+
libcnb-test = "=0.27.0"
1212
ureq = { version = "2", default-features = false, features = ["tls"] }

shared/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ workspace = true
99
[dependencies]
1010
indoc = "2"
1111
java-properties = "2"
12-
libherokubuildpack = { version = "=0.26.0", default-features = false, features = ["log"] }
12+
libherokubuildpack = { version = "=0.27.0", default-features = false, features = ["log"] }

0 commit comments

Comments
 (0)