Rust: add verbosity and flamegraph as extractor options

This commit is contained in:
Arthur Baars
2025-02-12 11:49:10 +01:00
parent 64f0908d0d
commit 18cf39d063
3 changed files with 35 additions and 5 deletions

View File

@@ -54,3 +54,27 @@ options:
Comma-separated list of cfg settings to enable, or disable if prefixed with `-`.
Can be repeated.
type: array
logging:
title: Options pertaining to logging.
type: object
properties:
verbosity:
title: Extractor logging verbosity level.
description: >
Controls the level of verbosity of the extractor.
The supported levels are (in order of increasing verbosity):
- off
- errors
- warnings
- info or progress
- debug or progress+
- trace or progress++
- progress+++
type: string
pattern: "^(off|errors|warnings|(info|progress)|(debug|progress\\+)|(trace|progress\\+\\+)|progress\\+\\+\\+)$"
flamegraph:
title: "[Experimental] File path for write flame graph log"
description: >
Collect flame graph data using the `tracing-flame` crate. To render a flame graph
or chart, run the `inferno-flamegraph` command. See also: https://crates.io/crates/tracing-flame
type: string