|
14 | 14 |
|
15 | 15 | // Redis for Hangfire background jobs, and distributed locking - persistent with AOF for durability |
16 | 16 | var redisPersistent = builder.AddRedis("redis-persistent") |
17 | | - .WithOtlpExporter() |
| 17 | + // WithOtlpExporter() is intentionally omitted for containers with WithDataVolume() due to https://github.com/microsoft/aspire/issues/17191 |
18 | 18 | .WithRedisInsight() |
19 | 19 | .WithRedisCommander() |
20 | 20 | .WithDataVolume() |
|
28 | 28 |
|
29 | 29 | //#if (database == "SqlServer") |
30 | 30 | var sqlDatabase = builder.AddSqlServer("sqlserver") |
31 | | - .WithOtlpExporter() |
| 31 | + // WithOtlpExporter() is intentionally omitted for containers with WithDataVolume() due to https://github.com/microsoft/aspire/issues/17191 |
32 | 32 | .WithDbGate(config => config.WithDataVolume()) |
33 | 33 | .WithDataVolume() |
34 | 34 | .WithImage("mssql/server", "2025-latest") |
35 | 35 | .AddDatabase("mssqldb"); // Sql server 2025 supports embedded vector search. |
36 | 36 |
|
37 | 37 | //#elif (database == "PostgreSql") |
38 | 38 | var postgresDatabase = builder.AddPostgres("postgresserver") |
39 | | - .WithOtlpExporter() |
| 39 | + // WithOtlpExporter() is intentionally omitted for containers with WithDataVolume() due to https://github.com/microsoft/aspire/issues/17191 |
40 | 40 | .WithPgAdmin() |
41 | 41 | .WithV18DataVolume() |
42 | 42 | .WithOptimizedSetup() |
|
45 | 45 |
|
46 | 46 | //#elif (database == "MySql") |
47 | 47 | var mySqlDatabase = builder.AddMySql("mysqlserver") |
48 | | - .WithOtlpExporter() |
| 48 | + // WithOtlpExporter() is intentionally omitted for containers with WithDataVolume() due to https://github.com/microsoft/aspire/issues/17191 |
49 | 49 | .WithPhpMyAdmin() |
50 | 50 | .WithDataVolume() |
51 | 51 | .AddDatabase("mysqldb"); |
|
64 | 64 |
|
65 | 65 | //#elif (filesStorage == "S3") |
66 | 66 | var s3Storage = builder.AddMinioContainer("s3") |
67 | | - .WithOtlpExporter() |
| 67 | + // WithOtlpExporter() is intentionally omitted for containers with WithDataVolume() due to https://github.com/microsoft/aspire/issues/17191 |
68 | 68 | .WithDataVolume(); |
69 | 69 | //#endif |
70 | 70 |
|
71 | 71 | // https://aspire.dev/integrations/security/keycloak/ |
72 | 72 | var keycloak = builder.AddKeycloak("keycloak", 8080) |
73 | | - .WithOtlpExporter() |
| 73 | + // WithOtlpExporter() is intentionally omitted for containers with WithDataVolume() due to https://github.com/microsoft/aspire/issues/17191 |
74 | 74 | .WithDataVolume() |
75 | 75 | .WithRealmImport("./Infrastructure/Realms"); |
76 | 76 |
|
|
0 commit comments