Skip to main content

Module insert

Module insert 

Source

ModulesΒ§

exemplar πŸ”’
otlp πŸ”’
Side-effect-free destination validation for prepared OTLP batches. Catalog failures propagate; row errors let the converter reject complete source-point fan-outs.

StructsΒ§

CreateAlterTableResult πŸ”’
Result of create_or_alter_tables_on_demand.
Exemplar
One observation belonging to a query-visible metric series. Metric names and inherited labels are shared until sparse batch construction.
ExemplarBatch
Validated batch of exemplars kept in sparse normalized form through schema reconciliation.
FlowMirrorTask πŸ”’
Inserter
InstantAndNormalInsertRequests
Split insert requests into normal and instant requests.
MetricInsertPreflight
MirrorLog πŸ”’
PreparedMetricInserts
Metric writes bound to the same resolved tables used by their exemplars.

EnumsΒ§

AutoCreateTableType
Hint for the table type to create automatically.

ConstantsΒ§

MAX_CONCURRENT_FLOW_LOOKUPS πŸ”’
MAX_MIRROR_PENDING_ROWS πŸ”’
Upper bound of rows buffered by detached flow mirror tasks on this frontend.
MIRROR_LOG_INTERVAL πŸ”’
How often at most each mirror event is reported.
MIRROR_LOG_NEVER_REPORTED πŸ”’
SPLUNK_PK_METADATA_ORDER_KEY
QueryContext extension key the Splunk HEC handler sets (to "true") on its identity path to request metadata-first primary-key ordering at table creation. It is absent for user-supplied pipelines, so their primary-key order is left untouched.

StaticsΒ§

MIRROR_DROP_LOG πŸ”’
MIRROR_FAILURE_LOG πŸ”’

FunctionsΒ§

admit_insert_row_counts
Admits all database totals before dispatching any batch of a finite request. Each batch keeps its own protocol options and target database. Admits a finite set of per-request row counts across one shared per-database pass and marks every context to prevent a duplicate downstream row debit.
admit_row_insert_batches
admit_write
Admits a finite request before it is split into internal writes. The returned context preserves accounting while preventing a second row debit.
apply_per_table_semantic_options
Folds the semantic keys of the table being created into table_options.
apply_retention_ttl_hint
Copies a retention ttl hint onto a physical metric table being created. Only ttl is copied: other ingest hints must not land on the shared physical table, and ttl=instant stays on the logical table for flow forwarding. Once the physical table exists, the hint has no effect.
build_create_table_expr
build_exemplar_metered_requests πŸ”’
collect_batcher_outputs πŸ”’
convert_rows_time_unit πŸ”’
convert_timestamp_value_data πŸ”’
count_insert_rows πŸ”’
exemplar_source_add_columns πŸ”’
fill_table_options_for_create
Fill table options for a new table by create type.
is_reserved_exemplar_tag
Returns whether name collides with a reserved or internal column on the exemplar table.
merge_alter_table_expr πŸ”’
Merges alter_expr into the pending ALTER of the same table, so each table gets one AddColumns. An ALTER LOGICAL TABLES procedure reads the metadata of each table once and fails on a second ALTER of the same table.
mirror_drop_log_millis πŸ”’
Milliseconds since the first call, so the drop log is rate limited on a monotonic clock instead of the wall clock, which can jump.
parse_per_table_semantic_index
Parses the per-table semantic index off the context extension. Call once per create-planning round: a first write creating N tables would otherwise re-parse the whole index N times. None when the request carries no index (logs, traces, Prom RW v1) or it fails to parse.
region_inserts_rows πŸ”’
Rows of row data carried by inserts. A request without a rows payload carries nothing to keep buffered and contributes zero.
release_mirror_pending_rows πŸ”’
Releases rows of the pending mirror budget.
reorder_splunk_primary_keys πŸ”’
Moves Splunk’s metadata tags (host, source, sourcetype) to the front of the primary key, keeping the relative order of the remaining tags.
request_is_native_histogram πŸ”’
reserve_mirror_pending_rows πŸ”’
Reserves rows of the pending mirror budget and returns the resulting pending row count. The caller must release_mirror_pending_rows exactly these rows once they are no longer buffered, whether it spawns the batch or drops it.
set_time_index_unit πŸ”’
table_is_native_histogram πŸ”’
table_time_index_unit πŸ”’
Returns the table’s time index unit, if any. A metric table without a timestamp column is left alone by the unit alignment: the metric engine rejects it anyway.
validate_column_count_match πŸ”’
validate_exemplar_table
Validates the fixed exemplar contract before writing or scanning a shared table.
validate_trace_table_model
Rejects writes from a different built-in trace model before schema mutation. Unstamped, explicitly created tables remain subject to normal schema validation.

Type AliasesΒ§

InserterRef
PerTableSemanticIndex
The parsed per-table semantic index: {schema -> {table -> {key -> value}}}, produced by the OTLP metrics encode path (where one metric can fan out into several tables with distinct keys) and the Prometheus remote write v2 path (where per-series metadata declares type/unit, and a series may override its target schema).