Benedikt
06/07/2022, 7:45 PMlogger.Error("Some error message");
I've added OTLP logging to the service:
services.AddLogging(logging =>
{
logging.ClearProviders();
logging.AddConsole();
logging.AddOpenTelemetry(options =>
{
options.SetResourceBuilder(resourceBuilder);
options.IncludeScopes = true;
options.ParseStateValues = true;
options.IncludeFormattedMessage = true;
if (UseConsoleExporter(monitoringSettings.LoggingExporter))
options.AddConsoleExporter();
if (UseOtlpExporter(monitoringSettings.LoggingExporter))
{
options.AddOtlpExporter(otlpOptions =>
{
otlpOptions.Endpoint = new Uri(monitoringSettings.OtlpEndpoint);
});
}
});
});
But the exception page is always empty (see the screenshot). Do I need to add something to the otel-collector? I could not find and "extension" or additional "service. Traces and Metrics were send successfully.Srikanth Chekuri
06/07/2022, 8:08 PMo.RecordException
from instrumentations captures them and add them as a span event).Ashu