@Srivathsan S - Thanks for reaching out to us.
and thanks for raising the issue in our GitHub channel as well where our Product team was able to resolve the issue.
Reiterating it here for broader audience.
The console application example has been updated. The telemetry initializers stopped being picked up automatically, there's a small code change needed to make it work. Basically, need to update the configure code like this:
var channel = new InMemoryChannel();
// Update the configuration code like this:
services.AddOptions<TelemetryConfiguration>().Configure<IServiceProvider>((config, p) =>
{
// Appending registered telemetry initializers.
foreach (ITelemetryInitializer registeredInitializer in p.GetServices<ITelemetryInitializer>())
{
config.TelemetryInitializers.Add(registeredInitializer);
}
// Setup up telemetry channels.
config.TelemetryChannel = channel;
}
Hope this helps. and please feel free to reach out if you have any further questions.
------------------------------------------------------------------
If the above response was helpful, please feel free to "Accept as Answer" and "Upvote" the same so it can be beneficial to the community.