Files
oneuptime/Common/Server/Services/ProfileSampleService.ts
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

12 lines
492 B
TypeScript

import ClickhouseDatabase from "../Infrastructure/ClickhouseDatabase";
import AnalyticsDatabaseService from "./AnalyticsDatabaseService";
import ProfileSample from "../../Models/AnalyticsModels/ProfileSample";
export class ProfileSampleService extends AnalyticsDatabaseService<ProfileSample> {
public constructor(clickhouseDatabase?: ClickhouseDatabase | undefined) {
super({ modelType: ProfileSample, database: clickhouseDatabase });
}
}
export default new ProfileSampleService();