Skip to content

Commit ae2f2ed

Browse files
committed
feat(backend): fix
1 parent b256ba6 commit ae2f2ed

File tree

8 files changed

+72
-13
lines changed

8 files changed

+72
-13
lines changed

backend/modules/observability/application/openapi.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -788,4 +788,4 @@ func (p *OpenAPIApplication) AllowBySpace(ctx context.Context, workspaceID int64
788788
return true
789789
}
790790
return false
791-
}
791+
}

backend/modules/observability/application/openapi_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2578,4 +2578,4 @@ func TestOpenAPIApplication_AllowBySpace(t *testing.T) {
25782578
assert.Equal(t, tt.want, got)
25792579
})
25802580
}
2581-
}
2581+
}

backend/modules/observability/application/trace.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -826,4 +826,4 @@ func (t *TraceApplication) PreviewExportTracesToDataset(ctx context.Context, req
826826

827827
// 转换响应
828828
return tconv.PreviewResponseDO2DTO(serviceResp), nil
829-
}
829+
}

backend/modules/observability/application/trace_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1746,4 +1746,4 @@ func TestTraceApplication_PreviewExportTracesToDataset(t *testing.T) {
17461746
assert.Equal(t, tt.want, got)
17471747
})
17481748
}
1749-
}
1749+
}

backend/modules/observability/domain/trace/service/trace_service.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -865,12 +865,6 @@ func (r *TraceServiceImpl) getSpan(ctx context.Context, tenants []string, spanId
865865
}
866866
filter := &loop_span.FilterFields{
867867
FilterFields: []*loop_span.FilterField{
868-
{
869-
FieldName: loop_span.SpanFieldSpanId,
870-
FieldType: loop_span.FieldTypeString,
871-
Values: []string{spanId},
872-
QueryType: ptr.Of(loop_span.QueryTypeEnumEq),
873-
},
874868
{
875869
FieldName: loop_span.SpanFieldSpaceId,
876870
FieldType: loop_span.FieldTypeString,

backend/modules/observability/infra/repo/trace.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,8 +296,10 @@ func (t *TraceCkRepoImpl) getQueryTenantTables(ctx context.Context, tenants []st
296296
}
297297
for _, tableCfg := range tables {
298298
ret.SpanTables = append(ret.SpanTables, tableCfg.SpanTable)
299-
ret.AnnoTables = append(ret.AnnoTables, tableCfg.AnnoTable)
300-
ret.AnnoTableMap[tableCfg.SpanTable] = tableCfg.AnnoTable
299+
if tableCfg.AnnoTable != "" {
300+
ret.AnnoTables = append(ret.AnnoTables, tableCfg.AnnoTable)
301+
ret.AnnoTableMap[tableCfg.SpanTable] = tableCfg.AnnoTable
302+
}
301303
}
302304
}
303305
for _, tenant := range tenants {

backend/modules/observability/infra/rpc/auth/mocks/auth_client.go

Lines changed: 63 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

backend/modules/observability/infra/rpc/dataset/mocks/mock_datasetservice_client.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)