Auto-instrument sanctions with OpenTelemetry zero-code

Add opentelemetry-distro/exporter-otlp (pinned pair) and run
opentelemetry-bootstrap at build time; wrap the sanctions command with
opentelemetry-instrument and configure the SDK via OTEL_* env (traces
only, OTLP/HTTP to otlp.vione.cloud). create-secrets.sh now writes the
base64 OTLP auth header into .env.observability.

The G10 guard test (no observability libraries in requirements) is
expected to fail from here until the guard suite is retired in Phase 3.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Movses Aslanyan
2026-10-12 20:09:38 +03:30
co-authored by Claude Opus 5.5
parent 995c93982a
commit f721df3063
4 changed files with 21 additions and 3 deletions
+2
View File
@@ -8,3 +8,5 @@ redis==5.2.1
pydantic==2.10.4
pydantic-settings==2.7.1
python-multipart==0.0.20
opentelemetry-distro==0.66b1
opentelemetry-exporter-otlp==1.45.1