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
Merge interfaces that share all the same implementors
IHasTags and IHasExtra could be merged as anything that implements one also implements the other. However we decided not to do this as it resulted in a pretty weird nonsense interface. See IHasTags and IHasExtra replaced with ITagsAndData #2675
That still leaves us with a slightly simpler problem to solve however:
Great stuff! Thanks for breaking this up! I took a look at some of the PRs, I think 1 left. @bitsandfoxes had the idea of adding [Obsolete] right now, on the 3.x, to all the stuff we're removing in 4.0.0. If not a lot of work, could be helpful? That said I don't expect anyone to be using these types directly unless some IDE suggested using a less specific type on some function argument or something. Very unlikely
Version 3.x.x Interfaces
Opportunities to simplify
Remove interfaces that were planned for removal in v4.0
Various interfaces were added because we were unable to add properties to existing interfaces... they were never intended to be kept long term:
IHasMeasurements
: Merged IHasMeasurements into ISpanData #2659IHasDistribution
: Feat/4.0.0 deprecate IHasDistribution #2660IHasTransactionNameSource
: Merged IHasTransactionNameSource into ITransactionContext #2654Remove empty interfaces
We could remove interfaces that don't have any properties or methods (unless they serve some useful function as marker interfaces).
ISpanContext
: Merged ISpanContext into ITraceContext #2668Remove interfaces with only one implementation
IHasBreadcrumbs
is only implemented byIEventLike
Merge interfaces that share all the same implementors
IHasTags
andIHasExtra
could be merged as anything that implements one also implements the other. However we decided not to do this as it resulted in a pretty weird nonsense interface. See IHasTags and IHasExtra replaced with ITagsAndData #2675That still leaves us with a slightly simpler problem to solve however:
The text was updated successfully, but these errors were encountered: