-
Notifications
You must be signed in to change notification settings - Fork 0
observability: spec v0.7 OTel mapping (proposal 0007) — phase 6.0 #19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 4 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
b1e1325
observability: spec v0.7 OTel mapping (proposal 0007) — phase 6.0
chris-colinsky e4c6ddb
observability: PR #19 review followups + CI extras fix
chris-colinsky 448df88
observability: PR #19 round-2 review followups
chris-colinsky aa17f4b
observability: PR #19 round-3 review followups
chris-colinsky d010d9b
observability: replace frozenset lambdas with named factory
chris-colinsky 54e817e
codeql: suppress py/ineffectual-statement (false positives)
chris-colinsky b060790
codeql: switch to advanced setup with config file
chris-colinsky bfb5838
observability: PR #19 round-5 review followups
chris-colinsky 85fc9d0
codeql: also suppress py/unused-import false positives
chris-colinsky bf22dfc
test_middleware: comment fix + nonlocal counter
chris-colinsky b28011e
test_llm_provider: docstring clarifications
chris-colinsky 48aa21c
RELEASING.md: tighten version-string consistency
chris-colinsky File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| """openarmature.observability — cross-backend observability surface. | ||
|
|
||
| Two layers: | ||
|
|
||
| - **Core** (this module + ``correlation.py``): always available, no | ||
| extra dependencies. Exposes :func:`current_correlation_id` and | ||
| :func:`current_active_observers` — the spec observability §3 | ||
| ``ContextVar`` primitives that every backend mapping consumes. | ||
| - **Backend mappings** (under ``observability.otel`` and future | ||
| ``observability.langfuse`` etc.): gated behind optional | ||
| dependencies (``pip install openarmature[otel]``). Importing the | ||
| subpackage without the extras installed raises an informative | ||
| ``ImportError`` pointing the caller at the install command. | ||
|
|
||
| The split mirrors charter §3.1 principle 5: core defines the | ||
| contracts; specific backends implement them. At v1.0 launch the | ||
| backend mappings will lift into sibling packages | ||
| (``openarmature-otel``, ``openarmature-langfuse``) — until then | ||
| they live here under per-backend subpackages so the layering is | ||
| established up front. | ||
| """ | ||
|
|
||
| from .correlation import ( | ||
| current_active_observers, | ||
| current_correlation_id, | ||
| current_dispatch, | ||
| current_invocation_id, | ||
| ) | ||
|
|
||
| __all__ = [ | ||
| "current_active_observers", | ||
| "current_correlation_id", | ||
| "current_dispatch", | ||
| "current_invocation_id", | ||
| ] |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.