Skip to content

feat(observability): Enhance prompt context injection and identity tr…#27

Closed
CorentinGS wants to merge 6 commits into
release/1.0.0-rc1from
fix_prompt
Closed

feat(observability): Enhance prompt context injection and identity tr…#27
CorentinGS wants to merge 6 commits into
release/1.0.0-rc1from
fix_prompt

Conversation

@CorentinGS
Copy link
Copy Markdown
Contributor

…acking

  • Implement automatic prompt context injection for auto-instrumented spans, allowing seamless integration of prompt attributes from context managers.
  • Introduce PromptRequestSpan for type-safe output formatting in prompt API requests.
  • Add new identity structure for user and organization tracking, enabling richer observability data.
  • Update set_identity method to accept a dictionary format for user and organization attributes.
  • Modify context managers to store prompt metadata in a ContextVar, facilitating automatic attribute injection into child spans.
  • Enhance documentation to reflect new features and best practices for identity tracking and prompt context management.
  • Add tests to ensure correct behavior of prompt context injection and identity setting across various scenarios.

CorentinGS and others added 6 commits December 3, 2025 14:03
…acking

- Implement automatic prompt context injection for auto-instrumented spans, allowing seamless integration of prompt attributes from context managers.
- Introduce `PromptRequestSpan` for type-safe output formatting in prompt API requests.
- Add new identity structure for user and organization tracking, enabling richer observability data.
- Update `set_identity` method to accept a dictionary format for user and organization attributes.
- Modify context managers to store prompt metadata in a ContextVar, facilitating automatic attribute injection into child spans.
- Enhance documentation to reflect new features and best practices for identity tracking and prompt context management.
- Add tests to ensure correct behavior of prompt context injection and identity setting across various scenarios.
@MarquisG MarquisG closed this Dec 8, 2025
@MarquisG MarquisG deleted the fix_prompt branch December 8, 2025 09:53
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.

2 participants