Skip to content

Commit 1b94e54

Browse files
authored
Update docs
1 parent 80128bf commit 1b94e54

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Sources/InstanaAgent/Instana.swift

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -372,14 +372,13 @@ import Foundation
372372
}
373373

374374
///
375-
/// Capture HTTP header fields by providing an array
376-
/// of NSRegularExpression that match the HTTP field keys.
375+
/// HTTP request and response headers can be captured by the iOS agent. You can use regular expressions to define the keys of the HTTP header fields that the iOS agent should capture.
377376
/// Example: try? NSRegularExpression(pattern: #"X-Key"#, options: [.caseInsensitive]) to capture the X-Key or X-KEY
378377
///
379378
/// Default: No HTTP header fields are captured. Keywords must be provided explicitly
380379
///
381380
/// - Parameters:
382-
/// - regex: Array of NSRegularExpression to capture matching HTTP header field keywords
381+
/// - regex: An array of NSRegularExpression objects to match the key of HTTP request/response headers that you want to capture.
383382
@objc
384383
public static func setCaptureHeaders(matching regex: [NSRegularExpression]) {
385384
Instana.current?.monitors.http?.filter.headerFieldsRegEx = regex

0 commit comments

Comments
 (0)