-
Notifications
You must be signed in to change notification settings - Fork 99
Open
Description
We're seeing some missing data in the sink, and wanted to check if there are any errors being logged by Event Flow. I'm having trouble getting the CsvHealthReporter to write errors to a CSV file. The output CSV file does not even get created and I wanted to know how to proceed with debugging this scenario?
We're on .NET6, here's the example setup code we're using:
serviceCollection.AddOptions<CsvHealthReporterConfiguration>()
.Configure<IConfiguration>((csvHealthReporterConfiguration, configuration) =>
{
configuration.GetSection("EventFlow").GetSection("HealthReporter").Bind(csvHealthReporterConfiguration);
});
serviceCollection.AddSingleton<IHealthReporter>(
sp => new CsvHealthReporter(
sp.GetRequiredService<IOptions<CsvHealthReporterConfiguration>>().Value));
serviceCollection.AddSingleton<IGenevaUploader, AppServiceGenevaLogUploader>();
serviceCollection.AddSingleton<IMetricsLogger, GenevaMetricsLogger>();
// Create event flow
serviceCollection.AddSingleton<ITelemetryProcessorFactory>(sp =>
{
var genevaUploader = sp.GetRequiredService<IGenevaUploader>();
var healthReporter = sp.GetRequiredService<IHealthReporter>();
var inputs = new IObservable<EventData>[]
{
new ApplicationInsightsInputFactory().CreateItem(null, healthReporter)
};
var sinks = new[] { new EventSink(new GenevaOutputEventFlow(healthReporter, genevaUploader), null) };
DiagnosticPipeline eventFlow = new DiagnosticPipeline(healthReporter, inputs, null, sinks);
return new EventFlowTelemetryProcessorFactory(eventFlow);
});
Metadata
Metadata
Assignees
Labels
No labels