Skip to content

ref(profiling): Rename capitalized static methods in Flamegraph class - #121929

Open
sentry[bot] wants to merge 1 commit into
masterfrom
seer/refactor-flamegraph-static-methods
Open

ref(profiling): Rename capitalized static methods in Flamegraph class#121929
sentry[bot] wants to merge 1 commit into
masterfrom
seer/refactor-flamegraph-static-methods

Conversation

@sentry

@sentry sentry Bot commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

This PR renames the static factory methods Example() and Empty() on the Flamegraph class to example() and empty() respectively. This change addresses a no-capitalized-function-calls linting warning, which flags direct calls to capitalized functions as they are typically reserved for React components.

The following files were updated:

  • static/app/utils/profiling/flamegraph.ts: Renamed static Example() to static example() and static Empty() to static empty().
  • static/app/views/performance/newTraceDetails/traceDrawer/details/profiling/profilePreview.tsx: Updated call from FlamegraphModel.Example() to FlamegraphModel.example().
  • static/app/components/events/interfaces/crashContent/stackTrace/flamegraph/stacktraceFlamegraph.tsx: Updated call from Flamegraph.Empty() to Flamegraph.empty().
  • static/app/views/explore/profiling/flamegraphProvider.tsx: Updated call from Flamegraph.Empty() to Flamegraph.empty().
  • static/app/components/profiling/flamegraph/flamegraph.tsx: Updated call from FlamegraphModel.Empty() to FlamegraphModel.empty().
  • static/app/components/profiling/flamegraph/continuousFlamegraph.tsx: Updated call from FlamegraphModel.Empty() to FlamegraphModel.empty().
  • static/app/utils/profiling/flamegraph.spec.tsx: Updated test call from Flamegraph.Empty() to Flamegraph.empty().

Legal Boilerplate

Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. and is gonna need some rights from me in order to utilize my contributions in this here PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.

Fixes CODING-CONVENTIONS-1R8

@sentry
sentry Bot requested review from a team as code owners August 13, 2026 01:44
@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Aug 13, 2026
@ryan953 ryan953 added the Trigger: getsentry tests Once code is reviewed: apply label to PR to trigger getsentry tests label Aug 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components Trigger: getsentry tests Once code is reviewed: apply label to PR to trigger getsentry tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant