Files
windmill/backend/windmill-common/src/feature_usage_oss.rs
T
53eb94659b feat(telemetry): extend feature-usage tracking beyond AI features (#10681)
* feat(telemetry): extend feature-usage tracking to long-tail features

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* docs: describe telemetry as product feature usage rather than AI usage

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* refactor(telemetry): trim disclosure copy and drop unused pick origin

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* fix(telemetry): count trigger fires per run and key hub picks from hub data

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* fix(telemetry): slugify hub keys and order both writers' upserts

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* fix(telemetry): key native trigger adoption by service so it matches fires

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* chore: update ee-repo-ref for native trigger adoption fix

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* refactor(telemetry): move feature-usage collection into the ee crate

* docs: point feature-telemetry at the moved registry and rust writer

* docs: correct the trigger-fire gate comment to match measured step counts

* docs: put the private-build caveat on the verification step

* chore: update ee-repo-ref to f079db9e7962a413b349c4ff8036080894f30771

This commit updates the EE repository reference after PR #725 was merged in windmill-ee-private.

Previous ee-repo-ref: 055adb80416f9339c9a28ae7fbaeadad30d74959

New ee-repo-ref: f079db9e7962a413b349c4ff8036080894f30771

Automated by sync-ee-ref workflow.

---------

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-authored-by: Ruben Fiszel <ruben@windmill.dev>
Co-authored-by: windmill-internal-app[bot] <windmill-internal-app[bot]@users.noreply.github.com>
2026-08-14 18:50:38 +02:00

27 lines
863 B
Rust

//! OSS fallback for anonymous feature-usage collection.
//!
//! Collection is a `private` feature (see `feature_usage_ee`). The public build
//! never sends a stats payload (`stats_oss`), so counting anything would only
//! write rows nothing reads: every entry point here is inert, and the
//! `log_feature_usage` endpoint accepts its posts without recording them.
use sqlx::{Pool, Postgres};
/// No action is recordable in the public build.
pub fn is_recordable_event(
_feature: &str,
_kind: &str,
_key: &str,
_entity_id: &str,
) -> bool {
false
}
/// No-op: nothing is counted in the public build.
pub fn log_feature_usage(_feature: &'static str, _kind: &'static str, _key: &str) {}
/// Nothing accumulates, so there is nothing to flush.
pub async fn flush_feature_usage(_db: &Pool<Postgres>) -> Result<(), sqlx::Error> {
Ok(())
}