Make telemetry optional via Cargo feature flag #2

Open
opened 2026-04-21 20:51:10 +02:00 by kade · 0 comments
Owner

Overview

Add optional telemetry feature to mappy-server and remove reynard-specific defaults from public mappy packages.

Tasks

1. Add telemetry feature to mappy-server

[features]
default = []
telemetry = []

When telemetry is enabled:

  • Metrics endpoint /api/metrics is available
  • Error tracking endpoints are available
  • Prometheus metrics export

When telemetry is disabled:

  • Only basic CRUD endpoints available
  • No metrics collection

2. Remove reynard-specific defaults from public packages

mappy-server:

  • Remove default socket path /var/run/reynard/mappy.sock
  • Remove group ownership to reynard
  • Remove reynard-specific systemd dependencies

mappy-client:

  • Remove default socket path /var/run/reynard/mappy.sock
  • Default to no socket path (must be configured)

mappy-proxy:

  • Remove default socket path /var/run/reynard/mappy.sock
  • Default to no socket path (must be configured)

3. Update README.md

  • Remove "Reynard Integration" section
  • Remove references to reynard-specific deployment
  • Keep generic deployment instructions

4. Keep public packages

  • mappy-core: Core maplet library (MIT, public)
  • mappy-python: Python bindings (MIT, public)

5. Document telemetry feature

  • Add documentation for enabling telemetry feature
  • Provide examples of usage with and without telemetry
## Overview Add optional telemetry feature to mappy-server and remove reynard-specific defaults from public mappy packages. ## Tasks ### 1. Add telemetry feature to mappy-server ```toml [features] default = [] telemetry = [] ``` When telemetry is enabled: - Metrics endpoint `/api/metrics` is available - Error tracking endpoints are available - Prometheus metrics export When telemetry is disabled: - Only basic CRUD endpoints available - No metrics collection ### 2. Remove reynard-specific defaults from public packages **mappy-server:** - Remove default socket path `/var/run/reynard/mappy.sock` - Remove group ownership to reynard - Remove reynard-specific systemd dependencies **mappy-client:** - Remove default socket path `/var/run/reynard/mappy.sock` - Default to no socket path (must be configured) **mappy-proxy:** - Remove default socket path `/var/run/reynard/mappy.sock` - Default to no socket path (must be configured) ### 3. Update README.md - Remove "Reynard Integration" section - Remove references to reynard-specific deployment - Keep generic deployment instructions ### 4. Keep public packages - mappy-core: Core maplet library (MIT, public) - mappy-python: Python bindings (MIT, public) ### 5. Document telemetry feature - Add documentation for enabling telemetry feature - Provide examples of usage with and without telemetry
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
kade/mappy#2
No description provided.