Skip to content

Commit ae44112

Browse files
authored
fix: remove WithOtlpExporter() from persistent containers as workaround for aspire issue #17191 (bitfoundation#12359)
1 parent 978e58c commit ae44112

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

  • src/Templates/Boilerplate/Bit.Boilerplate/src/Server/Boilerplate.Server.AppHost

src/Templates/Boilerplate/Bit.Boilerplate/src/Server/Boilerplate.Server.AppHost/Program.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
// Redis for Hangfire background jobs, and distributed locking - persistent with AOF for durability
1616
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
1818
.WithRedisInsight()
1919
.WithRedisCommander()
2020
.WithDataVolume()
@@ -28,15 +28,15 @@
2828

2929
//#if (database == "SqlServer")
3030
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
3232
.WithDbGate(config => config.WithDataVolume())
3333
.WithDataVolume()
3434
.WithImage("mssql/server", "2025-latest")
3535
.AddDatabase("mssqldb"); // Sql server 2025 supports embedded vector search.
3636

3737
//#elif (database == "PostgreSql")
3838
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
4040
.WithPgAdmin()
4141
.WithV18DataVolume()
4242
.WithOptimizedSetup()
@@ -45,7 +45,7 @@
4545

4646
//#elif (database == "MySql")
4747
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
4949
.WithPhpMyAdmin()
5050
.WithDataVolume()
5151
.AddDatabase("mysqldb");
@@ -64,13 +64,13 @@
6464

6565
//#elif (filesStorage == "S3")
6666
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
6868
.WithDataVolume();
6969
//#endif
7070

7171
// https://aspire.dev/integrations/security/keycloak/
7272
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
7474
.WithDataVolume()
7575
.WithRealmImport("./Infrastructure/Realms");
7676

0 commit comments

Comments
 (0)