You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> In case your library makes use of the `NIOHTTP1.HTTPHeaders` type we already have an `HTTPHeadersInjector` &
98
98
`HTTPHeadersExtractor` available as part of the `NIOInstrumentation` library.
99
99
100
-
For your library/framework to be able to carry `LoggingContext` across asynchronous boundaries, it's crucial that you carry the context throughout your entire call chain in order to avoid dropping metadata.
100
+
For your library/framework to be able to carry `FIXME!!!` across asynchronous boundaries, it's crucial that you carry the context throughout your entire call chain in order to avoid dropping metadata.
101
101
102
102
### Tracing your library
103
103
@@ -107,7 +107,7 @@ In order to work with the tracer [configured by the end-user](#Bootstrapping-the
107
107
should start a `Span` when sending the outgoing HTTP request:
108
108
109
109
```swift
110
-
funcget(url: String, context: LoggingContext) {
110
+
funcget(url: String, context: FIXME!!!) {
111
111
var request =HTTPRequest(url: url)
112
112
113
113
// inject the request headers into the baggage as explained above
@@ -142,14 +142,14 @@ Creating an instrument means adopting the `Instrument` protocol (or `Tracer` in
142
142
143
143
`Instrument` has two requirements:
144
144
145
-
1. A method to inject values inside a `LoggingContext` into a generic carrier (e.g. HTTP headers)
146
-
2. A method to extract values from a generic carrier (e.g. HTTP headers) and store them in a `LoggingContext`
145
+
1. A method to inject values inside a `FIXME!!!` into a generic carrier (e.g. HTTP headers)
146
+
2. A method to extract values from a generic carrier (e.g. HTTP headers) and store them in a `FIXME!!!`
147
147
148
148
The two methods will be called by instrumented libraries/frameworks at asynchronous boundaries, giving you a chance to
149
149
act on the provided information or to add additional information to be carried across these boundaries.
150
150
151
151
> Check out the [`Baggage` documentation](https://github.com/apple/swift-distributed-tracing-baggage) for more information on
152
-
how to retrieve values from the `LoggingContext` and how to set values on it.
152
+
how to retrieve values from the `FIXME!!!` and how to set values on it.
153
153
154
154
### Creating a `Tracer`
155
155
@@ -180,7 +180,7 @@ extension Baggage {
180
180
}
181
181
}
182
182
183
-
var context =DefaultLoggingContext.topLevel(logger: ...)
183
+
var context =DefaultFIXME!!!.topLevel(logger: ...)
0 commit comments