Skip to content

feat(logrocket): add LogRocket integration - #6678

Merged
waleedlatif1 merged 5 commits into
stagingfrom
feat/logrocket-integration
Aug 13, 2026
Merged

feat(logrocket): add LogRocket integration#6678
waleedlatif1 merged 5 commits into
stagingfrom
feat/logrocket-integration

Conversation

@waleedlatif1

Copy link
Copy Markdown
Collaborator

Summary

  • Add LogRocket integration covering every documented REST endpoint: Galileo Highlights (request + poll), Data Export, Audit Log, User Identification, and release registration
  • API-key auth (Authorization: token), scoped by org + project ID, with an advanced API host override for Private Cloud
  • Declare request.modelInput on the highlights question field so resolved secrets are projected to {{NAME}} placeholders before reaching Galileo's LLM

Type of Change

  • New feature

Testing

Tested manually. Added a model-input projection test and verified it fails without the selector.

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

@vercel

vercel Bot commented Aug 13, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
docs Skipped Skipped Aug 13, 2026 9:53pm

Request Review

@cursor

cursor Bot commented Aug 13, 2026

Copy link
Copy Markdown

PR Summary

Medium Risk
New third-party API surface and credential handling (API key, org/project scope); highlights question projection is security-sensitive but follows the established model-input pattern. Deployments icon change is cosmetic only.

Overview
Adds a new LogRocket workflow block (observability / API key auth) with six operations: request and poll Galileo session highlights, list exported session files, read audit logs, identify users, and register releases. The block is registered in the block registry, integrations catalog, docs nav, and icon mappings, with a new LogRocketIcon and a full integrations doc page.

Tool wiring maps each operation to logrocket_* tools; highlights request projects resolved secrets in the question field via request.modelInput so Galileo sees placeholder text instead of raw secret values.

Also swaps the deployments block icon from SimDeploymentsIcon to the shared Rocket icon from @sim/emcn/icons in docs and sim icon maps (auto-generated files updated accordingly).

Reviewed by Cursor Bugbot for commit 3a758aa. Configure here.

@greptile-apps

greptile-apps Bot commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

The PR adds a registered LogRocket block with six REST operations, documentation, generated metadata, and model-input projection for Galileo questions.

  • Adds Highlights request and polling, session exports, audit logs, user identification, and release registration.
  • Adds LogRocket block configuration, icons, registry entries, integration metadata, and documentation.
  • Adds local validation for Highlights identities and time ranges, string-safe cursor handling, and a model-input selector test.

Confidence Score: 5/5

The PR appears safe to merge because no blocking failure remains from the previous review threads.

The previously reported identity validation, whitespace handling, cursor typing, and configuration-documentation issues are fixed, while the response-ID and terminal-status reports were invalidated by the documented API behavior.

Important Files Changed

Filename Overview
apps/sim/blocks/blocks/logrocket.ts Defines the LogRocket block UI, operation routing, parameter aliases, outputs, templates, and skills; the reviewed prior mapping and comment concerns do not remain blocking.
apps/sim/tools/logrocket/request_highlights.ts Implements Highlights requests with model-input projection, trimmed identity handling, time-range validation, and the documented POST id response.
apps/sim/tools/logrocket/get_highlights.ts Implements Highlights polling and exposes the documented PENDING, READY, and FAILED status flow.
apps/sim/tools/logrocket/list_exported_sessions.ts Implements Data Export pagination while preserving opaque cursors as strings.
apps/sim/tools/logrocket/get_audit_logs.ts Implements paginated audit-log retrieval with normalized entries and string cursors.
apps/sim/tools/logrocket/identify_user.ts Implements profile updates with trimmed optional fields, timestamp validation, and JSON-object trait parsing.
apps/sim/tools/logrocket/utils.ts Centralizes scoped URL construction, API-key authorization headers, and response error parsing.
apps/sim/tools/model-input-selectors.test.ts Verifies that only the Galileo question is classified as model input.

Sequence Diagram

sequenceDiagram
  participant Workflow as Sim Workflow
  participant Tool as LogRocket Tool
  participant API as LogRocket API
  Workflow->>Tool: Resolved block inputs
  Tool->>Tool: Validate and transform parameters
  Tool->>API: Authenticated REST request
  API-->>Tool: Operation response
  Tool-->>Workflow: Normalized block outputs
Loading

Reviews (4): Last reviewed commit: "fix(logrocket): declare the release vers..." | Re-trigger Greptile

Comment thread apps/sim/tools/logrocket/request_highlights.ts
Comment thread apps/sim/tools/logrocket/get_highlights.ts
Comment thread apps/sim/tools/logrocket/request_highlights.ts Outdated
Comment thread apps/sim/tools/logrocket/list_exported_sessions.ts
Comment thread apps/sim/blocks/blocks/logrocket.ts
@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cursor review

Comment thread apps/sim/tools/logrocket/request_highlights.ts Outdated
@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cursor review

Comment thread apps/sim/blocks/blocks/logrocket.ts
Comment thread apps/sim/blocks/blocks/logrocket.ts
@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cursor review

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit 3a758aa. Configure here.

@waleedlatif1
waleedlatif1 merged commit 58b5ee9 into staging Aug 13, 2026
24 checks passed
@waleedlatif1
waleedlatif1 deleted the feat/logrocket-integration branch August 13, 2026 22:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant