bugsnag/bugsnag-unity

Increase breadcrumb name lenght

benoitdion opened this issue · 2 comments

Description

Breadcrumb name length is currently limited to 30 characters (https://github.com/bugsnag/bugsnag-unity/blob/master/src/BugsnagUnity/Payload/Breadcrumb.cs#L12). Is there plan to increase that limit like on other platforms (bugsnag/bugsnag-react-native#417 (comment))?

👋. hey @benoitdion. Yes, we do plan to remove the 30 character limit on the breadcrumb name. However, in the meantime the metadata fields within the breadcrumb don't have this limit. So, instead of:

Bugsnag.LeaveBreadcrumb("This is a really long breadcrumb name that will break the 30 character limit");

you could use something like:

Bugsnag.LeaveBreadcrumb(
  "Log message",
  BreadcrumbType.Manual,
  new Dictionary<string, string>() {{ "message", "This is a really long breadcrumb metadata element that will won't break the 30 character limit" }}
);

https://docs.bugsnag.com/platforms/unity/#logging-breadcrumbs

This has now been released in v5.4.1 (#399) 🎉