WithOtlpExporter()
causes Persistent Containers to be recreated every execution
#6889
Labels
area-app-model
Issues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication
Milestone
If you have a persistent container and try to enable open telemetry on it, the container persistence stops workign, with the container being recreated every time.
I believe this is because the instance id in the
OTEL_RESOURCE_ATTRIBUTES
environment variable and the api key inOTEL_EXPORTER_OTLP_HEADERS
change on each app host restart, and so DCP believes it needs to re-create the containerThe text was updated successfully, but these errors were encountered: