Releases: middleware-labs/mw-injector
Releases · middleware-labs/mw-injector
Java Discovery: More priority to systemd service name itself
v1.0.5 Merge pull request #30 from middleware-labs/java-discovery/service-na…
Python Discovery - updated default service type
v1.0.4 Merge pull request #29 from middleware-labs/python-discovery/defaulti…
Python Discovery - 6 step service name resolution.
Release Notes - Python Service Discovery Enhancement
Features
Prioritized Heuristic Engine for Python Service Name Detection
Implemented a multi-level, confidence-based service discovery system that improves Python service name detection accuracy across diverse deployment scenarios.
6-Level Priority System
- Explicit Environment Variables (100% confidence) -
OTEL_SERVICE_NAME,SERVICE_NAME,FLASK_APP - Infrastructure Detection (85% confidence) - Container name extraction from Docker/Kubernetes
- VirtualEnv Path Analysis (75% confidence) - Extracts project names from paths like
/project-name/.venv/bin/python - Entry Point / Module Analysis (60% confidence) - Detects Uvicorn/Gunicorn patterns (
main:app) - Absolute Script Path Analysis (50% confidence) - Analyzes parent directory of entry point scripts
- Working Directory Fallback (lowest confidence) - Uses current working directory
Improvements
- Enhanced generic name filtering to avoid false positives from
bin,src,lib - Environment variable extraction from
/proc/[pid]/environ - Optimized generic name checking with map-based lookup
- Better path handling and resolution
Bug Fixes
- Fixed service name detection for projects using virtual environments
- Resolved FastAPI and Flask application discovery issues
- Improved module pattern detection edge cases
Code Changes
- +90 / -49 lines in
pkg/discovery/process.go - Refactored
extractPythonServiceName()with confidence-level architecture - Added
extractFromEnviron()helper function - Converted
isGenericPythonName()to map-based lookup
Migration Notes
No breaking changes. The system gracefully falls back through detection levels, maintaining backward compatibility.
Related PR: #28
Merged: 3 hours ago into master
Node Container Discovery: Instrumented status fix
v1.0.2 Merge pull request #25 from middleware-labs/fix/node-container-servic…
Node Container Discovery
BUG FIX:
Better service name for node containers.
Enabled default Node Discovery Option for to include node containers.
Python Discovery
Added Python Discovery for systemd services and python docker containers
Discovery Beta
v1.0.0-beta removed print statements
First alpha release.
Reasonably unstable. Do not use in any production environment. Only for internal testing. Meant for testing it alongside mw-agent for just the java services(systemd, tomcat, docker-compose, standalone containers)