Skip to content

Generate Spans for jobs in multi-job flows #289

@fitz-vivodyne

Description

@fitz-vivodyne

Is your feature request related to a problem? Please describe.

I'm testing out the project on a multi-job workflow.
Following the documentation in the README appears to only create the init events.

This leaves you with a trace that only has a few sparse init events along a very empty timeline.

Describe the solution you'd like

Generate spans for each job within a multi-workflow build

Describe alternatives you've considered

Alternatively you could add manual instrumentation to each job in the workflow, but that adds more repetitive noise.

Additional context
It looks like the postRun code is only called if the trace is supposed to end:

if (!isPost) {
run()
} else if (isPost && endTrace) {
runPost()
}

I'm thinking there should always be a post run function to close a span, but conditionally close the trace.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions