-
Notifications
You must be signed in to change notification settings - Fork 754
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
subscriber: remove
LookupMetadata
trait (#564)
## Motivation The `LookupMetadata` trait was essentially a prototype for `LookupSpan`, and was intended to allow subscribers to implement more granular sets of "registry" behavior. However, in practice, nothing ended up using it and it was generally eclipsed by `LookupSpan`. The model of allowing `Layer` implementations to opt in to more granular capabilities doesn't make a whole lot of sense when there are only two such traits available and one is a more powerful superset of the other. Before we release `tracing-subscriber` 0.2.0, we should try to remove any APIs that aren't necessary, since removing them later is a breaking change. ## Solution Therefore, this commit removes `LookupMetadata`, and rewrites the `Context::metadata` method to use `LookupSpan` to look up the metadata, instead. Signed-off-by: Eliza Weisman <[email protected]>
- Loading branch information
Showing
6 changed files
with
41 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters