Hi @juan maximiliano aguilar abanto ,
I don't see anything wrong with your GlobalTelemetryInitializer
. I also walked over to Serilog Application Insights Sinks and I see that your code snippets came from here. Honestly, I assume the Serilog SDK should pull ITelemetryInitializer
from the IoC container and that isn't happening in your case. It could be a bug in Serilog but to work around it, you can definitely include builder.Services.AddApplicationInsightsTelemetry()
and that should pick up your RoleName
. I didn't add Serilog to my project but in my setup, I can see the role name being updated in the requests
table.