Skip to content

Disable OpenObserve RUM/logs init for local dev - #145

Merged
buzz-code merged 1 commit into
mainfrom
claude/disable-rum-local-dev-q5nj8y
Aug 20, 2026
Merged

buzz-code merged 1 commit into
mainfrom
claude/disable-rum-local-dev-q5nj8y

Conversation

@buzz-code

Copy link
Copy Markdown
Owner

Summary

Skip connectToOpenobserve (RUM + logs init) when running in local dev, so no session/RUM traffic gets sent from local environments.

Change

client/src/openopserve.config.ts: wrap the connectToOpenobserve(options) call in if (!isDevMode). isDevMode was already computed (checks for dev/localhost/127.0.0.1 in the URL) but previously only used for the env field, not to gate init.


Generated by Claude Code

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NP8kzL8zhy6VJ6jgfUMNUm
Copilot AI lite review requested due to automatic review settings August 20, 2026 15:20
@buzz-code
buzz-code merged commit 95d5892 into main Aug 20, 2026
1 check passed

Copilot AI 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.

Pull request overview

Skip OpenObserve RUM/logs init in local dev, so local sessions not sent to OpenObserve.

Changes:

  • Wrap connectToOpenobserve(options) in if (!isDevMode) gate

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +18 to +20
if (!isDevMode) {
connectToOpenobserve(options);
}
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.

3 participants