14 references to Logs
Aspire.Seq (9)
AspireSeqExtensions.cs (9)
37settings.Logs.Protocol = OtlpExportProtocol.HttpProtobuf; 39settings.Logs.ExportProcessorType = ExportProcessorType.Batch; 56settings.Logs.Endpoint = new Uri($"{settings.ServerUrl}/ingest/otlp/v1/logs"); 61settings.Logs.Headers = string.IsNullOrEmpty(settings.Logs.Headers) ? $"X-Seq-ApiKey={settings.ApiKey}" : $"{settings.Logs.Headers},X-Seq-ApiKey={settings.ApiKey}"; 66_ => settings.Logs.ExportProcessorType switch { 67ExportProcessorType.Batch => new BatchLogRecordExportProcessor(new OtlpLogExporter(settings.Logs)), 68_ => new SimpleLogRecordExportProcessor(new OtlpLogExporter(settings.Logs))
Aspire.Seq.Tests (5)
SeqEndpointCanBeConfigured.cs (5)
20s.Logs.TimeoutMilliseconds = 1000; 40s.Logs.Endpoint = new Uri("http://localhost:1234/ingest/otlp/v1/logs"); 44Assert.Equal(settings.Logs.Endpoint, new Uri("http://localhost:9876/ingest/otlp/v1/logs")); 60s.Logs.Headers = "speed=fast,quality=good"; 64Assert.Equal("speed=fast,quality=good,X-Seq-ApiKey=TestKey123!", settings.Logs.Headers);