Azure / Azure/azure-sdk-tools

[Python APIView] The "@distributed_trace" decorator line has no lineId

Open
#11,171 0 comments 0 reactions 1 assignee Claimed by @swathipil View on GitHub
APIView bug Python
Dominant language
C#
Stars
135
Forks
260
Avg merge
3d 2h
Merged PRs (30d)
130

Description

See: https://github.com/Azure/azure-sdk-tools/issues/11170

In that issue, copilot created a comment about the use of the distributed trace decorator on line 55. However, that line was not assigned a lineId by the Python parser and thus, from APIView's perspective, is not commentable. The fixes described in #11170 will result in that comment being "lost". The only way for it to be restored is if the Python parser sends a unique lineId.

I'm not sure if this pertains to all decorators (but I would assume so?).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.