feat: add feature record (#8400)

This commit is contained in:
darkskygit 2024-10-10 08:30:02 +00:00
parent 8696043757
commit f833017e45
No known key found for this signature in database
GPG Key ID: 97B7D036B1566E9D

View File

@ -5,6 +5,7 @@ import cookieParser from 'cookie-parser';
import graphqlUploadExpress from 'graphql-upload/graphqlUploadExpress.mjs';
import { AuthGuard } from './core/auth';
import { ENABLED_FEATURES } from './core/config/server-feature';
import {
CacheInterceptor,
CloudThrottlerGuard,
@ -56,6 +57,7 @@ export async function createApp() {
.init(AFFiNE.metrics.telemetry.token)
.track('selfhost-server-started', {
version: AFFiNE.version,
features: Array.from(ENABLED_FEATURES),
});
}