Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@EmanuelJr
Copy link
Contributor

πŸ“ Description

This PR adds comprehensive session metrics tracking to capture and store detailed information about session activities, including data masking and analysis metrics. A new session_metrics table tracks these metrics per session and info type, providing better visibility into session behavior.

πŸ”— Related Issue

πŸš€ Type of Change

  • πŸ› Bug fix (non-breaking change which fixes an issue)
  • ✨ New feature (non-breaking change which adds functionality)
  • πŸ’₯ Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • πŸ“š Documentation update
  • 🎨 Style/UI update
  • ♻️ Code refactor
  • ⚑ Performance improvement
  • βœ… Test update
  • πŸ”§ Build configuration change
  • 🧹 Chore

πŸ“‹ Changes Made

  • Created new session_metrics table to store per-session metrics data
  • Added SessionMetrics model with fields for tracking masked and analyzed counts
  • Implemented IncrementSessionMaskedMetrics function to track data masking operations
  • Implemented IncrementSessionAnalyzedMetrics function to track data analysis operations
  • Implemented SetSessionMetricsEndedAt function to update session end times
  • Integrated metrics tracking into audit plugin lifecycle (WAL and session close)
  • Integrated analyzer metrics tracking into agent transport handler
  • Added database migrations (up/down) for the new session_metrics table

πŸ§ͺ Testing

Test Configuration:

  • Browser(s): N/A (backend changes)
  • OS: macOS

Tests performed:

  • Unit tests pass
  • Integration tests pass
  • Manual testing completed

πŸ“Έ Screenshots (if applicable)

βœ… Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • New and existing unit tests pass locally with my changes
  • I have checked my code and corrected any misspellings

πŸ“„ Additional Notes


@sandromello
Copy link
Contributor

βœ… Build Completed with Success, Version=1201.0.0-f71f1c6

@sandromello
Copy link
Contributor

βœ… Build Completed with Success, Version=1201.0.0-c2b6f69

@EmanuelJr EmanuelJr merged commit ba4ae4b into main Dec 19, 2025
13 checks passed
@EmanuelJr EmanuelJr deleted the feat/session-metrics branch December 19, 2025 12:04
@github-actions github-actions bot locked and limited conversation to collaborators Dec 19, 2025
@sandromello
Copy link
Contributor

βœ… Build Completed with Success, Version=1201.0.0-ace6f68

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants