DiamondLightSource / DiamondLightSource/observability-utils
Current span decorator obscures type hints for vscode
- Dominant language
- Python
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
When I have a function decorated with `@start_as_current_span`, vscode cannot see or autofill its type hints, see screenshot below:

The referenced function

When I remove the `@start_as_current_span` decorator I can see the type hints and vscode autofills them:

## Steps To Reproduce
Steps to reproduce the behaviour:
1. Decorate a function with `@start_as_current_span`
2. Call it somewhere else
3. Hover over the call in vscode
## Acceptance Criteria
- Decorated functions look like the bottom screenshot
- Regression test
Contributor guide
Assessment
This issue has not been assessed yet.