Skip to main content

Integration Capabilities

Relvy’s GitHub integration enables code-aware root cause analysis by allowing AI agents to search and read your source code during incident investigations. This powerful capability provides implementation-level insights that traditional observability tools cannot offer.

How Code Analysis Enhances Investigations

When investigating production incidents, Relvy combines code analysis with traditional observability data to provide richer insights:
  1. Stack trace appears in logs: “NullPointerException at OrderService.processPayment(OrderService.java:245)“
  2. Relvy searches the codebase for OrderService.java
  3. AI reads the processPayment method implementation
  4. Relvy identifies that line 245 accesses paymentGateway without null checking
  5. AI traces back to see paymentGateway initialization logic
  6. Root cause identified: PaymentGateway fails to initialize when external config service is unavailable
This integrated approach allows Relvy to:
  • Understand why errors occur, not just that they occurred
  • Identify configuration issues and missing error handling in code
  • Trace error propagation through service boundaries
  • Suggest specific code locations that may need attention

Connecting to GitHub

Relvy supports two connection methods depending on your deployment:

SaaS Deployment

Use Relvy’s managed GitHub App for quick setup with OAuth authorization. View SaaS setup instructions →

Self-Hosted Deployment

Create your own GitHub App for complete control and private deployment. View self-hosted setup instructions →

Permissions and Scopes

Relvy’s GitHub App requests read-only permissions:
  • Contents: Read - Reading source code files and directories
  • Metadata: Read - Listing repositories, branches, and file structure
Read-Only Access: Relvy does not request or have write permissions. Your code cannot be modified, deleted, or changed in any way through Relvy’s GitHub integration.

Configuration

Once GitHub is connected, configure which repositories Relvy can analyze during investigations.

Repository Selection

  1. Navigate to Settings > Data Sources in your workspace
  2. Locate the “Configure Code Repositories” section
  3. Click Add Repository and select from your authorized repositories
  4. Verify the default branch (typically main or master)
  5. Click Save
Configure Repositories

How Relvy Uses Code During Investigations

Real-Time Code Analysis

When investigating an incident, Relvy’s AI agent operates iteratively:
  1. Initial Context: AI receives incident description and observability data
  2. Hypothesis Formation: AI identifies potential areas to investigate
  3. Code Search: AI searches relevant repositories for related code
  4. File Reading: AI reads specific files to understand implementation
  5. Analysis: AI correlates code with observability signals
  6. Refinement: AI continues searching and reading as needed
This iterative process allows Relvy to:
  • Adapt its investigation based on what it discovers
  • Follow code references and dependencies
  • Narrow down to specific functions or configuration issues
  • Provide evidence-based recommendations

Ask Relvy to trace a log message through your code

You can manually ask Relvy to give you more context about any log message / trace error from your codebase. Use the @code prefix in your prompts to do so. For example:
@code seeing this log line: ` [task:c708e3a3-b1ab-457e-88e4-e54a590b5d76] - ERROR - module_executor.py:421 - Error in module log_analysis_agent: 'value'`.

When does this happen?

Security and Privacy

Data Security

  • Read-Only Access: Relvy never modifies your code
  • Scoped Access: Only authorized repositories are accessible
  • No Training Data: Your code is never used to train AI models

Data Retention

  • Code snippets shown during investigations are stored as part of investigation notebooks
  • Notebooks follow your organization’s data retention policies
  • You can delete investigations (and associated code snippets) at any time

Access Control

  • Repository-Level Control: Choose exactly which repositories to connect
  • Revocable Access: Disconnect GitHub integration at any time
  • User Permissions: Relvy respects your team’s Relvy access controls
  • GitHub App Uninstall: Remove the GitHub App installation to revoke all access

Next Steps

Now that you understand GitHub integration: For support or questions about GitHub integration, contact us at support@relvy.com.
I