Skip to content

Different behavior between Sentry Open Telemetry and Sentry .NET SDK #5350

Description

@yasmoradi

Description

I'm enabling Open Telemetry by following code:

services.AddLogging(loggingBuilder =>
{
    loggingBuilder.ConfigureLoggers(configuration);

    loggingBuilder.AddOpenTelemetry(options =>
    {
        options.IncludeScopes = true;
        options.IncludeFormattedMessage = true;
        configuration.Bind("Logging:OpenTelemetry", options);
    });
});

var openTelemetry = services.AddOpenTelemetry()
    .WithMetrics()
    .WithTracing()
    .ConfigureResource(resource =>
    {
        resource.AddAttributes([new("service.name", Application.ProductName!)]);
    });

var useOtlpExporter = string.IsNullOrWhiteSpace(configuration["OTEL_EXPORTER_OTLP_ENDPOINT"]) is false
    || string.IsNullOrEmpty(configuration["OTEL_EXPORTER_OTLP_LOGS_ENDPOINT"]) is false;

if (useOtlpExporter)
{
    openTelemetry.UseOtlpExporter();
}

It shows logs in https://xxx.sentry.io/explore/logs/ and shows traces in https://xxx.sentry.io/explore/traces/.

My question is, why it doesn't show errors in https://xxx.sentry.io/issues/ (Which basically is a home page)
Before switching to Open Telemetry, I could see the in home page and this is so confusing for people who expects to see something in the home page.

The other question that I've is as I can see, there's a metrics page https://xxx.sentry.io/explore/metrics/

But it seems OTEL_EXPORTER_OTLP_METRICS_ENDPOINT is not supported at the moment as it's not documented in https://xxx.sentry.io/settings/projects/dotnet/keys/

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions