struct

Tracing::Directive

Inherits Struct < Value < Object

A single filtering directive.

Ported from upstream filter::env::Directive.

Constructors

new(target : Nil | String, in_span : Nil | String, level : Tracing::Core::LevelFilter, fields : Array(Tracing::FieldMatch) = [] of FieldMatch)
Source
parse(s : String) : self

Parse a directive string of the form: [target][[span_name[{field[=val],...}]]]=level

Source

Instance methods

cares_about?(meta : Metadata) : Bool
Source
fields
Source
in_span
Source
level
Source
target
Source