Open NapalmCodes opened 2 months ago
@JamesNK we should consider defaulting the OTLP url to HTTP by default. Making HTTPs work inside of arbitrary containers will be lots of work. In the mean time, maybe we can unblock the most common scenarios where it shows up.
Is there an existing issue for this?
Is your feature request related to a problem? Please describe the problem.
The Aspire dashboard provides an https OTLP endpoint for publishing observability data. Since it runs locally with dotnet dev-certs containers with their own isolated network are not able to publish metrics, traces etc. as they do not trust the dev-certs. In addition, dev-certs are only for localhost not host.docker.internal which is used to communicate with the dashboard.
Describe the solution you'd like
Aspire should help with setting up HTTPS between container and non-container resources. This would allow developers to work with SSL locally in a painless way.
Additional context
See discussion https://github.com/dotnet/aspire/discussions/5221