-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[typing/static] telemetry #12714
[typing/static] telemetry #12714
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ |
Current dependencies on/for this PR:
This comment was auto-generated by Graphite. |
b71064c
to
6bc42eb
Compare
57bf264
to
697b3b1
Compare
6bc42eb
to
a692296
Compare
697b3b1
to
7156bd7
Compare
a692296
to
a7f8aef
Compare
7156bd7
to
cda856f
Compare
d998732
to
5b8fb19
Compare
cda856f
to
e450391
Compare
5b8fb19
to
1863493
Compare
e450391
to
1522a42
Compare
1863493
to
6943b29
Compare
1522a42
to
f55f319
Compare
6943b29
to
ce116aa
Compare
f55f319
to
9ba1fe6
Compare
ce116aa
to
74643fd
Compare
9ba1fe6
to
bc39291
Compare
74643fd
to
62501a3
Compare
69ee389
to
f4f2d4c
Compare
b99ceae
to
52395fe
Compare
f4f2d4c
to
af156ec
Compare
52395fe
to
fbd9a52
Compare
af156ec
to
23e2962
Compare
fbd9a52
to
a947323
Compare
23e2962
to
6b2e9ca
Compare
a947323
to
26dea1e
Compare
6b2e9ca
to
dbe9487
Compare
26dea1e
to
77a7256
Compare
dbe9487
to
b9bc2eb
Compare
77a7256
to
f0430c0
Compare
78cabc6
to
328b2df
Compare
P = ParamSpec("P") | ||
T = TypeVar("T") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would be nice to have some documentation here, or aliases for the chains of callables. Even as someone who has dealt a lot with the telemetry code, finding it very difficult to figure out what I'm looking at.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah this is a bit dense-- the signatures of higher order decorators always are. I think it's considerably clearer when we use the style of our user-facing higher-order decorators, separating the target_fn
and metadata
args.
Unfortunately there's no way around the many uses of Callable[P, T]
here without changing implementation (even then I'm not sure it would work).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would ideally like things to be a bit more readable around @telemetry_wrapper
for example.
328b2df
to
2c02c3d
Compare
2c02c3d
to
05ecb23
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the target_fn bit makes things clearer - appreciated
Summary & Motivation
Pure typing PR for telemetry code.
How I Tested These Changes
BK