-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MongoDB - instrumenation for .NET Framework #2390
Conversation
Alternative approach discussed with @RassK - manually copy MongoDB instrumentation library instead of removing non-needed libraries from the output folder. As the goal, for now, is to make nuget scenario working (+ .NET Framework support) I would keep current scenario. Proposal from Rasmus can be handled later as future optimisations. |
This will also halt the huge progress made in #2294. Meanwhile @pjanotti's suggestion for Nuget is also easier to achieve. |
Potential follow up commit with nuget support: Kielek@4cf165e |
@Kielek @RassK this PR is an interesting possible path forward for the "usual" distribution (ie.: non-Nuget). That said I think we have to step back and design the overall solution. Regarding:
I thought the issue was that GH Windows runners can only run Windows containers. The ASP.NET test launches a Windows container without the |
For me it seems to be in any way step backwards.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Kielek LMK when this goes downstream—thx!
src/OpenTelemetry.AutoInstrumentation/Instrumentations/MongoDb/MongoClientIntegration.cs
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM w/ a minor suggestion.
src/CommonExcludedAssets.props
Outdated
@@ -21,4 +21,29 @@ | |||
<!-- Microsoft.Bcl.AsyncInterfaces is required by StackExchange.Redis. ExcludeAssets="all" prevents copying it to the output --> | |||
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" ExcludeAssets="all" /> | |||
</ItemGroup> | |||
|
|||
<ItemGroup> | |||
<!-- DnsClient is required by MongoDB.Driver.Core.Extensions.DiagnosticSources. ExcludeAssets="all" prevents copying it to the output --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To avoid the verbosity and the copy/paste mistake it seems better to have a single comment before the ItemGroup
. Something like "Transient dependencies from MongoDB.Driver.Core.Extensions.DiagnosticSources that are shipped with the applications. ExcludeAssets="all" prevents copying them to the output"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Extracted common comment. b7ca218
I would keep explanation per library - I expect more to come. Part of them probably can be linked by more than one library.
Why
Fixes #2328
What
Tests
Executed locally on Docker for Windows with Linux.
Testocontainers for now does not support Docker for Windows with Windows. No possibility to enable it in pipeline: testcontainers/moby-ryuk#40 (comment)
Checklist
CHANGELOG.md
is updated.