restatedev / restatedev/sdk-python

Expose invocation properties in `restate.Context`

Open Beginner friendly
#204 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
81
Forks
22
Avg merge
2d 2h
Merged PRs (30d)
2

Description

restate.server_context.ServerInvocationContext has invocation and handler fields. These are very useful for things like telemetry, logging or adding special handling using invocation IDs. However, these fields are hidden by the restate.Context interface.

Can we publicly expose these two fields on the restate.Context ABC, so that workers or wrapper libraries don't have to access the type of the underlying implementation?

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 with the restate.Context ABC and restate.server_context.ServerInvocationContext, focusing on the existing invocation and handler fields. Expose both through the public context interface and verify that workers or wrapper libraries can access them without depending on the implementation type.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend-api-design
Issue type
Feature
Difficulty
2/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.