https://signoz.io logo
#support
Title
# support
b

Benedikt

06/07/2022, 7:45 PM
Hey SigNoz team! I'm trying to visualize exceptions/errors in SigNoz logged using ASP.NET Core 6 ILogger interface. E.g.:
logger.Error("Some error message");
I've added OTLP logging to the service:
Copy code
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.
s

Srikanth Chekuri

06/07/2022, 8:08 PM
The logs from OTLP exporter are not yet supported. Exception page shows the exceptions from the tracing data (your
o.RecordException
from instrumentations captures them and add them as a span event).
👍 1
2 Views