From 7b93c3c78e51639590ca431658e4394f51f9b0d1 Mon Sep 17 00:00:00 2001 From: Rajasekharan Vengalil Date: Tue, 14 Jan 2020 18:05:14 -0800 Subject: [PATCH] Remove reference to MakeSpan from docs --- actix-tracing/src/lib.rs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/actix-tracing/src/lib.rs b/actix-tracing/src/lib.rs index beb48dad..35c85286 100644 --- a/actix-tracing/src/lib.rs +++ b/actix-tracing/src/lib.rs @@ -99,11 +99,8 @@ where /// Wraps the provided service factory with a transform that automatically /// enters/exits the given span. /// -/// The span to be entered/exited can be provided via an implementation of -/// the [`MakeSpan`] trait. A blanket implementation of [`MakeSpan`] for -/// `Fn(&T) -> Option` allows you to pass a closure for the `make_span` -/// argument. The closure is passed in a reference to the request being -/// handled by the service. +/// The span to be entered/exited can be provided via a closure. The closure +/// is passed in a reference to the request being handled by the service. /// /// For example: /// ```rust,ignore @@ -112,8 +109,6 @@ where /// |req: &Request| Some(span!(Level::INFO, "request", req.id)) /// ); /// ``` -/// -/// [`MakeSpan`]: trait.MakeSpan.html pub fn trace( service_factory: U, make_span: F,