Devtrack-v0.4-Pulse-deployment#24
Merged
Merged
Conversation
- Introduced a new FastAPI route to serve the DevTrack dashboard HTML page. - Implemented dynamic API URL replacement in the dashboard for better integration. - Added a new HTML file for the dashboard, featuring real-time metrics visualization using Chart.js. - Enhanced styling and layout for improved user experience. Files: devtrack_sdk/controller/devtrack_routes.py, devtrack_sdk/dashboard/index.html
- Added `client_identifier_hash` column to `request_logs` for improved client tracking. - Implemented new methods in `DevTrackDB` for retrieving traffic metrics, error trends, performance metrics, and consumer segmentation data. - Updated Django middleware to hash sensitive client identifiers and improve client identification from multiple sources. - Enhanced FastAPI routes to expose new metrics endpoints for traffic, errors, performance, and consumer data. - Updated dashboard HTML to visualize traffic, error trends, performance metrics, and consumer segmentation. Files: devtrack_sdk/database.py, devtrack_sdk/django_middleware.py, devtrack_sdk/controller/devtrack_routes.py, devtrack_sdk/dashboard/index.html
- Added a new React-based dashboard for visualizing metrics, including traffic, error trends, performance metrics, and consumer segmentation. - Implemented dynamic API URL injection in the dashboard for seamless integration with FastAPI. - Enhanced Django middleware and FastAPI routes to serve the dashboard and its static assets. - Updated database schema and logging mechanisms to support new dashboard features. - Included necessary files for building and serving the dashboard, including configuration for Vite, Tailwind CSS, and Chart.js. Files: .gitignore, MANIFEST.in, pyproject.toml, setup.py, devtrack_sdk/database.py, devtrack_sdk/django_middleware.py, devtrack_sdk/django_urls.py, devtrack_sdk/django_views.py, devtrack_sdk/controller/devtrack_routes.py, devtrack_sdk/dashboard/*
- Added DevTrack SDK logo to the documentation homepage for better branding. - Improved layout by restructuring the alignment of the introductory text. Files: docs/index.md
- Added DevTrack SDK logo to the README for improved branding. - Updated the path for the logo in the documentation index to ensure correct display. Files: README.md, docs/index.md, static/devtrack-logo.png
- Changed email contact link to LinkedIn profile for improved accessibility and professional networking. Files: README.md
- Added a LinkedIn company link for DevTrackHQ to improve professional networking. - Included a badge for DevTrackHQ in the README for better visibility and branding. Files: README.md, static/company-logo.png
…board - Introduced a built-in real-time dashboard for visualizing API performance metrics, including traffic, error trends, and consumer segmentation. - Added new metrics API endpoints for traffic, errors, performance, and consumer data. - Enhanced FastAPI and Django integrations to support the new dashboard and metrics features. - Updated all version references to 0.4.0 across documentation and codebase. - Conducted extensive testing, achieving 100% pass rate across all test suites. Files: FINAL_TEST_SUMMARY.md, GITHUB_RELEASE_0.4.0.md, manual_test_verification.py, pyproject.toml, README.md, RELEASE_REVIEW_0.4.0.md, setup.py, TEST_REPORT_0.4.0.md, devtrack_sdk/__version__.py, devtrack_sdk/dashboard/*, docs/*, examples/*, tests/*
- Included a new section for Testing & Quality Assurance with a link to the Final Test Summary for detailed test results and verification. Files: docs/release/RELEASE_NOTES DevTrack SDK v0.4.0.md
- Changed the status of v0.4 from "In Progress" to "Released" and updated the release target to "Current" to accurately represent its availability. Files: docs/release/ROADMAP.md
…rackDB - Enhanced the connection management to check if the thread-local database connection is alive and reconnect if necessary. - Updated the query execution method to handle cases where column descriptions may not be available, providing fallback column names for consistency. - Added cleanup logic in tests to ensure proper closure of thread-local connections after use. Files: devtrack_sdk/database.py, tests/test_middleware.py
…ics APIs - Launched a major release of DevTrack SDK, transforming it into a full observability platform. - Added a built-in real-time dashboard for visualizing traffic, error trends, and performance metrics. - Introduced new metrics API endpoints for traffic, errors, performance, and consumer segmentation. - Enhanced database query performance and improved error handling in API routes. - Ensured backward compatibility with no breaking changes. Files: MERGE_REQUEST_0.4.0.md
- Deleted the MERGE_REQUEST_0.4.0.md file as it is no longer needed following the release of DevTrack SDK v0.4.0. - This cleanup helps maintain a tidy project structure and removes unnecessary documentation. Files: MERGE_REQUEST_0.4.0.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🚀 Release v0.4.0 - Pulse: Dashboard & Real-Time Metrics
📋 Overview
This MR introduces DevTrack SDK v0.4.0 (Pulse) - a major release that transforms DevTrack from a logging tool into a full observability platform with a built-in real-time dashboard and comprehensive metrics APIs.
🎯 Goal
✨ Major Features
📊 Built-in Real-Time Dashboard
Interactive Dashboard at
/__devtrack__/dashboardAuto-refresh (5–30 s) toggle
Modern UI built with React + Tailwind CSS
Zero configuration - works out of the box
🔌 New Metrics API Endpoints
JSON APIs for Integration:
GET /__devtrack__/metrics/traffic- Traffic counts over timeGET /__devtrack__/metrics/errors- Error trends and top failing routesGET /__devtrack__/metrics/perf- Performance metrics (p50/p95/p99)GET /__devtrack__/consumers- Consumer segmentation dataAll endpoints support
hoursquery parameter for time range filtering.👥 Consumer Segmentation
🛠️ Technical Implementation
📦 Changes
Added
/__devtrack__/dashboardImproved
Fixed
✅ Testing
Status: ✅ ALL TESTS PASSING
Total: 48+ tests passing
For detailed test results, see: Final Test Summary
🔄 Migration
No breaking changes! This is a backward-compatible release.
Simply upgrade:
The dashboard will be automatically available at
/__devtrack__/dashboardafter upgrade.📚 Documentation
🎯 Version Update
All version numbers updated from
0.3.0to0.4.0:devtrack_sdk/__version__.pysetup.pypyproject.tomlREADME.md📝 Checklist
🔗 Related