|
36 | 36 | //! |
37 | 37 | //! For example: |
38 | 38 | //! - Setting `RUST_LOG=debug` enables all `Span`s and `Event`s |
39 | | -//! set to the log level `DEBUG` or higher |
| 39 | +//! set to the log level `DEBUG` or higher |
40 | 40 | //! - Setting `RUST_LOG=my_crate=trace` enables `Span`s and `Event`s |
41 | | -//! in `my_crate` at all log levels |
| 41 | +//! in `my_crate` at all log levels |
42 | 42 | //! |
43 | 43 | //! **Note**: This should **not** be called by libraries. Libraries should use |
44 | 44 | //! [`tracing`] to publish `tracing` `Event`s. |
@@ -568,22 +568,22 @@ where |
568 | 568 | /// The following options are available: |
569 | 569 | /// |
570 | 570 | /// - `FmtSpan::NONE`: No events will be synthesized when spans are |
571 | | - /// created, entered, exited, or closed. Data from spans will still be |
572 | | - /// included as the context for formatted events. This is the default. |
| 571 | + /// created, entered, exited, or closed. Data from spans will still be |
| 572 | + /// included as the context for formatted events. This is the default. |
573 | 573 | /// - `FmtSpan::NEW`: An event will be synthesized when spans are created. |
574 | 574 | /// - `FmtSpan::ENTER`: An event will be synthesized when spans are entered. |
575 | 575 | /// - `FmtSpan::EXIT`: An event will be synthesized when spans are exited. |
576 | 576 | /// - `FmtSpan::CLOSE`: An event will be synthesized when a span closes. If |
577 | | - /// [timestamps are enabled][time] for this formatter, the generated |
578 | | - /// event will contain fields with the span's _busy time_ (the total |
579 | | - /// time for which it was entered) and _idle time_ (the total time that |
580 | | - /// the span existed but was not entered). |
| 577 | + /// [timestamps are enabled][time] for this formatter, the generated |
| 578 | + /// event will contain fields with the span's _busy time_ (the total |
| 579 | + /// time for which it was entered) and _idle time_ (the total time that |
| 580 | + /// the span existed but was not entered). |
581 | 581 | /// - `FmtSpan::ACTIVE`: An event will be synthesized when spans are entered |
582 | | - /// or exited. |
| 582 | + /// or exited. |
583 | 583 | /// - `FmtSpan::FULL`: Events will be synthesized whenever a span is |
584 | | - /// created, entered, exited, or closed. If timestamps are enabled, the |
585 | | - /// close event will contain the span's busy and idle time, as |
586 | | - /// described above. |
| 584 | + /// created, entered, exited, or closed. If timestamps are enabled, the |
| 585 | + /// close event will contain the span's busy and idle time, as |
| 586 | + /// described above. |
587 | 587 | /// |
588 | 588 | /// The options can be enabled in any combination. For instance, the following |
589 | 589 | /// will synthesize events whenever spans are created and closed: |
|
0 commit comments