1mod aggregate;
41mod classification;
42mod config;
43mod dispatcher;
44mod emit_buffer;
45mod entry;
46mod error;
47mod event_filter;
48mod gate;
49mod query;
50mod query_map;
51mod registry;
52mod rootcause;
53mod router;
54mod schema;
55mod sink;
56mod sinks;
57mod storage;
58mod test_util;
59mod topic;
60mod types;
61mod validate;
62
63pub use classification::{mask_field_value, FieldClassification, PII_MASK};
64pub use config::{install_config, EmitPolicy, NameOverride, SpectraConfig};
65pub use emit_buffer::{
66 current_emit_ts, drain, is_active, job_enabled, request_enabled, request_scope, with_emit_ts,
67 worker_scope, BufferedEmit,
68};
69pub use entry::{
70 set_sink, try_log_event, try_log_event_at, try_log_event_now, try_record_counter,
71 try_record_counter_at, try_record_counter_now, try_record_gauge, try_record_gauge_at,
72 try_record_gauge_now,
73};
74pub use error::{Error, Result};
75pub use event_filter::{
76 finalize_event_rows, matches_filter_item, paginate_event_rows, row_matches_filter,
77 row_matches_partition, sort_event_rows,
78};
79pub use query::{
80 EventAggregateRequest, EventAggregateResult, EventAggregationSpec, EventExploreView,
81 EventGridRow, EventMeasure, EventQuery, EventQueryResult, GridColumnDto, GridFilterItem,
82 GridFilterModel, GridFilterOperator, GridLogicOperator, GridPaginationModel, GridSortDirection,
83 GridSortItem, LabelMatcher, MetricPointDto, MetricsQuery, MetricsQueryResult, PartitionKind,
84 SchemaDetailDto, SchemaFieldDto, SchemaListItem, SliceDto, StatCardDto, TimeSeriesDto,
85};
86pub use query_map::{
87 aggregate_request_to_filter, aggregate_rows_to_result, event_query_to_filter, list_schemas,
88 metrics_query_to_range, points_to_metrics_result, rows_to_event_result, schema_detail,
89};
90pub use registry::{
91 collect_distinct_spectra_store_names, LoggingKind, SchemaFieldMetadata, SchemaMetadata,
92 SchemaMetadataInit, SchemaRegistry, SpectraLevel,
93};
94pub use rootcause::{
95 elapsed_ms, enabled as rootcause_enabled, persist_queue_drop_count, record_ndjson_append,
96 record_persist_queue_drop, record_storage_batch_write_events,
97 record_storage_batch_write_metrics, record_storage_write_events, record_storage_write_metrics,
98 RootcauseSnapshot,
99};
100pub use router::SpectraRouter;
101pub use schema::{EVENTS_TABLE, METRICS_TABLE};
102pub use sink::SpectraSink;
103pub use sinks::{ChainedSink, CountingSink, NdjsonFileSink, NoOpSink, RecordingSink};
104pub use storage::{
105 EventRow, EventStorageBackend, EventWriteRow, EventsAggregateFilter, EventsQueryFilter,
106 MetricPoint, MetricWriteRow, MetricsQueryRange, MetricsStorageBackend, NoOpEventBackend,
107 NoOpMetricsBackend, SharedEventBackend, SharedMetricsBackend, StorageEngineType,
108};
109pub use test_util::{reset_config_and_sink_for_test, GLOBAL_TEST_LOCK};
110pub use topic::{event_topic, metric_topic};
111pub use types::{MetricEmit, MetricKind, SpectraEvent};
112pub use validate::{
113 clamp_event_paging, is_valid_spectra_ident, validate_spectra_ident, MAX_EVENT_QUERY_LIMIT,
114 MAX_EVENT_QUERY_OFFSET, MAX_SPECTRA_IDENT_LEN,
115};
116
117pub use quark::inventory;