Skip to Content
SourcesOTLPSchema Reference

Schema Reference

Each OTLP signal type exposes a fixed set of fields that you can map to ClickHouse columns in the sink.mapping array.

OTLP Logs Fields

FieldTypeDescription
timestampstringLog record timestamp (RFC3339Nano)
observed_timestampstringWhen the log was observed (RFC3339Nano)
severity_numberuintNumeric severity (1—24)
severity_textstringText severity (e.g., “INFO”, “ERROR”)
bodystringLog message body
trace_idstringAssociated trace ID (hex)
span_idstringAssociated span ID (hex)
flagsuintLog record flags
dropped_attributes_countuintNumber of dropped attributes
resource_attributesmapResource-level attributes (e.g., service.name)
scope_namestringInstrumentation scope name
scope_versionstringInstrumentation scope version
scope_attributesmapScope-level attributes
attributesmapLog record attributes

OTLP Traces Fields

FieldTypeDescription
trace_idstringTrace ID (hex-encoded)
span_idstringSpan ID (hex-encoded)
parent_span_idstringParent span ID (hex-encoded)
trace_statestringW3C trace state
flagsuintSpan flags
namestringSpan name
kindstringSpan kind: INTERNAL, SERVER, CLIENT, PRODUCER, CONSUMER
start_timestampstringSpan start time (RFC3339Nano)
end_timestampstringSpan end time (RFC3339Nano)
duration_nsuintDuration in nanoseconds
status_codestringStatus: OK, ERROR, UNSET
status_messagestringStatus message (for errors)
dropped_attributes_countuintNumber of dropped attributes
dropped_events_countuintNumber of dropped events
dropped_links_countuintNumber of dropped links
eventsarraySpan events (array of {timestamp, name, attributes})
linksarraySpan links (array of {trace_id, span_id, trace_state, attributes})
resource_attributesmapResource-level attributes
scope_namestringInstrumentation scope name
scope_versionstringInstrumentation scope version
scope_attributesmapScope-level attributes
attributesmapSpan attributes

OTLP Metrics Fields

FieldTypeDescription
timestampstringData point timestamp (RFC3339Nano)
start_timestampstringMeasurement start time (RFC3339Nano)
metric_namestringMetric name
metric_descriptionstringMetric description
metric_unitstringMetric unit
metric_typestringType: gauge, sum, histogram, exponential_histogram, summary
aggregation_temporalitystringCUMULATIVE or DELTA (for sum/histogram)
is_monotonicboolWhether metric is monotonic (for sum)
flagsuintData point flags
value_doublefloatDouble value (for gauge/sum)
value_intintInteger value (for gauge/sum)
countuintSample count (for histogram/summary)
sumfloatSum of values (for histogram/summary/sum)
minfloatMinimum value (for histogram)
maxfloatMaximum value (for histogram)
bucket_countsarrayHistogram bucket counts
explicit_boundsarrayHistogram bucket boundaries
resource_attributesmapResource-level attributes
scope_namestringInstrumentation scope name
scope_versionstringInstrumentation scope version
scope_attributesmapScope-level attributes
attributesmapData point attributes
Last updated on