Available on crate feature
tracing
only.Expand description
Attach tracing::Span
s over underlying handlers.
Applies to both Language Servers and Language Clients.
This middleware attaches spans to logs in underlying implementations, with optional method
strings of current processing requests/notifications.
All of these methods are instrumented by the Default
configuration:
Service::poll_ready
.Future::poll
of returnedFuture
fromService::call
.LspService::notify
.LspService::emit
.
Structs§
- Response
Future - The
Future
type used by theTracing
middleware. - Tracing
- The middleware attaching
tracing::Span
s over underlying handlers. - Tracing
Builder - The builder of
Tracing
middleware.
Type Aliases§
- Tracing
Layer - A type alias of
TracingLayer
conforming to the naming convention oftower_layer
.