Skip to content

chore(DIAM-10): Add telemetry for less than 5 artworks being returned in discover daily - #12849

Merged
lilyfromseattle merged 3 commits into
mainfrom
lilyfromseattle/sentry-for-discover-daily-artworks
Oct 21, 2025
Merged

lilyfromseattle merged 3 commits into
mainfrom
lilyfromseattle/sentry-for-discover-daily-artworks

Conversation

@lilyfromseattle

@lilyfromseattle lilyfromseattle commented Oct 14, 2025 •

Copy link
Copy Markdown
Contributor

This PR resolves DIAM-10

Description

After consulting with @iskounen we decided to first add telemetry to see if the issue described in the ticket is actually happening before we implement a fix/investigate further

PR Checklist

  • I have tested my changes on the following platforms:
    • Android.
    • iOS.
  • I hid my changes behind a feature flag, or they don't need one.
  • I have included screenshots or videos at least on Android, or I have not changed the UI.
  • I have added tests, or my changes don't require any.
  • I added an app state migration, or my changes do not require one.
  • I have documented any follow-up work that this PR will require, or it does not require any.
  • I have added a changelog entry below, or my changes do not require one.

To the reviewers 👀

  • I would like at least one of the reviewers to run this PR on the simulator or device.
Changelog updates

Changelog updates

Cross-platform user-facing changes

iOS user-facing changes

Android user-facing changes

Dev changes

  • Add telemetry for less than 5 artworks being returned in discover daily

Need help with something? Have a look at our docs, or get in touch with us.

@ArtsyOpenSource

ArtsyOpenSource commented Oct 14, 2025 •

Copy link
Copy Markdown
Contributor

This PR contains the following changes:

  • Dev changes (Add telemetry for less than 5 artworks being returned in discover daily - lilyfromseattle)

Generated by 🚫 dangerJS against c3c0a86

Comment thread src/app/Scenes/InfiniteDiscovery/hooks/useArtworksTelemetry.ts Outdated
Comment thread src/app/Scenes/InfiniteDiscovery/hooks/useArtworksTelemetry.ts Outdated
@araujobarret

Copy link
Copy Markdown
Contributor

Important too, please add a changelog entry, dangerJS is warning us here.

araujobarret
araujobarret previously approved these changes Oct 16, 2025
export const useArtworksTelemetry = (artworks: InfiniteDiscoveryArtwork[]) => {
useEffect(() => {
if (artworks.length < 5) {
captureMessage(

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is having a breadcrumb what you want here or know how often this happens? if the latter, I suggest also looking into using volley for this kind of data! it would be more accessible and would be more actionable.

You can try something like

  volleyClient.send({
    type: "increment",
    name: "graphql-request-with-errors",
    tags: [`count:${artworks.length}`],
  })

Happy to help building a dashboard for this as well if it makes sense

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks for the suggestion! We ended up going that route

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice 🔥

@lilyfromseattle
lilyfromseattle merged commit 3af363c into main Oct 21, 2025
7 checks passed
@lilyfromseattle
lilyfromseattle deleted the lilyfromseattle/sentry-for-discover-daily-artworks branch October 21, 2025 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants