feat: add auto generate breadcrumb option#8
Conversation
|
I appreciate the contribution but I'm wary of extending this code base unless we start adding some tests and CI/CD. And at this time we're focusing on: https://github.com/getsentry/sentry-unity That repo already stores messages as breadcrumbs. Technically it's usable already via UPM even though it's not really tested yet:
Would you be willing to give it a try? I wonder if what we're building there would work for you and we'd love feedback on it. |
| { | ||
| if (AutoGenerateBreadcrumb) // add non-errors to the breadcrumb list | ||
| { | ||
| AddBreadcrumb(condition); |
There was a problem hiding this comment.
Would it be possible to also add whether it was a warning or a regular log message? (not sure how the breadcrumb system works)
|
I'm still using sentry-unity-lite and have yet to try out sentry-unity. I think the benefits of merging this far outweighs the risk, and I'll probably maintain it in my own fork if it's not merged upstream. Don't get me wrong, I do intend to try out sentry-unity eventually, I'm just wary of adding a big/complex/fairly new dependency to projects that are already live and using sentry-unity-lite. |
|
It's also implemented as an opt-in feature, so shouldn't really affect existing users. |
|
@bruno-garcia Thanks for the information about sentry-unity. |
This is what I really want to clarify with folks. The fact it's DLLs just means you dn't need to compile C# into DLL with your game. The actual final size increase we still need to investigate futher but with AOT and the linker dropping what's not used it shoudn't be an issue, but agree we need to check. I'll merge this though, makes sense to add. But it'll be hard to maintain two SDKs. |
|
Thanks Marge. |
|
Really appreciate the help here, and with testing it there as we invest further on it. |

Automatically add non-error debug logs to breadcrumb list.
For many small and medium-sized games, being able to see the debug log just before errors in chronological order is effective for debugging.
This option adds simple information to the breadcrumb list without the programmer having to explicitly build it.