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
318 changes: 247 additions & 71 deletions temporalio/Cargo.lock

Large diffs are not rendered by default.

14 changes: 4 additions & 10 deletions temporalio/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,11 @@ license-file = "LICENSE"

[workspace.dependencies]
derive_builder = "0.20"
derive_more = { version = "1.0", features = [
"constructor",
"display",
"from",
"into",
"debug",
] }
derive_more = { version = "2.0", features = ["constructor", "display", "from", "into", "debug", "try_into"] }
thiserror = "2"
tonic = "0.12"
tonic-build = "0.12"
opentelemetry = { version = "0.29", features = ["metrics"] }
tonic = "0.13"
tonic-build = "0.13"
opentelemetry = { version = "0.30", features = ["metrics"] }
prost = "0.13"
prost-types = "0.13"

Expand Down
4 changes: 2 additions & 2 deletions temporalio/ext/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ temporal-client = { version = "0.1.0", path = "./sdk-core/client" }
temporal-sdk-core = { version = "0.1.0", path = "./sdk-core/core", features = ["ephemeral-server"] }
temporal-sdk-core-api = { version = "0.1.0", path = "./sdk-core/core-api" }
temporal-sdk-core-protos = { version = "0.1.0", path = "./sdk-core/sdk-core-protos" }
tokio = "1.26"
tokio = "1.37"
tokio-stream = "0.1"
tokio-util = "0.7"
tonic = "0.12"
tonic = "0.13"
tracing = "0.1"
url = "2.2"
2 changes: 1 addition & 1 deletion temporalio/ext/sdk-core
Submodule sdk-core updated 122 files
2 changes: 1 addition & 1 deletion temporalio/ext/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ impl Client {
.client_version(options.member::<String>(id!("client_version"))?)
.headers(Some(options.member(id!("rpc_metadata"))?))
.api_key(options.member(id!("api_key"))?)
.identity(options.member(id!("identity"))?);
.identity(options.member::<String>(id!("identity"))?);
if let Some(tls) = tls {
opts_build.tls_cfg(TlsConfig {
client_tls_config: match (
Expand Down
8 changes: 8 additions & 0 deletions temporalio/ext/src/client_rpc_generated.rs
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ impl Client {
WorkflowService,
list_worker_deployments
),
"list_workers" => rpc_call!(self, callback, call, WorkflowService, list_workers),
"list_workflow_executions" => rpc_call!(
self,
callback,
Expand Down Expand Up @@ -284,6 +285,13 @@ impl Client {
WorkflowService,
record_activity_task_heartbeat_by_id
),
"record_worker_heartbeat" => rpc_call!(
self,
callback,
call,
WorkflowService,
record_worker_heartbeat
),
"register_namespace" => {
rpc_call!(self, callback, call, WorkflowService, register_namespace)
}
Expand Down
12 changes: 6 additions & 6 deletions temporalio/ext/src/metric.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,28 +169,28 @@ trait Instrument: Send + Sync {
fn record_value(&self, value: Value, attrs: &metrics::MetricAttributes) -> Result<(), Error>;
}

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

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

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

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

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

impl Instrument for Arc<dyn metrics::GaugeF64> {
impl Instrument for metrics::GaugeF64 {
fn record_value(&self, value: Value, attrs: &metrics::MetricAttributes) -> Result<(), Error> {
self.record(TryConvert::try_convert(value)?, attrs);
Ok(())
Expand Down
2 changes: 1 addition & 1 deletion temporalio/lib/temporalio/api/batch/v1/message.rb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion temporalio/lib/temporalio/api/command/v1/message.rb

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion temporalio/lib/temporalio/api/common/v1/message.rb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading