Skip to content

Missing Ilogger parameters #3078

@ollie10

Description

@ollie10

Package

Sentry

.NET Flavor

.NET Core

.NET Version

8.0.0

OS

Windows

SDK Version

8.0.0

Self-Hosted Sentry Version

No response

Steps to Reproduce

Hi everyone, I have a (maybe) dummy question. I'm using Sentry for Asp.NET using as logging methods the one shipped in the framework via Microsoft.Extensions.Logging

I'm logging errors and exceptions passing sometimes parameters like in this way:

_logger.LogError("ERROR - User Registration Failed Invalid Recaptcha", new { RegisterModel = registerModel, RecaptchaResponse = recaptchaResponse });

The question is: Where am I supposed to see these parameters in the Sentry interface? I mean, logging is working pretty fine, especially with the exceptions caught. I see everything I need; I just never see, in any case, those parameters.

Am I doing something wrong, or is this the expected behavior?

Expected Result

I would expect to see the parameters as a dictionary or a deserialized object in Sentry Event

Actual Result

Nothing about those parameters is shown on the event details

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    Done

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions