Skip to content

Commit 6ca1482

Browse files
authored
Update Core (#302)
1 parent c00f40a commit 6ca1482

File tree

26 files changed

+361
-107
lines changed

26 files changed

+361
-107
lines changed

temporalio/Cargo.lock

Lines changed: 247 additions & 71 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

temporalio/Cargo.toml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,11 @@ license-file = "LICENSE"
1313

1414
[workspace.dependencies]
1515
derive_builder = "0.20"
16-
derive_more = { version = "1.0", features = [
17-
"constructor",
18-
"display",
19-
"from",
20-
"into",
21-
"debug",
22-
] }
16+
derive_more = { version = "2.0", features = ["constructor", "display", "from", "into", "debug", "try_into"] }
2317
thiserror = "2"
24-
tonic = "0.12"
25-
tonic-build = "0.12"
26-
opentelemetry = { version = "0.29", features = ["metrics"] }
18+
tonic = "0.13"
19+
tonic-build = "0.13"
20+
opentelemetry = { version = "0.30", features = ["metrics"] }
2721
prost = "0.13"
2822
prost-types = "0.13"
2923

temporalio/ext/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ temporal-client = { version = "0.1.0", path = "./sdk-core/client" }
1919
temporal-sdk-core = { version = "0.1.0", path = "./sdk-core/core", features = ["ephemeral-server"] }
2020
temporal-sdk-core-api = { version = "0.1.0", path = "./sdk-core/core-api" }
2121
temporal-sdk-core-protos = { version = "0.1.0", path = "./sdk-core/sdk-core-protos" }
22-
tokio = "1.26"
22+
tokio = "1.37"
2323
tokio-stream = "0.1"
2424
tokio-util = "0.7"
25-
tonic = "0.12"
25+
tonic = "0.13"
2626
tracing = "0.1"
2727
url = "2.2"

temporalio/ext/sdk-core

Submodule sdk-core updated 122 files

temporalio/ext/src/client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ impl Client {
102102
.client_version(options.member::<String>(id!("client_version"))?)
103103
.headers(Some(options.member(id!("rpc_metadata"))?))
104104
.api_key(options.member(id!("api_key"))?)
105-
.identity(options.member(id!("identity"))?);
105+
.identity(options.member::<String>(id!("identity"))?);
106106
if let Some(tls) = tls {
107107
opts_build.tls_cfg(TlsConfig {
108108
client_tls_config: match (

temporalio/ext/src/client_rpc_generated.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@ impl Client {
227227
WorkflowService,
228228
list_worker_deployments
229229
),
230+
"list_workers" => rpc_call!(self, callback, call, WorkflowService, list_workers),
230231
"list_workflow_executions" => rpc_call!(
231232
self,
232233
callback,
@@ -284,6 +285,13 @@ impl Client {
284285
WorkflowService,
285286
record_activity_task_heartbeat_by_id
286287
),
288+
"record_worker_heartbeat" => rpc_call!(
289+
self,
290+
callback,
291+
call,
292+
WorkflowService,
293+
record_worker_heartbeat
294+
),
287295
"register_namespace" => {
288296
rpc_call!(self, callback, call, WorkflowService, register_namespace)
289297
}

temporalio/ext/src/metric.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -169,28 +169,28 @@ trait Instrument: Send + Sync {
169169
fn record_value(&self, value: Value, attrs: &metrics::MetricAttributes) -> Result<(), Error>;
170170
}
171171

172-
impl Instrument for Arc<dyn metrics::Counter> {
172+
impl Instrument for metrics::Counter {
173173
fn record_value(&self, value: Value, attrs: &metrics::MetricAttributes) -> Result<(), Error> {
174174
self.add(TryConvert::try_convert(value)?, attrs);
175175
Ok(())
176176
}
177177
}
178178

179-
impl Instrument for Arc<dyn metrics::Histogram> {
179+
impl Instrument for metrics::Histogram {
180180
fn record_value(&self, value: Value, attrs: &metrics::MetricAttributes) -> Result<(), Error> {
181181
self.record(TryConvert::try_convert(value)?, attrs);
182182
Ok(())
183183
}
184184
}
185185

186-
impl Instrument for Arc<dyn metrics::HistogramF64> {
186+
impl Instrument for metrics::HistogramF64 {
187187
fn record_value(&self, value: Value, attrs: &metrics::MetricAttributes) -> Result<(), Error> {
188188
self.record(TryConvert::try_convert(value)?, attrs);
189189
Ok(())
190190
}
191191
}
192192

193-
impl Instrument for Arc<dyn metrics::HistogramDuration> {
193+
impl Instrument for metrics::HistogramDuration {
194194
fn record_value(&self, value: Value, attrs: &metrics::MetricAttributes) -> Result<(), Error> {
195195
let secs = f64::try_convert(value)?;
196196
if secs < 0.0 {
@@ -201,14 +201,14 @@ impl Instrument for Arc<dyn metrics::HistogramDuration> {
201201
}
202202
}
203203

204-
impl Instrument for Arc<dyn metrics::Gauge> {
204+
impl Instrument for metrics::Gauge {
205205
fn record_value(&self, value: Value, attrs: &metrics::MetricAttributes) -> Result<(), Error> {
206206
self.record(TryConvert::try_convert(value)?, attrs);
207207
Ok(())
208208
}
209209
}
210210

211-
impl Instrument for Arc<dyn metrics::GaugeF64> {
211+
impl Instrument for metrics::GaugeF64 {
212212
fn record_value(&self, value: Value, attrs: &metrics::MetricAttributes) -> Result<(), Error> {
213213
self.record(TryConvert::try_convert(value)?, attrs);
214214
Ok(())

temporalio/lib/temporalio/api/batch/v1/message.rb

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

temporalio/lib/temporalio/api/command/v1/message.rb

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

temporalio/lib/temporalio/api/common/v1/message.rb

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)