| name | featbit-opentelemetry |
| description | Expert guidance for setting up FeatBit's OpenTelemetry observability integration. Use when users ask about monitoring FeatBit, enabling metrics/traces/logs, configuring OTEL backends like Seq/Jaeger/Prometheus, or troubleshooting FeatBit performance. Do not use for application-level SDK instrumentation or Azure Monitor/Application Insights questions. |
| license | MIT |
| metadata | {"author":"FeatBit","version":"1.0.0","category":"platform"} |
FeatBit OpenTelemetry Integration
Guide users in setting up comprehensive observability for FeatBit's backend services using OpenTelemetry to publish metrics, traces, and logs.
Overview
FeatBit's three backend services are fully instrumented with OpenTelemetry:
What you get: Metrics (CPU, memory, network), traces (request flows, latency), and logs (application events, errors).
Quick Start Configuration
To enable OpenTelemetry, set these environment variables for each service:
ENABLE_OPENTELEMETRY=true
OTEL_SERVICE_NAME=featbit-api
OTEL_SERVICE_NAME=featbit-els
OTEL_SERVICE_NAME=featbit-das
OTEL_EXPORTER_OTLP_ENDPOINT=http://otel-collector:4317
Additional configuration options:
Ready-to-Run Example
Try the complete working example with Seq (logs), Jaeger (traces), and Prometheus (metrics):
git clone https://github.com/featbit/featbit.git
cd featbit
docker compose --project-directory . -f ./docker/composes/docker-compose-dev.yml build
docker compose --project-directory . -f ./docker/composes/docker-compose-otel-collector-contrib.yml up -d
docker compose --project-directory . -f ./docker/composes/docker-compose-otel.yml up -d
After starting, use FeatBit normally (create flags, evaluate, view insights), then access:
Common Use Cases
Setting Up Observability:
- Configure environment variables for each FeatBit service
- Deploy OpenTelemetry collector to receive telemetry data
- Connect to your backend (Seq, Jaeger, Prometheus, Datadog, New Relic, Grafana, or any OTEL-compatible system)
Monitoring & Troubleshooting:
- Track request latency, throughput, and resource utilization
- Use traces to identify bottlenecks in request flows
- Correlate logs with traces for debugging
- Set up alerts for performance anomalies
Production Deployment:
- Use unique
OTEL_SERVICE_NAME for each service to distinguish telemetry
- Configure appropriate exporter endpoints (http/https, ports)
- Set sampling rates to manage data volume
- Monitor all three services for complete visibility
Best Practices
- Always set unique
OTEL_SERVICE_NAME for each service
- Start with the ready-to-run example to understand the setup before customizing
- Configure sampling in production to manage telemetry data volume
- Correlate metrics, traces, and logs for comprehensive troubleshooting
References