Skip to content

Commit

Permalink
Update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-fowler committed Dec 14, 2023
1 parent 620fd44 commit 6968f7e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Sources/Hummingbird/Middleware/TracingMiddleware.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ public struct HBTracingMiddleware<Context: HBBaseRequestContext>: HBMiddleware {
///
/// - Parameters
/// - recordingHeaders: A list of HTTP header names to be recorded as span attributes. By default, no headers
/// - parameters: A list of static parameters added to every span. These could be
/// are being recorded.
/// are being recorded.
/// - parameters: A list of static parameters added to every span. These could be the "net.host.name",
/// "net.host.port" or "http.scheme"
public init(recordingHeaders headerNamesToRecord: some Collection<HTTPField.Name> = [], attributes: SpanAttributes? = nil) {
self.headerNamesToRecord = Set(headerNamesToRecord.map(RecordingHeader.init))
self.attributes = attributes
Expand Down

0 comments on commit 6968f7e

Please sign in to comment.