opentelemetry-dotnet-instrumentation icon indicating copy to clipboard operation
opentelemetry-dotnet-instrumentation copied to clipboard

Using Auto NuGet package with IIS .NET FX Application

Open RassK opened this issue 10 months ago • 5 comments

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

RassK avatar Apr 11 '24 09:04 RassK

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

nrcventura avatar Apr 11 '24 17:04 nrcventura

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.

RassK avatar Apr 11 '24 18:04 RassK

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.

nrcventura avatar Apr 11 '24 23:04 nrcventura

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 avatar Apr 12 '24 10:04 RassK

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 ❓

RassK avatar Apr 17 '24 12:04 RassK