diff --git a/.github/otel-collector-config.yaml b/.github/otel-collector-config.yaml new file mode 100644 index 000000000..25c01c5ab --- /dev/null +++ b/.github/otel-collector-config.yaml @@ -0,0 +1,41 @@ +receivers: + otlp: + protocols: + grpc: + http: + include_metadata: true + cors: + max_age: 7200 + +exporters: + logging: + + otlp/elastic: + endpoint: https://a8e27ab098f54752b227af78fc609169.es.ops.vl.be:9243 + headers: + Authorization: "Bearer iHyyarDx8Bvn9WYXDv" + +extensions: + health_check: + path: "/health" + +processors: + batch: + +service: + extensions: + - health_check + + pipelines: + traces: + receivers: [otlp] + processors: [batch] + exporters: [logging, otlp/elastic] + metrics: + receivers: [otlp] + processors: [batch] + exporters: [logging, otlp/elastic] + logs: + receivers: [otlp] + processors: [batch] + exporters: [logging, otlp/elastic] diff --git a/src/AssociationRegistry.Admin.ProjectionHost/Infrastructure/Program/WebApplication/PrepareElasticSearch.cs b/src/AssociationRegistry.Admin.ProjectionHost/Infrastructure/Program/WebApplication/PrepareElasticSearch.cs index 827e1a93b..a408bcdeb 100644 --- a/src/AssociationRegistry.Admin.ProjectionHost/Infrastructure/Program/WebApplication/PrepareElasticSearch.cs +++ b/src/AssociationRegistry.Admin.ProjectionHost/Infrastructure/Program/WebApplication/PrepareElasticSearch.cs @@ -24,7 +24,7 @@ private static async Task EnsureIndexExists(IElasticClient elasticClient, string { if (!(await elasticClient.Indices.ExistsAsync(verenigingenIndexName)).Exists) { - var response = await elasticClient.Indices.CreateVerenigingIndex(verenigingenIndexName); + var response = await elasticClient.Indices.CreateVerenigingIndexAsync(verenigingenIndexName); if (!response.IsValid) throw response.OriginalException;