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