v0.3.6
Default-on Prometheus exporter
From the changelog · release notes and binaries
Added
-
Default-on Prometheus exporter. The
metrics-httpcargo feature is now part ofskeg-server’s default set, so released binaries serve/metricsout of the box when--metrics-port <PORT>is passed. Drop it with--no-default-featuresto get a slim build; the--metrics-portflag stays parseable and logs a warning when the feature is off. -
OTLP/gRPC tracing exporter (
tracing-otlpfeature, default-on). WhenSKEG_TRACE_OTLP_ENDPOINT=<url>is set, spans flow to an OpenTelemetry collector through atracing-opentelemetrybridge with head-based sampling. Env knobs:SKEG_TRACE_OTLP_ENDPOINT: OTLP/gRPC URL (unset disables export).SKEG_TRACE_SAMPLE_RATE:[0.0, 1.0]head sampler, default1.0.SKEG_TRACE_RESOURCE_ATTRS:k1=v1,k2=v2resource labels.
Both binaries (
skeg,skeg-resp3) install the layer; the exporter is shut down cleanly on exit so in-flight spans flush. -
vsearchspan emitted from both protocol handlers (binary + RESP3), with structured fields: tenant, vindex, k, l_search, vector_dim, hits. Resource attributes includeservice.name=skegandservice.version=<crate version>. -
Documentation and operator assets. New
OBSERVABILITY.mdcovers the metric schema, a Prometheus scrape config, OTel collector integration, and the tracing overhead numbers.assets/grafana/ships an overview dashboard JSON,prometheus.yml, and a starterotel-collector-config.yaml. -
Tracing overhead microbench at
crates/skeg-server/benches/tracing_overhead.rs. Measured on M1 Pro: 1.54 ns/span with subscriber installed and filter dropping; 1116 ns/span when fully serialised. The G-O3.1 gate (under 5% relative to the no-subscriber baseline) clears with a ~70x margin.
Changed
skeg-vectorsort sites switched fromsort_unstable_by(|a, b| b.0.cmp(&a.0))tosort_unstable_by_key(|x| std::cmp::Reverse(x.0))where the key type isCopy. Identical ordering; quiets the new clippy 1.96unnecessary_sort_bylint without changing behaviour.
Versions bumped
skeg-server0.3.1 -> 0.3.2 (new default features, span instrumentation; depends on the same skeg-vector / skeg-resp3 as v0.3.5)