Skip to content

Commit

Permalink
fix project card stats as well
Browse files Browse the repository at this point in the history
  • Loading branch information
dinmukhamedm committed Feb 25, 2025
1 parent 296668a commit a2c571c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions frontend/lib/clickhouse/spans.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,21 +157,19 @@ export const getSpanMetricsSummary = async (

export const getSpansCountInProject = async (
projectId: string,
types: SpanType[] = [SpanType.DEFAULT]
): Promise<{ count: number }[]> => {
const query = `
SELECT
count(*) as count
FROM spans
WHERE project_id = {projectId: UUID} AND span_type in {types: Array(UInt8)}
WHERE project_id = {projectId: UUID}
`;

const result = await clickhouseClient.query({
query,
format: "JSONEachRow",
query_params: {
projectId,
types,
},
});

Expand Down

0 comments on commit a2c571c

Please sign in to comment.