Skip to content

Commit f7809ff

Browse files
committed
improvement(logrocket): fail loudly on a non-numeric identify timestamp and cover releases in the catalog copy
1 parent 8e6abd5 commit f7809ff

4 files changed

Lines changed: 13 additions & 8 deletions

File tree

‎apps/docs/content/docs/en/integrations/logrocket.mdx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: LogRocket
3-
description: Summarize sessions and manage user data in LogRocket
3+
description: Summarize sessions, manage users, and tag releases in LogRocket
44
---
55

66
import { BlockInfoCard } from "@/components/ui/block-info-card"
@@ -31,7 +31,7 @@ LogRocket has no REST API for querying sessions, issues, or metrics directly —
3131

3232
## Usage Instructions
3333

34-
Integrate LogRocket into your workflow to request AI session highlights for a user, poll for the result, list exported session files, read the audit log, and create or update user profiles.
34+
Integrate LogRocket into your workflow to request AI session highlights for a user, poll for the result, list exported session files, read the audit log, create or update user profiles, and register releases so source maps decode their stack traces.
3535

3636

3737

‎apps/sim/blocks/blocks/logrocket.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ const HIGHLIGHTS_IDENTITY_FIELD = ['highlightsUserEmail', 'highlightsUserId'] as
1212
export const LogRocketBlock: BlockConfig = {
1313
type: 'logrocket',
1414
name: 'LogRocket',
15-
description: 'Summarize sessions and manage user data in LogRocket',
15+
description: 'Summarize sessions, manage users, and tag releases in LogRocket',
1616
longDescription:
17-
'Integrate LogRocket into your workflow to request AI session highlights for a user, poll for the result, list exported session files, read the audit log, and create or update user profiles.',
17+
'Integrate LogRocket into your workflow to request AI session highlights for a user, poll for the result, list exported session files, read the audit log, create or update user profiles, and register releases so source maps decode their stack traces.',
1818
docsLink: 'https://docs.sim.ai/integrations/logrocket',
1919
category: 'tools',
2020
integrationType: IntegrationType.Observability,

‎apps/sim/lib/integrations/integrations.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12049,8 +12049,8 @@
1204912049
"type": "logrocket",
1205012050
"slug": "logrocket",
1205112051
"name": "LogRocket",
12052-
"description": "Summarize sessions and manage user data in LogRocket",
12053-
"longDescription": "Integrate LogRocket into your workflow to request AI session highlights for a user, poll for the result, list exported session files, read the audit log, and create or update user profiles.",
12052+
"description": "Summarize sessions, manage users, and tag releases in LogRocket",
12053+
"longDescription": "Integrate LogRocket into your workflow to request AI session highlights for a user, poll for the result, list exported session files, read the audit log, create or update user profiles, and register releases so source maps decode their stack traces.",
1205412054
"bgColor": "#764ABC",
1205512055
"iconName": "LogRocketIcon",
1205612056
"docsUrl": "https://docs.sim.ai/integrations/logrocket",

‎apps/sim/tools/logrocket/identify_user.ts‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,13 @@ export const identifyUserTool: ToolConfig<
8787
if (params.name) body.name = params.name
8888
if (params.email) body.email = params.email
8989

90-
const timestamp = Number(params.timestamp)
91-
if (params.timestamp && Number.isFinite(timestamp)) body.timestamp = timestamp
90+
if (params.timestamp) {
91+
const timestamp = Number(params.timestamp)
92+
if (!Number.isFinite(timestamp)) {
93+
throw new Error('LogRocket Identify User: timestamp must be milliseconds since epoch')
94+
}
95+
body.timestamp = timestamp
96+
}
9297

9398
if (params.traits) {
9499
let parsed: unknown

0 commit comments

Comments
 (0)