Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

docs: fix Ruby error tracking examples (#59082)

Catalin Irimie2718d0bededc
diff --git a/docs/onboarding/error-tracking/ruby.tsx b/docs/onboarding/error-tracking/ruby.tsx
index 779b5ed738da..c92048a170f7 100644
--- a/docs/onboarding/error-tracking/ruby.tsx
+++ b/docs/onboarding/error-tracking/ruby.tsx
@@ -37,8 +37,8 @@ export const getRubySteps = (ctx: OnboardingComponentsContext): StepDefinition[]
rescue => e
posthog.capture_exception(
e,
- distinct_id: 'user_distinct_id',
- properties: {
+ 'user_distinct_id',
+ {
custom_property: 'custom_value'
}
)
@@ -55,7 +55,7 @@ export const getRubySteps = (ctx: OnboardingComponentsContext): StepDefinition[]
| --- | --- | --- |
| \`exception\` | \`Exception\` | The exception object to capture (required) |
| \`distinct_id\` | \`String\` | The distinct ID of the user (optional) |
- | \`properties\` | \`Hash\` | Additional properties to attach to the exception event (optional) |
+ | \`additional_properties\` | \`Hash\` | Additional properties to attach to the exception event (optional) |
`}
</Markdown>
</>