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

Streaming Trace, Part 2: simplify PipelineTracer to remove parentTracer #2925

Open
wants to merge 28 commits into
base: jsnell/stream-trace-workers-part-1
Choose a base branch
from

Conversation

jasnell
Copy link
Member

@jasnell jasnell commented Oct 15, 2024

Remove the PipelineTracer parent tracer. The onComplete promise can be used to track the completion of the pipeline to report to the parent instead. The parent tracer is not used in workerd at all.

Builds on #2852

@jasnell jasnell requested review from jclee and anonrig October 15, 2024 00:19
@jasnell jasnell requested review from a team as code owners October 15, 2024 00:19
@jasnell jasnell requested review from erikcorry and removed request for a team October 15, 2024 00:19
@jasnell jasnell changed the title Start restructuring the io/trace.h to prepare for streaming trace Streaming Trace, Part 2: simplify PipelineTracer to remove parentTracer Oct 15, 2024
@jasnell jasnell force-pushed the jsnell/stream-trace-workers-part-1 branch from 8b93a32 to 0860b64 Compare October 15, 2024 03:02
@jasnell jasnell force-pushed the jsnell/stream-trace-workers-part-2 branch from 7fa71b9 to c792f66 Compare October 15, 2024 22:33
@jasnell jasnell force-pushed the jsnell/stream-trace-workers-part-1 branch from 0860b64 to aa9c7b6 Compare October 16, 2024 14:03
@jasnell jasnell force-pushed the jsnell/stream-trace-workers-part-1 branch from b8c312d to 3d7994a Compare October 16, 2024 18:23
@jasnell jasnell force-pushed the jsnell/stream-trace-workers-part-2 branch from c792f66 to 05de79d Compare October 16, 2024 18:51

// We'll create a WorkerTracer if, and only if, there are tail workers configured.
auto maybeWorkerTracer = ([&]() -> kj::Maybe<kj::Own<WorkerTracer>> {
if (loggingServices.size() > 0) {
Copy link
Member

Choose a reason for hiding this comment

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

Can we handle the negative case first and simplify the indentation

@jasnell jasnell force-pushed the jsnell/stream-trace-workers-part-2 branch from 05de79d to 7c4d2ae Compare October 16, 2024 19:26
No need to express it explicitly. Can be inferred if necessary
based on span outcome.
@jasnell jasnell force-pushed the jsnell/stream-trace-workers-part-1 branch from 1412c58 to fb23d06 Compare October 16, 2024 19:30
@jasnell jasnell force-pushed the jsnell/stream-trace-workers-part-2 branch from 7c4d2ae to da69a9d Compare October 16, 2024 19:32
Remove the PipelineTracer parent tracer. The onComplete promise
can be used to track the completion of the pipeline to report
to the parent instead. The parent tracer is not used in workerd
at all.
@jasnell jasnell force-pushed the jsnell/stream-trace-workers-part-2 branch from da69a9d to d9ff07e Compare October 16, 2024 20:21
@jasnell jasnell force-pushed the jsnell/stream-trace-workers-part-1 branch 2 times, most recently from 463db3b to af4a3ff Compare October 18, 2024 18:24
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