[SDT-0002]: (SSC side) move ServiceContext from SSC to SDT implementation #92
Shouldn't we recommend them to mover over?
Should be changed before merging. And this defines the sequence of merges — SDT first, SSC follows.
Should we deprecate these, to nudge folks to migrate?
I would not add deprecations in the same release as the move, but in a follow-up minor release, so there is a no-deprecation-warning combination of releases allowing people to continue doing what they are doing, if they only want to depend on SSC and not update any code/libraries.
Same question as @FranzBusch asked above. I think we should first make a move without deprecations, and then release another minor with deprecations.
Approved these changes.
this is going to leave two call-outs/asides (notes) back to back. Are both worthy of being described as explicit call outs vs. just having them as narrative text? I think the first we could drop to "just text"
Maybe just remove Note from both?
Done
Also, TracingContext is renamed to InstrumentationContext, as discussed here: https://github.com/apple/swift-distributed-tracing/pull/240#issuecomment-5833119881
czechboy0
kukushechkin
Turn this package into a thin compatibility layer over swift-distributed-tracing.
Motivation:
Companion to apple/swift-distributed-tracing#240.
ServiceContext's implementation moved there, renamed toTracingContext. This package now re-exports it instead of owning it.Modifications:
ServiceContextModulere-exports itsContextStoragemodule and declares its own non-deprecatedServiceContext/ServiceContextKey/AnyServiceContextKeytypealiases.Result:
import ServiceContextModulekeeps working with no code changes and no deprecation warning, even in a file that also importsTracingdirectly. New code should depend on swift-distributed-tracing and useTracingContextinstead.