v0.7.1 - OpenTelemetry Observability Integration (Wave 1)2026-02-07
v0.7.1 - OpenTelemetry Observability Integration (Wave 1)
🎯 Overview
This release introduces production-grade observability for pyproc with OpenTelemetry distributed tracing support. Monitor your Go-Python IPC workloads with minimal overhead (<1% with 1% sampling).
✨ New Features
Distributed Tracing
- OpenTelemetry Integration: Full W3C Trace Context propagation across Go↔Python boundary
- Automatic Span Creation: All Pool.Call() invocations automatically traced
- Opt-In Design: Backward compatible - enable via pool.WithTracer()
- Zero Overhead No-Op Mode: <0.5% overhead when tracing disabled
- Production Ready: <1% overhead with 1% sampling (target: <3%)
Telemetry Package (pkg/pyproc/telemetry/)
- TracerProvider: Configurable OpenTelemetry tracer with sampling strategies
- W3C Trace Context: Standard-compliant context propagation
- Exporter Support: stdout (MVP), OTLP/Jaeger planned for Wave 2
- Resource Attributes: Service name, version, runtime information
Python Integration
- W3C Trace Context Extraction: Automatic parent trace linking
- Graceful Degradation: Works without OpenTelemetry installed
Performance
| Configuration | Overhead | Notes |
|--------------|----------|-------|
| No-op (disabled) | 0.03 µs/op | Effectively zero |
| 0% sampling | <0.5% | Sampling decision only |
| 1% sampling | <1% | Production target ✅ |
| 100% sampling | <3% | Worst case |
📚 Documentation
- New Guide: docs/observability.md (650 lines)
- Distributed Tracing
- Metrics (Prometheus)
- Structured Logging
- Troubleshooting
- README Updated: Observability quick start examples
- Backward Compatibility: Protocol changes documented
🔧 Configuration Example
``go
import (
"github.com/YuminosukeSato/pyproc/pkg/pyproc"
"github.com/YuminosukeSato/pyproc/pkg/pyproc/telemetry"
)
// Initialize telemetry
provider, shutdown := telemetry.NewProvider(telemetry.Config{
ServiceName: "my-service",
Enabled: true,
SamplingRate: 0.01, // 1% sampling
ExporterType: "stdout",
})
defer shutdown(context.Background())
// Create pool with tracing
pool, _ := pyproc.NewPool(poolOpts, logger)
pool.WithTracer(provider.Tracer("my-service"))
// All calls now traced automatically
result, _ := pool.Call(ctx, "predict", request, &response)
`
🧪 Testing
- 9 Benchmark Functions: Comprehensive performance validation
- Performance Gates: Automated overhead checks in CI
- Integration Tests: End-to-end tracing scenarios
- All Tests Pass: Race detector clean
🔄 Backward Compatibility
✅ Fully backward compatible
- Tracing is opt-in via WithTracer() method
- Zero overhead when disabled (nil checks)
- Old Python workers ignore headers field gracefully
- No breaking changes to Public API
📦 Installation
Go:
`bash
go get github.com/YuminosukeSato/pyproc@v0.7.1
`
Python:
`bash
pip install pyproc-worker>=0.1.0
`
🚀 What's Next (Wave 2 / v0.7.2+)
- [ ] Jaeger/OTLP exporter integration
- [ ] Prometheus Metrics API integration
- [ ] Python full tracing (with tracer.startascurrent_span()`)
- [ ] Configuration API completion
- [ ] Multi-cloud integration (GCP/AWS/Azure/Datadog)
📝 Full Changelog
Merged PRs:
- #99 feat: OpenTelemetry observability integration (Wave 1 / v0.7.1)
Commits:
- 3caabd1 feat: OpenTelemetry observability integration (Wave 1 / v0.7.1) (#99)
Contributors:
- @YuminosukeSato
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
<!-- Release notes generated using configuration in .github/release.yml at v0.7.1 -->
What's Changed
New Features
* feat: OpenTelemetry observability integration (Wave 1 / v0.7.1) by @YuminosukeSato in https://github.com/YuminosukeSato/pyproc/pull/99
Full Changelog: https://github.com/YuminosukeSato/pyproc/compare/v0.7.0...v0.7.1
v0.7.0: Per-worker Dispatch Serialization2026-02-06
What's New
Per-worker Dispatch Serialization
- Serialize dispatch per worker with per-worker inflight gates and backpressure (#98)
- Stabilized Unix socket test paths with shared helper
- Pool concurrency coverage tests
- Document inflight limits in deployment guide
Bug Fixes
- Fix SA2001 empty critical section in pool shutdown
Full Changelog
https://github.com/YuminosukeSato/pyproc/compare/v0.6.1...v0.7.0
v0.6.12026-02-06
What's New
Documentation
- Cloud authentication guide (GKE, EKS, AKS) (#87)
- Secrets management guide (Secrets Store CSI Driver) (#87)
ExternalWorker Improvements
- Retry with exponential backoff for sidecar startup (#84)
- Doc comments with deadline guidance for Start()
Full Changelog
https://github.com/YuminosukeSato/pyproc/compare/v0.6.0...v0.6.1
v0.6.02026-02-06
What's New
Multi-cloud Authentication Support
- GKE Workload Identity Federation examples (Helm + Kustomize) (#82)
- EKS IRSA examples (Helm + Kustomize) (#83)
- AKS Entra Workload ID examples (Helm + Kustomize) (#86)
- Secrets Store CSI Driver examples for all 3 clouds (#85)
Helm Chart Enhancements
- podLabels support in deployment template (#81)
- extraVolumes / extraVolumeMounts for CSI Driver (#85)
Full Changelog
https://github.com/YuminosukeSato/pyproc/compare/v0.5.0...v0.6.0
v0.5.02026-02-06
Summary
Kubernetes-ready distribution with Helm chart, Kustomize overlays, health probe endpoints, ExternalWorker for sidecar pattern, and production Dockerfiles.
What's New
Health Probe Handlers
- LivenessHandler(pool) — always returns 200 for K8s liveness probe
- ReadinessHandler(pool) — 200 when healthy workers exist and pool is not shutting down, 503 otherwise
- StartupHandler(pool) — 200 when pool has completed startup, 503 otherwise
- Pool.started flag tracks startup completion
ExternalWorker (Experimental)
- ExternalWorker struct implements workerHandle for pre-existing worker processes (sidecar pattern)
- NewExternalWorker(socketPath, connectTimeout) constructor
- Start(): connection test via net.DialTimeout
- IsHealthy(): connectivity probe
- PoolOptions.ExternalMode + ExternalSocketPaths for sidecar deployment
Helm Chart (charts/pyproc/)
- Full chart with deployment, service, serviceaccount, RBAC, HPA, PDB templates
- Health probes configured via values (liveness /healthz, readiness /readyz, startup /startupz)
- UDS emptyDir volume with Memory medium
- Pod Security Standards: runAsNonRoot, drop ALL capabilities, readOnlyRootFilesystem
- helm test support via test-connection template
Kustomize (deploy/kustomize/)
- Base manifests converted from existing K8s documentation
- Environment overlays: dev (1 replica), staging (2 replicas), production (3 replicas + PDB)
Dockerfiles
- Dockerfile: Multi-stage build (Go 1.24-alpine builder → Python 3.12-slim runtime), non-root user
- Dockerfile.worker: Python-only image for sidecar pattern, uv package manager
Documentation
- K8s resource sizing recommendations by workload type (low-latency, batch, general)
- Pod Security Standards compliance guide (Baseline/Restricted)
- K8s troubleshooting guide (CrashLoopBackOff, probe failures, UDS permissions)
- Helm usage examples (basic + sidecar)
- Docker deployment guide rewritten (pip → uv)
CI
- Helm lint and template validation
- Kustomize build validation for all overlays
Files Changed
- pkg/pyproc/healthhandler.go, healthhandler_test.go (new)
- pkg/pyproc/workerexternal.go, workerexternal_test.go (new)
- pkg/pyproc/pool.go (ExternalMode + started flag)
- pkg/pyproc/poolexternaltest.go (new)
- charts/pyproc/ (new — complete Helm chart)
- deploy/kustomize/ (new — base + overlays)
- Dockerfile, Dockerfile.worker, .dockerignore (new)
- docs/deployment/kubernetes-resources.md (new)
- docs/deployment/kubernetes-troubleshooting.md (new)
- docs/deployment/docker.md (rewritten)
- examples/helm-basic/, examples/helm-sidecar/ (new)
- .github/workflows/ci.yml (K8s manifest validation job)
Full Changelog: https://github.com/YuminosukeSato/pyproc/compare/v0.4.5...v0.5.0
<!-- Release notes generated using configuration in .github/release.yml at v0.5.0 -->
What's Changed
New Features
* feat: K8s health probe HTTP handlers by @YuminosukeSato in https://github.com/YuminosukeSato/pyproc/pull/70
* feat: add production Dockerfile by @YuminosukeSato in https://github.com/YuminosukeSato/pyproc/pull/71
* feat: add Dockerfile.worker for sidecar pattern by @YuminosukeSato in https://github.com/YuminosukeSato/pyproc/pull/74
* feat: add Helm usage examples by @YuminosukeSato in https://github.com/YuminosukeSato/pyproc/pull/75
* feat: add Helm chart for pyproc deployment by @YuminosukeSato in https://github.com/YuminosukeSato/pyproc/pull/78
* feat: add Kustomize base manifests and environment overlays by @YuminosukeSato in https://github.com/YuminosukeSato/pyproc/pull/79
* feat: add ExternalWorker for sidecar pattern by @YuminosukeSato in https://github.com/YuminosukeSato/pyproc/pull/72
* feat: add ExternalMode to Pool for K8s sidecar pattern by @YuminosukeSato in https://github.com/YuminosukeSato/pyproc/pull/73
Documentation
* docs: add K8s resource and securityContext recommendations by @YuminosukeSato in https://github.com/YuminosukeSato/pyproc/pull/76
* docs: add K8s troubleshooting guide by @YuminosukeSato in https://github.com/YuminosukeSato/pyproc/pull/77
* ci: add PR English check and translate AGENTS.md for Codex review by @YuminosukeSato in https://github.com/YuminosukeSato/pyproc/pull/68
Other Changes
* ci: add Helm lint and Kustomize build validation by @YuminosukeSato in https://github.com/YuminosukeSato/pyproc/pull/80
Full Changelog: https://github.com/YuminosukeSato/pyproc/compare/v0.4.3...v0.5.0
v0.4.32026-02-06
Summary
Fix a critical sort bug in latency percentile calculation and add a zero-dependency Prometheus metrics handler.
Bug Fixes
- Fix GetLatencyPercentile: latency slice was not sorted before percentile calculation, returning incorrect values
- Fix GetMetricsSnapshot: nested RLock on non-reentrant sync.RWMutex caused potential deadlock; inlined computation within single lock scope
What's New
- MetricsHandler(pool) returns an http.Handler serving Prometheus text exposition format
- Metrics exposed: pyprocrequeststotal, pyprocrequestdurationseconds, pyprocworkerstotal, pyprocworkershealthy, pyprocinflightrequests, pyprocworkerrestartstotal
- Monitoring guide with Prometheus scrape config, Grafana dashboard JSON, and alerting rules
Files
- pkg/pyproc/pool_metrics.go (bug fix + refactor)
- pkg/pyproc/metrics_handler.go (new)
- pkg/pyproc/metricshandlertest.go (new)
- docs/deployment/monitoring.md (rewritten)
Full Changelog: https://github.com/YuminosukeSato/pyproc/compare/v0.4.2...v0.4.3
v0.4.22026-02-06
Summary
Document error categories and failure behavior to help operators understand how pyproc handles failures and set appropriate SLOs.
What's New
- Error categories reference: TimeoutError (3 subtypes), connection errors, protocol errors, worker errors, pool lifecycle errors
- Failure behavior reference: timeout hierarchy, retry mechanics, backpressure via semaphore, SLO definition templates
- Error handling guide rewritten with practical examples and links to reference docs
Files
- docs/reference/error-categories.md (new)
- docs/reference/failure-behavior.md (new)
- docs/guides/error-handling.md (rewritten)
Full Changelog: https://github.com/YuminosukeSato/pyproc/compare/v0.4.1...v0.4.2
v0.4.52026-02-06
Summary
Add Software Bill of Materials (SBOM) generation to CI and release workflows for supply chain security.
What's New
- CI sbom job: generates Go and Python SBOMs in CycloneDX JSON format using syft, uploaded as build artifacts
- Release workflow: generates SBOMs and attaches them to GitHub releases (sbom-go.cdx.json, sbom-python.cdx.json)
- SBOM documentation with local generation commands and format explanation
Files
- .github/workflows/ci.yml (modified - added sbom job)
- .github/workflows/release.yml (modified - added SBOM to release artifacts)
- docs/reference/sbom.md (new)
Full Changelog: https://github.com/YuminosukeSato/pyproc/compare/v0.4.4...v0.4.5
v0.4.42026-02-06
Summary
Add a logging specification document and the WithRequestID method to the structured logger.
What's New
- Logging spec: required fields (time, level, msg, workerid), conditional fields (traceid, requestid, method, errorcategory), log level guidelines, JSON/text format rules
- Logger.WithRequestID(requestID uint64) method for attaching request IDs to log entries, following the existing WithWorker/WithMethod pattern
Files
- docs/reference/logging-spec.md (new)
- pkg/pyproc/logger.go (modified)
- pkg/pyproc/logger_test.go (modified)
Full Changelog: https://github.com/YuminosukeSato/pyproc/compare/v0.4.3...v0.4.4
v0.4.12026-02-06
Summary
Define the official support matrix and versioning policy for pyproc, establishing clear compatibility guarantees for enterprise evaluation.
What's New
- Support matrix: Go 1.22-1.24, Python 3.9-3.12, Linux/macOS (amd64/arm64)
- Versioning policy: public API surface definition, SemVer rules for pre-1.0, deprecation policy
- Kubernetes deployment guide rewritten with single-container manifest, resource limits, liveness/readiness probes
Files
- docs/compatibility/support-matrix.md (new)
- docs/compatibility/versioning-policy.md (new)
- docs/deployment/kubernetes.md (rewritten)
Full Changelog: https://github.com/YuminosukeSato/pyproc/compare/v0.4.0...v0.4.1