Skip to content

Log field for the VU's ID #2361

@codebien

Description

@codebien

Feature Description

In some cases, like this forum question, can be helpful to know which specific VU is executing the code or just know that the logs are generated by one of the VUID == 0 (options resolution, babel transpiler, setup, teardown, handle summary).

This was originally proposed during the Init Context's implementation of the console.log.

Suggested Solution (optional)

And if we can fix the configuration challenges you describe (sob), have proper loggers per-VU, and actually implement #889 and attach (via log.WithFields()) the VU ID to each log message, any user confusion from multiple identical messages will likely disappear.

This suggested solution from the original issue is still a valid option.

Already existing or connected issues / PRs (optional)

#951
#2344 - We want to deprecate common.Bind that is how the console.log is defined. A refactor on that side will be for sure beneficial also for the current issue.

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