Skip to content

Releases: middleware-labs/mw-injector

Java Discovery: More priority to systemd service name itself

23 Jan 09:17
d7cfbd0

Choose a tag to compare

v1.0.5

Merge pull request #30 from middleware-labs/java-discovery/service-na…

Python Discovery - updated default service type

21 Jan 07:35
d977d2b

Choose a tag to compare

v1.0.4

Merge pull request #29 from middleware-labs/python-discovery/defaulti…

Python Discovery - 6 step service name resolution.

20 Jan 09:57
9975cbb

Choose a tag to compare

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

  1. Explicit Environment Variables (100% confidence) - OTEL_SERVICE_NAME, SERVICE_NAME, FLASK_APP
  2. Infrastructure Detection (85% confidence) - Container name extraction from Docker/Kubernetes
  3. VirtualEnv Path Analysis (75% confidence) - Extracts project names from paths like /project-name/.venv/bin/python
  4. Entry Point / Module Analysis (60% confidence) - Detects Uvicorn/Gunicorn patterns (main:app)
  5. Absolute Script Path Analysis (50% confidence) - Analyzes parent directory of entry point scripts
  6. 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

15 Jan 05:35
8d06da6

Choose a tag to compare

v1.0.2

Merge pull request #25 from middleware-labs/fix/node-container-servic…

Node Container Discovery

13 Jan 00:46
48a735f

Choose a tag to compare

BUG FIX:
Better service name for node containers.
Enabled default Node Discovery Option for to include node containers.

Python Discovery

08 Jan 04:55
078f893

Choose a tag to compare

Added Python Discovery for systemd services and python docker containers

Discovery Beta

06 Jan 05:48

Choose a tag to compare

v1.0.0-beta

removed print statements

First alpha release.

02 Dec 09:08
5041a9e

Choose a tag to compare

First alpha release. Pre-release
Pre-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)