#No SentryUser in Logs Scope

6 messages · Page 1 of 1 (latest)

round haven
#

In our MAUI app we set the SentryUser using

SentrySdk.ConfigureScope(scope =>
{
scope.User = new SentryUser
{
Id = userId,
Username = name,
};
});

Whilst I think there are some issues around the way\timing of that being set on the whole it is fine.

We have started looking at using "Logs" in our MAUI app. We never see the Sentry Uer Id or Username set as attributes on our structured logs. The Logs documentation says we just need to ensure SentrySdk.ConfigureScope is being called.

It is.

What are the likely reasons that those values are appearing for Issues and messages (mostly) but never for the logs?

marsh idol
#

We'll get back to you

round haven
#

Our QA person just asked me an obvious question about the logs "how can you relate these logs back to a particular device?". As they stand you, cannot. Why do they not get the device specifrc attributes that "Issues" get? Without that they are almost useless outside of a single DEV device

round haven
#

@marsh idol the extra attributes has been raised as a feature request on GitHub via a support ticket. Unless I’ve misunderstood logging these additional attributes are the difference between logs being useful rather than useless outside of a single device

marsh idol
#

@hardy chasm fyi