Skip to content

Commit

Permalink
feat(eap): Add the TimeSeriesProcessor to entities/eap_spans (#6195)
Browse files Browse the repository at this point in the history
@wmak can you check this works in dev? There are no tests for EAP spans
yet until your sentry acceptance tests are done, so this is completely
blind for now
  • Loading branch information
colin-sentry authored Aug 13, 2024
1 parent ec81445 commit d4b164c
Showing 1 changed file with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ schema:
{ name: segment_id, type: UInt, args: { size: 64 } },
{ name: segment_name, type: String },
{ name: is_segment, type: UInt, args: { size: 8 } },
{ name: time, type: DateTime }, # virtual column, used by TimeSeriesProcessor
{ name: timestamp, type: DateTime }, # virtual column, mapped to _sort_timestamp
{ name: start_timestamp, type: DateTime64, args: { precision: 6 } },
{ name: end_timestamp, type: DateTime64, args: { precision: 6 } },
{ name: duration_ms, type: UInt, args: { size: 32 } },
Expand All @@ -34,7 +36,7 @@ storages:
- mapper: ColumnToColumn
args:
from_table_name: null
from_col_name: start_timestamp
from_col_name: timestamp
to_table_name: null
to_col_name: _sort_timestamp
subscriptables:
Expand All @@ -54,12 +56,19 @@ storages:
storage_selector:
selector: DefaultQueryStorageSelector

query_processors: []
query_processors:
- processor: TimeSeriesProcessor
args:
time_group_columns:
time: timestamp
time_parse_columns:
- start_timestamp
- end_timestamp

validate_data_model: error
validators:
- validator: EntityRequiredColumnValidator
args:
required_filter_columns: [organization_id]

required_time_column: start_timestamp
required_time_column: timestamp

0 comments on commit d4b164c

Please sign in to comment.