Available on crate features registry and std only.
Expand description
Uniquely identifies an individual Filter instance in the context of
a Subscriber.
When adding a FilteredLayer to a Subscriber, the Subscriber
generates a FilterId for that Filtered layer. The Filtered layer
will then use the generated ID to query whether a particular span was
previously enabled by that layer’s Filter.
Note: Currently, the Registry type provided by this crate is the
onlySubscriber implementation capable of participating in per-layer
filtering. Therefore, the FilterId type cannot currently be constructed by
code outside of tracing-subscriber. In the future, new APIs will be added to tracing-subscriber to
allow non-Registry Subscribers to also participate in per-layer
filtering. When those APIs are added, subscribers will be responsible
for generating and assigning FilterIds.