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

Provide ExecutionModel enum to tail worker #2914

Merged
merged 1 commit into from
Oct 11, 2024
Merged

Provide ExecutionModel enum to tail worker #2914

merged 1 commit into from
Oct 11, 2024

Conversation

fhanau
Copy link
Collaborator

@fhanau fhanau commented Oct 11, 2024

No description provided.

@fhanau fhanau requested a review from mikea October 11, 2024 18:10
@fhanau
Copy link
Collaborator Author

fhanau commented Oct 11, 2024

  • isActor => executionModel

src/workerd/io/trace.c++ Outdated Show resolved Hide resolved
@@ -284,6 +285,10 @@ kj::StringPtr TraceItem::getOutcome() {
return outcome;
}

bool TraceItem::getIsActor() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
bool TraceItem::getIsActor() {
bool TraceItem::getIsActor() const {

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree that we should be doing this, but this is best done as part of a separate cleanup that applies this for all functions in Trace. Let's keep this PR self-contained if possible.

@@ -105,6 +105,7 @@ class TraceItem final: public jsg::Object {

uint getCpuTime();
uint getWallTime();
bool getIsActor();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
bool getIsActor();
bool getIsActor() const;

@fhanau fhanau changed the title Provide isDurableObject boolean to tail worker Provide ExecutionModel enum to tail worker Oct 11, 2024
@fhanau fhanau marked this pull request as ready for review October 11, 2024 21:19
@fhanau fhanau requested review from a team as code owners October 11, 2024 21:19
@fhanau fhanau requested a review from jasnell October 11, 2024 21:20
src/workerd/api/trace.c++ Outdated Show resolved Hide resolved
Copy link
Member

@jasnell jasnell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This'll cause a gnarly merge conflict with my initial streaming trace PR but I guess thats ok ;-) .... LGTM

@fhanau
Copy link
Collaborator Author

fhanau commented Oct 11, 2024

This'll cause a gnarly merge conflict with my initial streaming trace PR but I guess thats ok ;-) .... LGTM

Thank you!

@fhanau fhanau merged commit 39da3c4 into main Oct 11, 2024
13 checks passed
@fhanau fhanau deleted the felix/EW-8737 branch October 11, 2024 21:54
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.

4 participants