Skip to content

Commit 3faa046

Browse files
committed
chore: prettier
1 parent 5cc006c commit 3faa046

File tree

3 files changed

+14
-11
lines changed

3 files changed

+14
-11
lines changed

packages/core/src/queries/clickhouse/spans/findLimited.ts

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,7 @@ function buildWhereClause(
4343
}
4444

4545
if (filters.experimentUuids && filters.experimentUuids.length > 0) {
46-
conditions.push(
47-
`experiment_uuid IN ({experimentUuids: Array(String)})`,
48-
)
46+
conditions.push(`experiment_uuid IN ({experimentUuids: Array(String)})`)
4947
params.experimentUuids = filters.experimentUuids
5048
}
5149

@@ -56,14 +54,10 @@ function buildWhereClause(
5654
params.createdAtFrom = toClickHouseDateTime(filters.createdAt.from)
5755
params.createdAtTo = toClickHouseDateTime(filters.createdAt.to)
5856
} else if (filters.createdAt?.from) {
59-
conditions.push(
60-
`started_at >= {createdAtFrom: DateTime64(6, 'UTC')}`,
61-
)
57+
conditions.push(`started_at >= {createdAtFrom: DateTime64(6, 'UTC')}`)
6258
params.createdAtFrom = toClickHouseDateTime(filters.createdAt.from)
6359
} else if (filters.createdAt?.to) {
64-
conditions.push(
65-
`started_at <= {createdAtTo: DateTime64(6, 'UTC')}`,
66-
)
60+
conditions.push(`started_at <= {createdAtTo: DateTime64(6, 'UTC')}`)
6761
params.createdAtTo = toClickHouseDateTime(filters.createdAt.to)
6862
}
6963

packages/core/src/queries/clickhouse/spans/getByDocumentLogUuidAndSpanId.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ export async function getByDocumentLogUuidAndSpanId({
1212
documentLogUuid: string
1313
spanId: string
1414
}): Promise<TypedResult<Span | undefined>> {
15-
const traceIds = await listTraceIdsByLogUuid({ workspaceId, logUuid: documentLogUuid })
15+
const traceIds = await listTraceIdsByLogUuid({
16+
workspaceId,
17+
logUuid: documentLogUuid,
18+
})
1619
if (traceIds.length === 0) return Result.nil()
1720

1821
for (const traceId of traceIds) {

packages/core/src/queries/clickhouse/spans/toSpan.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
import { LogSources, Span, SpanKind, SpanStatus, SpanType } from '@latitude-data/constants'
1+
import {
2+
LogSources,
3+
Span,
4+
SpanKind,
5+
SpanStatus,
6+
SpanType,
7+
} from '@latitude-data/constants'
28
import { SpanRow } from '../../../clickhouse/models/spans'
39

410
function parseDate(value: string): Date {

0 commit comments

Comments
 (0)