Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,26 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.2.0] - 2026-04-20

### Added
- **`agent_context()`**: new context manager for OTel GenAI semantic-convention
agent identity attributes (`gen_ai.agent.id`, `gen_ai.agent.name`,
`gen_ai.agent.description`, `gen_ai.agent.version`). All spans created inside
the context are auto-tagged by `Last9SpanProcessor`, matching the shape
OpenAI Agents SDK and `autogen-core` emit natively on their own agent spans.
- `agent_context` composes with `conversation_context()` and
`workflow_context()`; covered by tests for triple-nesting, multi-agent
handoff (same conversation), inner-overrides-outer, and mixed-exit order.

### Notes
- `agent_name` is the only required argument (per OTel semconv).
`agent_id` / `agent_description` / `agent_version` are optional.
- Native-instrumented agent spans (e.g. AutoGen's `invoke_agent`,
OpenAI Agents SDK) set `gen_ai.agent.*` directly inside the span body and
will override values from `agent_context`. Sibling and child spans still
receive `agent_context`'s values.

## [1.1.0] - 2026-04-20

### Added
Expand Down
2 changes: 1 addition & 1 deletion last9_genai/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
For more information, see: https://github.com/last9/python-ai-sdk
"""

__version__ = "1.1.0"
__version__ = "1.2.0"
__author__ = "Last9 Inc."
__license__ = "MIT"

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "last9-genai"
version = "1.1.0"
version = "1.2.0"
description = "Last9 observability attributes for OpenTelemetry GenAI spans - track costs, workflows, and conversations in LLM applications"
readme = "README.md"
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

setup(
name="last9-genai",
version="1.1.0",
version="1.2.0",
author="Last9 Inc.",
author_email="hello@last9.io",
description="Last9 observability attributes for OpenTelemetry GenAI spans",
Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading