76 Commits

Author SHA1 Message Date
Nawaz Dhandala
e0f1da768b Refactor and clean up code across multiple components and services
- Simplified useEffect dependencies in ProfileTimeline component.
- Streamlined option rendering in ProfileTypeSelector component.
- Reformatted TelemetryDocumentation component for better readability.
- Improved formatting and consistency in AuthenticationSettings and Branding pages.
- Removed unused imports in ProfileViewPage.
- Enhanced code readability in StatusPageDelete component.
- Consolidated RouteMap definitions for better clarity.
- Cleaned up API response handling in PublicDashboard and DashboardViewPage.
- Refactored ProfileSample and DashboardAPI for improved code structure.
- Updated migration scripts for better readability and consistency.
- Enhanced incident and profile aggregation services for better clarity.
- Cleaned up telemetry ingestion service for improved readability.
- Improved test cases for OtelProfilesIngestService for better clarity.
2026-03-27 13:01:32 +00:00
Nawaz Dhandala
147ff47aa2 feat: Add ProfilesService and ingestion service for OpenTelemetry profiles
- Introduced `profiles_service.proto` to define the ProfilesService for exporting resource profiles.
- Implemented `OtelProfilesIngestService` to handle ingestion of profiles, including processing and flushing to the database.
- Created `ProfilesQueueService` to manage profile ingestion jobs.
- Added comprehensive tests for `OtelProfilesIngestService`, covering stack frame resolution, timestamp parsing, and row building for profiles and samples.
2026-03-27 10:15:55 +00:00
Nawaz Dhandala
8b97807991 feat: update SQL query in ExceptionInstance model to remove unnecessary ORDER BY clause 2026-03-16 15:47:18 +00:00
Nawaz Dhandala
dff3c50a97 feat: update SQL queries in Log and Span models to remove unnecessary ORDER BY clauses 2026-03-16 15:37:30 +00:00
Nawaz Dhandala
d00d7cb19f feat: update SQL queries in ExceptionInstance, Log, and Span models to include GROUP BY clauses 2026-03-16 15:37:02 +00:00
Nawaz Dhandala
5f660bae02 feat: refactor table names in analytics models to use AnalyticsTableName enum 2026-03-16 12:43:55 +00:00
Nawaz Dhandala
d327edb165 feat: update table names to include version suffix for ExceptionInstance, Log, Metric, MonitorLog, and Span models 2026-03-16 12:27:49 +00:00
Nawaz Dhandala
de7990c41e feat: add skipIndex configurations and projections in ExceptionInstance model; update codec in MonitorLog and Span models 2026-03-16 12:16:36 +00:00
Nawaz Dhandala
8f9e5a46fa feat: update column types to MapStringString and BigNumber, and add projections in Log, Metric, and Span models 2026-03-16 12:08:30 +00:00
Nawaz Dhandala
046482a2a8 feat: upgrade time field type to DateTime64 for improved precision in MonitorLog model 2026-03-16 11:54:33 +00:00
Nawaz Dhandala
3568d766ea feat: upgrade time field type to DateTime64 for enhanced precision in ExceptionInstance model 2026-03-16 11:49:32 +00:00
Nawaz Dhandala
6629cc9023 feat: upgrade time fields to DateTime64 for improved precision in Metric and Span models 2026-03-16 11:46:45 +00:00
Nawaz Dhandala
9a47b02a0c feat: upgrade time column to DateTime64 for nanosecond precision in logs 2026-03-16 10:26:03 +00:00
Nawaz Dhandala
d8bbe4b2cd feat(Span): add hasException column and optimize Span table with new skip indexes and codecs 2026-03-14 12:08:04 +00:00
Nawaz Dhandala
de0d923c63 fix(Log): correct formatting of description for dropped attributes count column in log model 2026-03-12 21:39:44 +00:00
Nawaz Dhandala
03c38be19c feat(Logs): add new fields for observed time, dropped attributes count, and flags in log model and migration 2026-03-12 21:37:57 +00:00
Nawaz Dhandala
28c4eeb6ff feat: Add retentionDate column and TTL support to telemetry models
- Introduced retentionDate column to Log, Metric, Span, and MonitorLog models for per-service data retention.
- Implemented TTL configuration using retentionDate to enable automatic data deletion in ClickHouse.
- Added skip indexes for improved query performance on relevant columns in Log, Span, Metric, and Exception models.
- Updated ingestion services to compute and store retentionDate based on service-specific retention settings.
- Created a data migration to add retentionDate columns and skip indexes to existing telemetry tables.
- Deprecated the cron job for data deletion, transitioning to ClickHouse's native TTL mechanism.
2026-03-12 11:54:26 +00:00
Nawaz Dhandala
9167769135 feat: Improve code formatting and descriptions in ExceptionInstance, ExceptionDetail, and related components 2026-02-26 13:48:42 +00:00
Nawaz Dhandala
ef9d99dd2b feat: Enhance exception handling with release and environment tracking
- Added "Release" and "Environment" columns to the TelemetryExceptionTable and OccurrenceTable components for better context on exceptions.
- Introduced StackFrameViewer component to display structured stack frames from exceptions, supporting various programming languages.
- Implemented StackTraceParser utility to parse raw stack traces into structured frames, identifying application vs. library code.
- Updated OtelTracesIngestService to extract release and environment information from resource attributes and include parsed frames in exception payloads.
- Enhanced ExceptionUtil to handle release and environment properties in exception status updates.
- Added comprehensive tests for StackTraceParser covering multiple programming languages and edge cases.
2026-02-26 13:04:07 +00:00
Nawaz Dhandala
8e399accc1 feat: add enableMCP property and decorator to various models for enhanced MCP functionality 2025-12-18 11:49:01 +00:00
Nawaz Dhandala
bc234deb0e style(analytics): simplify empty projections to [] in Log/Metric/Span and remove stray blank line in TableManegement 2025-10-22 18:08:18 +01:00
Nawaz Dhandala
1300c4e667 feat(analytics): add materialized view support to analytics models and table management
- add MaterializedView type
- wire materializedViews into AnalyticsBaseModel (constructor param, property, getter/setter)
- implement materialized view processing in AnalyticsTableManagement (validation, existence check, creation)
2025-10-22 18:04:51 +01:00
Nawaz Dhandala
988d5d327c style(analytics): remove attribute projection definitions from Log, Metric and Span models 2025-10-22 17:52:44 +01:00
Nawaz Dhandala
353d894394 feat(analytics): mark attributeKeys as required on Log, Metric and Span models 2025-10-21 22:22:48 +01:00
Nawaz Dhandala
72e2edd49d feat(analytics): add attributeKeys column to Log/Metric/Span, update projections and add migration 2025-10-21 22:04:49 +01:00
Nawaz Dhandala
1be494169d fix(analytics): rename ClickHouse projections to singular 'AttributeProjection' for Log, Metric and Span models 2025-10-21 21:05:52 +01:00
Nawaz Dhandala
70714b2f21 feat(analytics): add ClickHouse projections for attributes to Log, Metric and Span models
Add projection definitions (ALTER TABLE ...) to Log, Metric and Span analytics models to extract distinct attribute keys per project (LogItemAttributesProjection, MetricItemAttributesProjection, SpanItemAttributesProjection).

