Skip to content
Merged
Show file tree
Hide file tree
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
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ to docs, or any other relevant information.
* `client()` and `workflow_handle()` helpers to `ActivityContext` for easily obtaining a Temporal client
* Exposed `backoff_start_interval` when continuing as new, which will delay the first task of the
continued workflow by the configured interval.
* The `tls-ring` / `tls-aws-lc` features now also select the TLS crypto backend for the OTLP metric
exporter (in addition to the gRPC service client). Previously the OTLP exporter hardcoded the `ring`
backend regardless of the selected feature, which prevented producing a `ring`-free, `aws-lc-rs`-only
(FIPS-capable) build. Building with `--no-default-features --features tls-aws-lc,otel` now yields a
dependency tree free of `ring`.

### Breaking Changes
* The `ActivityContext` constructor now requires `ClientOptions`.
Expand Down
15 changes: 12 additions & 3 deletions crates/common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,17 @@ categories = ["development-tools"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[features]
otel = ["dep:opentelemetry", "dep:opentelemetry_sdk", "dep:opentelemetry-otlp"]
otel = ["dep:opentelemetry", "dep:opentelemetry_sdk", "dep:opentelemetry-otlp", "dep:reqwest"]
tls-ring = [
"opentelemetry-otlp?/tls-ring",
"opentelemetry-otlp?/reqwest-rustls",
"tonic/tls-native-roots",
]
tls-aws-lc = [
"opentelemetry-otlp?/tls-aws-lc",
"tonic/tls-native-roots",
"reqwest?/rustls-tls-native-roots-no-provider",
]
prometheus = [
"dep:prometheus",
"dep:hyper",
Expand Down Expand Up @@ -55,13 +65,12 @@ opentelemetry_sdk = { version = "0.31", default-features = false, features = [
opentelemetry-otlp = { version = "0.31", default-features = false, features = [
"tokio",
"metrics",
"tls-roots",
"http-proto",
"grpc-tonic",
"reqwest-blocking-client",
"reqwest-rustls",
], optional = true }
parking_lot = { version = "0.12" }
reqwest = { version = "0.12", default-features = false, optional = true }
prometheus = { version = "0.14", optional = true, default-features = false }
ringbuf = { version = "0.5", optional = true }
serde = { version = "1.0", features = ["derive"] }
Expand Down
17 changes: 13 additions & 4 deletions crates/sdk-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,19 @@ rust-version = "1.88.0"

[features]
default = ["envconfig", "prometheus", "tls-ring"]
tls-ring = ["temporalio-client/tls-ring"]
tls-aws-lc = ["temporalio-client/tls-aws-lc"]
tls-ring = [
"temporalio-client/tls-ring",
"temporalio-common/tls-ring",
"opentelemetry-otlp?/tls-ring",
"opentelemetry-otlp?/reqwest-rustls",
"tonic/tls-native-roots",
]
tls-aws-lc = [
"temporalio-client/tls-aws-lc",
"temporalio-common/tls-aws-lc",
"opentelemetry-otlp?/tls-aws-lc",
"tonic/tls-native-roots",
]
envconfig = ["temporalio-client/envconfig", "temporalio-common/envconfig"]
prometheus = ["temporalio-common/prometheus"]
otel = [
Expand Down Expand Up @@ -67,11 +78,9 @@ opentelemetry_sdk = { version = "0.31", default-features = false, features = [
opentelemetry-otlp = { version = "0.31", default-features = false, features = [
"tokio",
"metrics",
"tls-roots",
"http-proto",
"grpc-tonic",
"reqwest-blocking-client",
"reqwest-rustls",
], optional = true }
parking_lot = { version = "0.12" }
pid = "4.0"
Expand Down
Loading