Skip to content

feat(alephalpha): trace the Aleph Alpha client, zero-code - #731

Merged
nik13 merged 2 commits into
devfrom
feat/python-alephalpha-1119
Nov 19, 2026
Merged

nik13 merged 2 commits into
devfrom
feat/python-alephalpha-1119

Conversation

@nik13

@nik13 nik13 commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

What

New traceAI-alephalpha package: tracing for the Aleph Alpha Python client (aleph-alpha-client >=7.6.0,<12), also registered in zero-code auto-instrumentation (fi-instrument / FI_AUTO_INSTRUMENT=true picks it up when the client is installed).

  • Client and AsyncClient: complete, chat, evaluate, embed, embeddings, semantic_embed, batch_semantic_embed, instructable_embed, plus the async complete_with_streaming / chat_with_streaming. Methods an older client lacks are skipped.
  • Request model and parameters, usage, finish reasons, tool calls; inputs and outputs follow the hide settings, and multimodal content and embedding vectors are never exported. The API token and host are never recorded.
  • Only the outermost call gets a span. Tracing failures never break the call. Errors record error.type only and are re-raised unchanged. Streams end exactly once (exhaustion, aclose(), early exit or garbage collection).

Release wiring: release-please config and manifest (0.1.0), the PyPI bootstrap list, the auto-instrumentation registry, a CI workflow (7.6.0 on Python 3.10, latest on 3.13, offline), and the docs tables.

Tests

Offline: real clients against a loopback HTTP stub.

  • Python 3.10 and 3.12: 38 passed with client 11.5.1; 33 passed and 5 skipped with 7.6.0 (features that client version lacks).
  • Clients 8.0 to 11.0 also checked on Python 3.10.
  • Auto-instrumentation tests: 397 passed.

@nik13
nik13 merged commit 250958b into dev Nov 19, 2026
213 checks passed
@nik13
nik13 deleted the feat/python-alephalpha-1119 branch November 19, 2026 06:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant