You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A customer gets it's value from the logger but it's been capped at 64 which truncates the information.
Is there a reason for this or can we up the limit to a fair amount like for instance the TagValue => 200
Thank you for considering this.
In Java, most of the time the logger name is generated from the class name. It can be pretty long because it is a fully qualified name including the package before the actual class name.
If you have to truncate this value, maybe it would make more sense to keep the class name at the end and truncate the beginning (fully qualified name is always better).
Should this be implemented in sentry-logback and sentry-log4j because it seems specific to Java logging frameworks?
Activity
benoit-lateltin commentedon Feb 8, 2023
Thank you for considering this.
In Java, most of the time the logger name is generated from the class name. It can be pretty long because it is a fully qualified name including the package before the actual class name.
Example:
com.company.project.module.layer.subpackage.category.BusinessEntityErrorResolverIf you have to truncate this value, maybe it would make more sense to keep the class name at the end and truncate the beginning (fully qualified name is always better).
Should this be implemented in
sentry-logbackandsentry-log4jbecause it seems specific to Java logging frameworks?olksdr commentedon Feb 13, 2023
loggerfield as wellolksdr commentedon Feb 13, 2023
@benoit-lateltin it sounds like a good idea.
Could you, please, also open the issue (feature request) in https://github.com/getsentry/sentry-java ?
iker-barriocanal commentedon Mar 14, 2023
After an internal conversation, we'll trim from the beginning of the string instead, keeping the max at 64 unicode chars.
benoit-lateltin commentedon Mar 14, 2023
Make sense @iker-barriocanal 👌
@olksdr Do I still need to open the issue in https://github.com/getsentry/sentry-java? (I haven't done it yet 🙁)
iker-barriocanal commentedon Mar 14, 2023
@benoit-lateltin no, that won't be necessary. This is something that will happen in relay, no SDK changes are required.
jan-auer commentedon Mar 14, 2023
We can detect class paths during trimming and apply some better trimming logic for these, e.g. trim at
.boundaries.feat(normalization): Trim logger smartly (#1941)