Skip to content

Commit 5ac237f

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

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
@@ -36,6 +36,9 @@ public protocol Extractor: Sendable {
3636
/// A type that allows you to inject values to an associated carrier.
3737
///
3838
/// The associated type, `Carrier`, is often a client or outgoing request into which values are inserted for tracing spans.
39+
40+
/// Typically the library adopting instrumentation, would provide an implementation of this type, since it is aware of its carrier type.
41+
/// 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.
3942
public protocol Injector: Sendable {
4043
/// The carrier to inject values into.
4144
associatedtype Carrier: Sendable

0 commit comments

Comments
 (0)