Since the .NET Core application is in a Linux container, it's using Kestrel as the webserver, so I am unsure if that's the reason it's not being automatically injected.
Answer by Gustavo M. ·
To close the loop here, my problem was compression was enabled between nginx and kestrel, and auto-injection will not work when there is compression.
I was able to fix it by disabling compression via this ingress annotation:
nginx.ingress.kubernetes.io/configuration-snippet: | proxy_set_header Accept-Encoding identity;
Injection worked just fine after the ingress was updated.
Answer by Sebastian K. ·
You didn't have any webserver that works as reverse proxy that is in front of kestrel? To be honest I've never tested auto injection in kestrel itself, I've always had nginx or IIS before :) But it may be as you've said that auto-injection (at least for now) will not work here.
404 error for dtagents in One-Agent 1 Answer