bevyengine / bevyengine/bevy

Plugins added before LogPlugin don't have a plugin build tracing span

Open
#20,759 1 comment 0 reactions 0 assignees View on GitHub
A-App A-Diagnostics C-Bug S-Needs-Design
Dominant language
Rust
Stars
48.2k
Forks
4.8k
Avg merge
3d 16h
Merged PRs (30d)
171

Description

## Bevy version and features

- 0.17

## What you did

Recently we added tracing spans for the plugin lifecycle methods. When running `cargo run --example many_foxes -F trace_tracy`, the plugins that are added before and including `LogPlugin::build` are not logged. This is just the `PanicHandlerPlugin` and the `LogPlugin` in `DefaultPlugins`.

I don't think this is easily fixable, but thought it should be noted somewhere.

Contributor guide

Open the contributing guide

Research direction

Run `cargo run --example many_foxes -F trace_tracy` and inspect the plugin lifecycle tracing around `DefaultPlugins`, especially `PanicHandlerPlugin` and `LogPlugin`. Determine whether spans can cover plugins added before `LogPlugin::build`; done means those plugins are represented in the tracing output, or the limitation is documented if it cannot be fixed.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
observability
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.