Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions backend/kitex_gen/coze/loop/observability/domain/filter/filter.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions backend/modules/observability/application/convertor/filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ func FilterFieldsDTO2DO(f *filter.FilterFields) *loop_span.FilterFields {
if field.IsCustom != nil {
fField.IsCustom = *field.IsCustom
}
if field.IsSystem != nil {
fField.IsSystem = *field.IsSystem
}
if field.ExtraInfo != nil {
fField.ExtraInfo = field.ExtraInfo
}
Expand Down Expand Up @@ -85,6 +88,12 @@ func FilterFieldsDO2DTO(f *loop_span.FilterFields) *filter.FilterFields {
if field.SubFilter != nil {
fField.SubFilter = FilterFieldsDO2DTO(field.SubFilter)
}
if field.IsCustom {
fField.IsCustom = ptr.Of(field.IsCustom)
}
if field.IsSystem {
fField.IsSystem = ptr.Of(field.IsSystem)
}
if field.ExtraInfo != nil {
fField.ExtraInfo = field.ExtraInfo
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,9 @@ func FilterFieldDTO2DO(field *filter.FilterField) *loop_span.FilterField {
if field.IsCustom != nil {
fField.IsCustom = *field.IsCustom
}
if field.IsSystem != nil {
fField.IsSystem = *field.IsSystem
}
return fField
}

Expand Down Expand Up @@ -343,6 +346,9 @@ func FilterFieldDO2DTO(field *loop_span.FilterField) *filter.FilterField {
if field.IsCustom {
fField.IsCustom = ptr.Of(field.IsCustom)
}
if field.IsSystem {
fField.IsSystem = ptr.Of(field.IsSystem)
}
return fField
}

Expand Down
1 change: 1 addition & 0 deletions backend/modules/observability/application/trace.go
Original file line number Diff line number Diff line change
Expand Up @@ -598,6 +598,7 @@ func (t *TraceApplication) GetTracesMetaInfo(ctx context.Context, req *trace.Get
fMeta[k] = &trace.FieldMeta{
ValueType: filter.FieldType(v.FieldType),
SupportCustomizableOption: ptr.Of(v.SupportCustom),
IsSystem: ptr.Of(v.IsSystem),
}
if v.FieldOptions != nil {
fMeta[k].FieldOptions = &filter.FieldOptions{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ type FieldMeta struct {
FilterTypes []loop_span.QueryTypeEnum `mapstructure:"filter_types" json:"filter_types"`
FieldOptions *loop_span.FieldOptions `mapstructure:"field_options" json:"field_options"`
SupportCustom bool `mapstructure:"support_custom" json:"support_custom"`
IsSystem bool `mapstructure:"is_system" json:"is_system"`
}

type TraceAttrTosCfg struct {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ struct FieldMeta {
2: required list<filter.QueryType> filter_types
3: optional filter.FieldOptions field_options
4: optional bool support_customizable_option
5: optional bool is_system
}

struct GetTracesMetaInfoRequest {
Expand Down
1 change: 1 addition & 0 deletions idl/thrift/coze/loop/observability/domain/common.thrift
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const PlatformType PlatformType_VeAgentkit = "ve_agentkit"
const PlatformType PlatformType_LoopAll = "loop_all"
const PlatformType PlatformType_InnerCozeloop = "inner_cozeloop"
const PlatformType PlatformType_InnerDoubao = "inner_doubao"
const PlatformType PlatformType_InnerDoubaoUnencrypted = "inner_doubao_unencrypted"
const PlatformType PlatformType_InnerPrompt = "inner_prompt"
const PlatformType PlatformType_InnerCozeBot = "inner_coze_bot"
const PlatformType PlatformType_TraceDetail = "trace_detail"
Expand Down
1 change: 1 addition & 0 deletions idl/thrift/coze/loop/observability/domain/filter.thrift
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ struct FilterField {
6: optional FilterFields sub_filter
7: optional bool is_custom
8: optional map<string, string> extra_info
9: optional bool is_system
}

struct FieldOptions {
Expand Down
Loading