feat(onboarding): Add metrics onboarding for Rust, Elixir, and Ruby#115998
Draft
dingsdax wants to merge 6 commits into
Draft
feat(onboarding): Add metrics onboarding for Rust, Elixir, and Ruby#115998dingsdax wants to merge 6 commits into
dingsdax wants to merge 6 commits into
Conversation
…Rust Add Elixir and Rust to platformProductAvailability and add METRICS to Ruby/Ruby-rack/Ruby-rails entries. Feature support verified against sentry-docs frontmatter: - Ruby (ruby, ruby-rack, ruby-rails): add METRICS (already had perf, profiling, logs) - Elixir: add PERFORMANCE_MONITORING, LOGS, METRICS (no profiling/replay in SDK) - Rust: add PERFORMANCE_MONITORING, LOGS, METRICS (no profiling/replay in SDK)
Add metrics onboarding snippets for Rust (sentry::metrics API) and Elixir (Sentry.Metrics module), wire them up in each platform's index.tsx, and register both platforms in withMetricsOnboarding. Also remove Elixir from withoutPerformanceSupport since it now supports performance monitoring. Update Ruby metrics snippets to use Sentry.metrics accessor style matching the official docs, use realistic example metric names, and add trailing docs links across all three SDKs for consistency with other platform onboarding files. Co-Authored-By: Claude <noreply@anthropic.com>
Contributor
📊 Type Coverage Diff✅ No new type safety issues introduced. Coverage: 93.63% |
…Ruby Verify that metrics onboarding content renders when METRICS is selected and does not render when it is not, following the same pattern as the existing .NET metrics spec. Co-Authored-By: Claude <noreply@anthropic.com>
The renderWithOnboardingLayout helper renders the main onboarding flow, not the standalone metricsOnboarding config. Switch to testing the config object directly, matching the Python metrics test pattern. Co-Authored-By: Claude <noreply@anthropic.com>
Rename destructured metrics to rustMetrics/elixirMetrics/rubyMetrics to avoid TS2451 global scope collision between script-scoped files. Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add metrics getting-started onboarding docs for Rust and Elixir, and improve the existing Ruby metrics onboarding to align with other SDKs and official documentation.
Rust — New
metrics.tsxwithsentry::metricsAPI (counter, gauge, distribution with.capture()builder pattern), requiringmetricsfeature flag inCargo.toml. Wired intorust/index.tsxand registered inwithMetricsOnboarding.Elixir — New
metrics.tsxwithSentry.Metricsmodule API (count, gauge, distribution with keyword args). Wired intoelixir/index.tsx, registered inwithMetricsOnboarding, and removed fromwithoutPerformanceSupport.Ruby — Updated existing
metrics.tsxto useSentry.metricsaccessor style (matching official SDK docs and YARD documentation) instead ofSentry::Metricsmodule constant. Replaced generic example names (test-counter,my_attribute) with realistic ones from the docs (button_click,browser: 'Firefox').All three SDKs — Added trailing "For more detailed information, see the metrics documentation"
ExternalLinkto match the pattern used by Python, Java, and .NET onboarding files.Code snippets were verified against the official docs at docs.sentry.io and the sentry-ruby SDK source for API accuracy.
Also includes product availability changes from a prior commit: adds
METRICSto Ruby/Rack/Rails and addsPERFORMANCE_MONITORING,LOGS,METRICSfor Elixir and Rust inplatformProductAvailability.