restatedev / restatedev/sdk-rust

Improve suspension logging

Open
#38 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Rust
Stars
85
Forks
27
Avg merge
6d 20h
Merged PRs (30d)
2

Description

I got these log messages when my Rust handler suspended:

2025-01-14T16:15:20.973864Z  WARN restate_sdk::endpoint::futures::handler_state_aware: Error while processing handler Suspended rpc.system="restate" rpc.service=SignupWorkflow rpc.method=run
2025-01-14T16:15:20.973983Z  WARN restate_sdk::hyper: Handler failure: Error(Suspended)

Is there a way to remove the words Error here? It seems as if something went wrong instead of right.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by searching the logging paths shown in the report: restate_sdk::endpoint::futures::handler_state_aware and restate_sdk::hyper. Reproduce a suspended Rust handler and inspect how its status is formatted; done means suspension logs no longer present it as an error while genuine failures retain error wording.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
observability
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.