Skip to content
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

Nest getActor tracing spans under "actor_subrequest" spans #1105

Merged
merged 2 commits into from
Sep 1, 2023

Conversation

jclee
Copy link
Contributor

@jclee jclee commented Aug 31, 2023

Modify actor channel setup to let getActor tracing spans appear nested under actor_subrequest spans, instead of under the context's "current" span

This change does have the side effect of skipping the lazy actor stub initialization if an intervening step of the fetcher setup fails (e.g. when the worker is over request limits), but I think this is unlikely to have user-visible behavior, and may in fact be desirable, in that it avoids unnecessary getActor() calls.

src/workerd/api/actor.c++ Outdated Show resolved Hide resolved
src/workerd/api/actor.c++ Outdated Show resolved Hide resolved
@jclee jclee force-pushed the jlee/tweak-getactor-nesting branch from 910774b to 550a880 Compare August 31, 2023 20:36
…d under "actor_subrequest" spans

This does have the side effect of skipping the lazy actor stub initialization
if an intervening step of the fetcher setup fails (e.g. when the worker is over
request limits), but I think this is unlikely to have user-visible behavior,
and may in fact be desirable, in that it avoids unnecessary getActor() calls.
@jclee jclee force-pushed the jlee/tweak-getactor-nesting branch from 550a880 to eb24505 Compare September 1, 2023 18:16
@jclee jclee merged commit 436ab3a into main Sep 1, 2023
@jclee jclee deleted the jlee/tweak-getactor-nesting branch September 1, 2023 22:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants