opentelemetry-dotnet-instrumentation
opentelemetry-dotnet-instrumentation copied to clipboard
Remove indirect dependencies from additional store
The change itself looks good.
I do have a question about the dependencies that are being added to the additional deps. Aren't they dependencies of the library being instrumented? It seems that they would be already present on the application it self. I'm assuming that instrumentation helper/middleman indirectly depends on those. Is that correct?
Anyway, the change looks good. This question of indirect dependencies, if real, can and should be addressed separately.
Originally posted by @pjanotti in https://github.com/open-telemetry/opentelemetry-dotnet-instrumentation/pull/1320#pullrequestreview-1134854978
The same question under: https://github.com/open-telemetry/opentelemetry-dotnet-instrumentation/pull/1320#discussion_r990367416
We should probably remove indirect dependencies like in https://github.com/open-telemetry/opentelemetry-dotnet-instrumentation/blob/main/src/CommonExcludedAssets.props
Done in scope of #1829
Reopening. Discovered that we don't need to ship MongoDB transient packages. Some more scans must be made to understand the missing scope (mostly issue with packages that have multi layer transient packages).
Additionally, version ranges could vary by transient dependencies.
@rajkumar-rangaraj do you know if there are any straightforward ways to remove transient deps for specific package? ... or do you think this is entirely manual job?
The MongoDB case is the following:
MongoDB.Driver.Core.Extensions.DiagnosticSourcesis the main package, keepMongoDB.Driver.Coreis transient package ofMongoDB.Driver.Core.Extensions.DiagnosticSources, deleteDnsClientis transient package ofMongoDB.Driver.Core, deleteMongoDB.Bsonis transient package ofMongoDB.Driver.Core, deleteMongoDB.Libmongocryptis transient package ofMongoDB.Driver.Core, deleteSharpCompressis transient package ofMongoDB.Driver.Core, delete
There are no easy ways to remove it. We need to customize in build steps.
Moving to post 1.0.0 release. Most important parts was removed while working on MognoDB task. Further optimization can be handled after GA.