Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

subscriber: improve docs on Layer composition #566

Merged
merged 3 commits into from
Feb 4, 2020
Merged

Conversation

hawkw
Copy link
Member

@hawkw hawkw commented Feb 4, 2020

Depends on #564

This commit adds a new section to the Layer docs on how Layers and
Subscribers are composed. Additionally, it updates the docs to prefer
the use of SubscriberExt::with over Layer::with_subscriber.

Additionally, I've fixed how SubscriberExt::with is implemented, so
that Layers may use with_subscriber as a callback for composition.

Closes #452
Closes #505 (IMO)

@hawkw hawkw requested review from yaahc and davidbarsky February 4, 2020 21:04
@hawkw hawkw self-assigned this Feb 4, 2020
hawkw added 2 commits February 4, 2020 13:28
This commit adds a new section to the `Layer` docs on how `Layer`s and
`Subscriber`s are composed. Additionally, it updates the docs to prefer
the use of `SubscriberExt::with` over `Layer::with_subscriber`.

Signed-off-by: Eliza Weisman <[email protected]>
@hawkw hawkw force-pushed the eliza/subscriber-docs branch from 99d7cf8 to 5b6121e Compare February 4, 2020 21:28
Signed-off-by: Eliza Weisman <[email protected]>
@hawkw hawkw merged commit e32012a into master Feb 4, 2020
@hawkw hawkw deleted the eliza/subscriber-docs branch February 4, 2020 22:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make tracing_subscriber::span::{Data, Store, etc} public Document generic S parameter in Layer trait
2 participants