mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
- 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.
12 lines
492 B
TypeScript
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();
|