File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,10 @@ import Baggage
28
28
/// ## What getter to use
29
29
/// - Default to using `InstrumentationSystem.instrument`
30
30
/// - Use `InstrumentationSystem.instrument(of: MyInstrument.self)` only if you need to use specific `MyInstrument` APIs
31
- /// - Protocols that "inherit" from `Instrument` may also wrap `.instrument(of: TheirInstrument.self)` in a convenience method
31
+ ///
32
+ /// Specific instrumentation libraries may also provide their own accessors as extensions, e.g. GreatInstrumentation could provide an
33
+ /// `InstrumentationSystem.great` convenience accessor, so prefer using them if available. These accessors should call
34
+ /// `.instrument(of: GreatInstrument.self)` under the hood to ensure they work when being used through a `MultiplexInstrument`.
32
35
public enum InstrumentationSystem {
33
36
private static let lock = ReadWriteLock ( )
34
37
private static var _instrument : Instrument = NoOpInstrument ( )
You can’t perform that action at this time.
0 commit comments