Initializerhummingbird 2.15.0Hummingbird
init(recordingHeaders:attributes:)
Intialize a new TracingMiddleware.
init(recordingHeaders headerNamesToRecord: some Collection<HTTPField.Name> = [], attributes: SpanAttributes? = nil) Parameters
A list of static parameters added to every span. These could be the “net.host.name”, “net.host.port” or “http.scheme”
Parameters
recordingHeaders: A list of HTTP header names to be recorded as span attributes. By default, no headers are being recorded.