Screenshot of code in ILSpy

.NET: How AOTed trimmed application can read data from another assembly

I will show you ways to read string data from arbitrary .NET assembly in case when you don’t have: Reflection, i.e when you operate from a trimmed or AOTed application Full set of app dependencies. This is conceptionally wrong - why do we need to load everything, when we only need raw data from a library, also, I wanted a way to read data from damaged distributions. Let’s imagine we have an assembly, where we have this code: ...

October 12, 2024 · 5 min · Lev Yastrebov
Notification about ApplicationInsights SDK deprecation on Microsoft site

Migration from .NET ApplicationInsights SDK to Azure OpenTelemetry Exporter

The AppInsights SDK is quite simple to integrate with and provides rather rich functionality and extensibility, but it is now considered a “legacy” - Azure team announced focus switch to support OpenTelemetry: So, we should switch to using Azure.Monitor.OpenTelemetry.Exporter. That’s not a bad thing by itself, but there are not many guides on the migration process, especially for console applications like mine, and the Azure Exporter doesn’t support a lot of useful things I got used to. Also, it’s quite a shift in how things work and how they are named, so I decided to list the problems I faced and my solutions to them. ...

July 19, 2024 · 8 min · Lev Yastrebov