style(telemetry): simplify empty query object in DeleteOldData.ts
2025-10-21 19:46:48 +01:00
Nawaz Dhandala
c9e57fcb19 feat(analytics): add Projection type and use typed projections in models and table creation 2025-10-21 15:46:57 +01:00
Nawaz Dhandala
8c6bc331a4 style(analytics): normalize AnalyticsTableColumn constructor formatting
Reformat multi-line new AnalyticsTableColumn(...) expressions to a consistent style and tidy up minor inline description/spacing in ExceptionInstance, Log, Metric and Span models.
2025-10-21 14:56:01 +01:00
Nawaz Dhandala
20129e606a feat(analytics): add projections support to models and apply projection statements on table creation
- add projections param, backing field and accessors to AnalyticsBaseModel (defaults to [])
- update analytics models (ExceptionInstance, Log, Metric, MonitorLog, Span) to include projections: []
- execute each model.projections SQL statement in AnalyticsTableManagement when creating tables
2025-10-21 14:37:22 +01:00
Nawaz Dhandala
55e0eede68 refactor(analytics): extract AnalyticsTableColumn definitions into local variables
Move repeated new AnalyticsTableColumn(...) definitions into named constants and reuse them in tableColumns for Log, Metric, Span, MonitorLog and ExceptionInstance models. Reduces duplication and improves readability without changing behavior.
2025-10-21 14:18:57 +01:00
Nawaz Dhandala
b84695feb9 fix: remove TelemetryType references and indexAttributes calls from various services 2025-10-15 17:21:56 +01:00
Nawaz Dhandala
b77973441d fix: remove TelemetryAttribute and TelemetryAttributeService references and related code 2025-10-15 16:26:05 +01:00
Simon Larsen
73f248c367 fix: improve error handling in CommonModel and update mock function to return a promise in BillingServiceHelper 2025-06-11 10:27:42 +01:00
Simon Larsen
f2f29398ee refactor: remove KeyValueNestedModel and clean up related code in CommonModel 2025-06-09 11:57:20 +01:00
Simon Larsen
41d0c4034d refactor: remove NestedModel support and clean up related code in AnalyticsBaseModel and StatementGenerator 2025-06-09 11:54:58 +01:00
Simon Larsen
ff8d19443b feat: update singular and plural names for ExceptionInstance model 2025-06-06 13:48:08 +01:00
Simon Larsen
233bc1b70d feat: Add LessThanOrNull and GreaterThanOrNull types with corresponding query helpers and examples 2025-05-15 20:10:53 +01:00
Simon Larsen
13354c7bde fix: Update partitionKey to use sipHash64(projectId) % 16 for consistency across analytics models 2025-05-08 14:03:52 +01:00
Simon Larsen
63f7c13352 fix: Update partitionKey to use time-based formatting in multiple models 2025-05-07 18:28:59 +01:00
Simon Larsen
55ea197b59 fix: Add missing comma in AnalyticsModels and clean up whitespace in MonitorLog and DeleteMonitorLogOlderThan24Hours 2025-05-05 21:18:57 +01:00
Simon Larsen
962dea330f feat: Implement MonitorLog model with CRUD operations and access control 2025-05-05 21:01:31 +01:00
Simon Larsen
5c8021e2ec refactor: Simplify partitionKey definition in Analytics models and improve job initialization in Probe 2025-04-25 14:17:00 +01:00
Simon Larsen
77e9d5d66b feat: Add partitionKey to AnalyticsBaseModel and related models for improved data organization 2025-04-25 14:00:47 +01:00
Simon Larsen
d5565a6d29 refactor: Remove unnecessary realtime events configuration and improve async insert settings in database statements 2025-04-25 12:48:45 +01:00
Simon Larsen
82cd02b8ba refactor: replace MetricNameAndUnit with MetricType across dashboard components 2025-04-01 21:07:56 +01:00
Simon Larsen
496696e9e6 fix: correct default log limit to 250 in telemetry logs viewer 2025-03-24 16:45:00 +00:00
Simon Larsen
d590f7ff2a refactor: update table names and sort/primary keys in analytics models 2025-03-24 14:41:24 +00:00
Simon Larsen
06db041bd4 refactor: clean up formatting and improve readability in TelemetryAttribute model and related files 2025-03-19 15:02:02 +00:00
Simon Larsen
5147f6da82 feat: add attributes column to TelemetryAttribute model and update related services 2025-03-19 14:25:01 +00:00