Skip to content

Conversation

@michellewzhang
Copy link
Member

closes #12178

@vercel
Copy link

vercel bot commented Dec 18, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
sentry-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 18, 2024 8:28pm
2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
changelog ⬜️ Ignored (Inspect) Visit Preview Dec 18, 2024 8:28pm
develop-docs ⬜️ Ignored (Inspect) Visit Preview Dec 18, 2024 8:28pm

@michellewzhang michellewzhang marked this pull request as ready for review December 18, 2024 17:50
@michellewzhang michellewzhang requested review from a team and billyvg December 18, 2024 17:51
@codecov
Copy link

codecov bot commented Dec 18, 2024

Bundle Report

Changes will increase total bundle size by 552 bytes (0.0%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
sentry-docs-server-cjs 10.35MB 558 bytes (0.01%) ⬆️
sentry-docs-client-array-push 9.28MB 6 bytes (-0.0%) ⬇️

Copy link
Member

@billyvg billyvg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@michellewzhang
Copy link
Member Author

LGTM -- should we talk about the title as well?

https://github.com/getsentry/sentry/blob/master/static/app/utils/replays/getFrameDetails.tsx#L458-L471

the title will always be "custom" since the category is set to be custom in hydrateBreadcrumbs.tsx:

https://github.com/getsentry/sentry/blob/20d585fc120c3c0d086c353ad04d04c8bf3d4917/static/app/utils/replays/hydrateBreadcrumbs.tsx#L28-L39

@billyvg
Copy link
Member

billyvg commented Dec 18, 2024

getsentry/sentry@master/static/app/utils/replays/getFrameDetails.tsx#L458-L471

@michellewzhang Isn't it category -> defaultTitle() -> 'custom'? (And then defaultTitle() again in <BreadcrumbItem>?

@michellewzhang
Copy link
Member Author

getsentry/sentry@master/static/app/utils/replays/getFrameDetails.tsx#L458-L471

@michellewzhang Isn't it category -> defaultTitle() -> 'custom'? (And then defaultTitle() again in <BreadcrumbItem>?

ohh, you're totally right. i'll update the docs


![Custom breadcrumb example with data](./img/data-custom-breadcrumb.png)

The title of the breadcrumb will be the breadcrumb `category` that you set. If no `category` is set, then we will use the breadcrumb `message`. If that doesn't exist, we'll use the `description`. The last fallback with be a default title of "Custom".
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😭

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💀

@michellewzhang michellewzhang merged commit 3bd09b3 into master Dec 18, 2024
11 checks passed
@michellewzhang michellewzhang deleted the mz/custom-breadcrumbs branch December 18, 2024 20:32
@github-actions github-actions bot locked and limited conversation to collaborators Jan 3, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add some documentation regarding custom breadcrumbs in Replay

5 participants