Skip to content
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

Using Auto NuGet package with IIS .NET FX Application #3365

Open
RassK opened this issue Apr 11, 2024 · 5 comments
Open

Using Auto NuGet package with IIS .NET FX Application #3365

RassK opened this issue Apr 11, 2024 · 5 comments
Milestone

Comments

@RassK
Copy link
Contributor

RassK commented Apr 11, 2024

What

When user has multiple IIS apps and one or many of them have dependency conflicts, then it's advised to use OpenTelemetry.AutoInstrumentation NuGet package. There is no way to use the shipped startup script and IIS defines variables for external installation.

Proposal

Add PowerShell function (Similarly #3161) to convert a single app pool to use a NuGet package provided auto instrumentation.
This should overwrite all of the primary envs with a proper locations.

Related

#3085

@nrcventura
Copy link
Member

Is this for multiple apps in a single app pool, or is this for multiple apps on the same host but different processes?

@RassK
Copy link
Contributor Author

RassK commented Apr 11, 2024

Multiple apps in IIS and different processes. If they are in the same app pool, then there is probably not much we can do any more, I don't know any more specific scope that could be used to fix that case.

@nrcventura
Copy link
Member

The nuget package approach that you are recommending for multiple apps not in the same app pool should work. I'm not sure how to solve the problem when there are multiple apps with conflicts in the same app pool. They might all need the same version installed by the nuget package.

@RassK
Copy link
Contributor Author

RassK commented Apr 12, 2024

They might all need the same version installed by the nuget package.

That should work, one app has to share binaries for others... this cross loading pattern seems quite weird although 🤔

@RassK
Copy link
Contributor Author

RassK commented Apr 17, 2024

Synced with @pjanotti . Seems I did not properly understand that .NET FX apps must use also newer SDK style projects to leverage the Auto NuGet package. I don't know if it's possible to create such fx webapplication that supports the NuGet. I think it should be rephased that this task is more about IIS and Net Core Apps ❓

@lachmatt lachmatt added this to the vNext milestone Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants