Skip to content

Commit e7aa693

Browse files
heckjktoso
andauthored
Update Sources/Instrumentation/Instrument.swift
Co-authored-by: Konrad `ktoso` Malawski <[email protected]>
1 parent 3b57886 commit e7aa693

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Sources/Instrumentation/Instrument.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ import ServiceContextModule
1818
///
1919
/// The assocaited type, `Carrier`, is a service request such as an HTTP request,
2020
/// that has string values that can be extracted to provide information for a tracing span.
21+
///
22+
/// Typically the library adopting instrumentation, would provide an implementation of this type, since it is aware of its carrier type.
23+
/// Which then can be combined with instrumentation or tracing implementations, which are not aware of the concrete carrier, and only provide an ``Instrument`` (or `Tracer`) which makes use of injector/extractor to operate on carrier values.
2124
public protocol Extractor: Sendable {
2225
/// The carrier to extract values from.
2326
associatedtype Carrier: Sendable

0 commit comments

Comments
 (0)