-
Notifications
You must be signed in to change notification settings - Fork 1
Reconsider package modularization #31
Comments
For now, we'll keep both libraries separate as we plan on adding |
On the contrary, we may want to consider extracting |
for a starter, maybe moving currently there are: let package = Package(
name: "gsoc-swift-tracing",
products: [
.library(name: "BaggageLogging", targets: ["BaggageLogging"]),
.library(name: "Instrumentation", targets: ["Instrumentation"]),
.library(name: "NIOInstrumentation", targets: ["NIOInstrumentation"])
], |
Yeah I've been floating that idea around since a while; The open question is naming, what should it be;
is what I'm warming up towards... Not sure if Baggage should be in the names, like |
related question is how the // FIXME: smarter impl
public static var tracer: TracingInstrument {
self.lock.withReaderLock {
let tracer: TracingInstrument? = self._tracer
let res: TracingInstrument = tracer ?? NoOpTracingInstrument()
return res
}
} BTW the code above will not find a tracer if its provided by official and public |
Yes that's not solved yet; Let's not conflate tickets and discuss that in here: #86 |
I think the Baggage prefix here could be a bit misleading as we’re not instrumenting the |
That's too many "new words", we can quickly teach about "there's some baggage context thing" and "there's some instrumentation (that uses it)". I don't want to have to dive deep into why we're doing the separation of concerns just for someone who's in a rush trying to get a job done -- the separation and cross cutting wording I do want to keep but in documentation and rationale why we're separating things as we are.
I guess that's okey (unless someone comes up with that we're using up those names aggressively), we could use Baggage prefix if necessary. |
@pokryfka That's why it has a FIXME 😉 PoCs welcome how we should implement those instrument getters. I ticketified this explicitly now: Solve "getting" (specific) tracers from instrumentation system #99 |
We figured out the modularization with teams internally, closing for now. repos:
|
https://forums.swift.org/t/server-distributed-tracing/37464/26
As
BaggageContext
andInstrumentation
are closely related, does it make sense to package them up in one library instead of the two we currently have?The text was updated successfully, but these errors were encountered: