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
7 changes: 5 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## Unreleased

- `opentelemetry-instrumentation-requests`, `opentelemetry-instrumentation-wsgi`, `opentelemetry-instrumentation-asgi` Detect synthetic sources on requests, ASGI, and WSGI.
([#3674](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/3674))
## Version 1.39.0/0.60b0 (2025-12-03)

### Added

- `opentelemetry-instrumentation-requests`, `opentelemetry-instrumentation-wsgi`, `opentelemetry-instrumentation-asgi` Detect synthetic sources on requests, ASGI, and WSGI.
([#3674](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/3674))
- `opentelemetry-instrumentation-aiohttp-client`: add support for url exclusions via `OTEL_PYTHON_EXCLUDED_URLS` / `OTEL_PYTHON_AIOHTTP_CLIENT_EXCLUDED_URLS`
([#3850](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/3850))
- `opentelemetry-instrumentation-httpx`: add support for url exclusions via `OTEL_PYTHON_EXCLUDED_URLS` / `OTEL_PYTHON_HTTPX_EXCLUDED_URLS`
Expand All @@ -42,6 +43,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Fixed

- `opentelemetry-instrumentation-botocore`: bedrock: Add safety check for bedrock ConverseStream responses
([#3990](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/3990))
- `opentelemetry-instrumentation-botocore`: bedrock: only decode JSON input buffer in Anthropic Claude streaming
([#3875](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/3875))
- `opentelemetry-instrumentation-aiohttp-client`, `opentelemetry-instrumentation-aiohttp-server`: Fix readme links and text
Expand Down
2 changes: 1 addition & 1 deletion _template/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.

__version__ = "0.60b0.dev"
__version__ = "0.61b0.dev"
4 changes: 2 additions & 2 deletions eachdist.ini
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ sortfirst=
ext/*

[stable]
version=1.39.0.dev
version=1.40.0.dev

packages=
opentelemetry-sdk
Expand All @@ -35,7 +35,7 @@ packages=
opentelemetry-exporter-credential-provider-gcp

[prerelease]
version=0.60b0.dev
version=0.61b0.dev

packages=
all
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.

__version__ = "0.60b0.dev"
__version__ = "0.61b0.dev"
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.

__version__ = "0.60b0.dev"
__version__ = "0.61b0.dev"
2 changes: 1 addition & 1 deletion exporter/opentelemetry-exporter-richconsole/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ classifiers = [
dependencies = [
"opentelemetry-api ~= 1.12",
"opentelemetry-sdk ~= 1.12",
"opentelemetry-semantic-conventions == 0.60b0.dev",
"opentelemetry-semantic-conventions == 0.61b0.dev",
"rich>=10.0.0",
]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.

__version__ = "0.60b0.dev"
__version__ = "0.61b0.dev"
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ classifiers = [
]
dependencies = [
"opentelemetry-api ~= 1.5",
"opentelemetry-instrumentation == 0.60b0.dev",
"opentelemetry-instrumentation == 0.61b0.dev",
"wrapt >= 1.0.0, < 2.0.0",
]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.

__version__ = "0.60b0.dev"
__version__ = "0.61b0.dev"
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ classifiers = [
]
dependencies = [
"opentelemetry-api ~= 1.12",
"opentelemetry-instrumentation == 0.60b0.dev",
"opentelemetry-semantic-conventions == 0.60b0.dev",
"opentelemetry-util-http == 0.60b0.dev",
"opentelemetry-instrumentation == 0.61b0.dev",
"opentelemetry-semantic-conventions == 0.61b0.dev",
"opentelemetry-util-http == 0.61b0.dev",
"wrapt >= 1.0.0, < 2.0.0",
]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.

__version__ = "0.60b0.dev"
__version__ = "0.61b0.dev"
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ classifiers = [
]
dependencies = [
"opentelemetry-api ~= 1.12",
"opentelemetry-instrumentation == 0.60b0.dev",
"opentelemetry-semantic-conventions == 0.60b0.dev",
"opentelemetry-util-http == 0.60b0.dev",
"opentelemetry-instrumentation == 0.61b0.dev",
"opentelemetry-semantic-conventions == 0.61b0.dev",
"opentelemetry-util-http == 0.61b0.dev",
"wrapt >= 1.0.0, < 2.0.0",
]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.

__version__ = "0.60b0.dev"
__version__ = "0.61b0.dev"
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ classifiers = [
]
dependencies = [
"opentelemetry-api ~= 1.27",
"opentelemetry-instrumentation == 0.60b0.dev",
"opentelemetry-semantic-conventions == 0.60b0.dev",
"opentelemetry-instrumentation == 0.61b0.dev",
"opentelemetry-semantic-conventions == 0.61b0.dev",
"typing_extensions ~= 4.1",
]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.

__version__ = "0.60b0.dev"
__version__ = "0.61b0.dev"
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ classifiers = [
]
dependencies = [
"opentelemetry-api ~= 1.12",
"opentelemetry-instrumentation == 0.60b0.dev",
"opentelemetry-instrumentation-dbapi == 0.60b0.dev",
"opentelemetry-instrumentation == 0.61b0.dev",
"opentelemetry-instrumentation-dbapi == 0.61b0.dev",
"wrapt >= 1.0.0, < 2.0.0",
]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.

__version__ = "0.60b0.dev"
__version__ = "0.61b0.dev"
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ classifiers = [
dependencies = [
"asgiref ~= 3.0",
"opentelemetry-api ~= 1.12",
"opentelemetry-instrumentation == 0.60b0.dev",
"opentelemetry-semantic-conventions == 0.60b0.dev",
"opentelemetry-util-http == 0.60b0.dev",
"opentelemetry-instrumentation == 0.61b0.dev",
"opentelemetry-semantic-conventions == 0.61b0.dev",
"opentelemetry-util-http == 0.61b0.dev",
]

[project.optional-dependencies]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.

__version__ = "0.60b0.dev"
__version__ = "0.61b0.dev"
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ classifiers = [
]
dependencies = [
"opentelemetry-api ~= 1.12",
"opentelemetry-instrumentation == 0.60b0.dev",
"opentelemetry-semantic-conventions == 0.60b0.dev",
"opentelemetry-instrumentation == 0.61b0.dev",
"opentelemetry-semantic-conventions == 0.61b0.dev",
"wrapt ~= 1.0",
"typing_extensions ~= 4.12",
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.

__version__ = "0.60b0.dev"
__version__ = "0.61b0.dev"
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ classifiers = [
]
dependencies = [
"opentelemetry-api ~= 1.14",
"opentelemetry-instrumentation == 0.60b0.dev",
"opentelemetry-semantic-conventions == 0.60b0.dev",
"opentelemetry-instrumentation == 0.61b0.dev",
"opentelemetry-semantic-conventions == 0.61b0.dev",
"wrapt >= 1.0.0, < 2.0.0",
]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.

__version__ = "0.60b0.dev"
__version__ = "0.61b0.dev"
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ classifiers = [
]
dependencies = [
"opentelemetry-api ~= 1.12",
"opentelemetry-instrumentation == 0.60b0.dev",
"opentelemetry-semantic-conventions == 0.60b0.dev",
"opentelemetry-instrumentation == 0.61b0.dev",
"opentelemetry-semantic-conventions == 0.61b0.dev",
]

[project.optional-dependencies]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.

__version__ = "0.60b0.dev"
__version__ = "0.61b0.dev"
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ classifiers = [
"Programming Language :: Python :: 3.13",
]
dependencies = [
"opentelemetry-instrumentation == 0.60b0.dev",
"opentelemetry-semantic-conventions == 0.60b0.dev",
"opentelemetry-instrumentation == 0.61b0.dev",
"opentelemetry-semantic-conventions == 0.61b0.dev",
"opentelemetry-propagator-aws-xray ~= 1.0",
]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.

__version__ = "0.60b0.dev"
__version__ = "0.61b0.dev"
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ classifiers = [
]
dependencies = [
"opentelemetry-api ~= 1.12",
"opentelemetry-instrumentation == 0.60b0.dev",
"opentelemetry-semantic-conventions == 0.60b0.dev",
"opentelemetry-instrumentation == 0.61b0.dev",
"opentelemetry-semantic-conventions == 0.61b0.dev",
]

[project.optional-dependencies]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.

__version__ = "0.60b0.dev"
__version__ = "0.61b0.dev"
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ classifiers = [
]
dependencies = [
"opentelemetry-api ~= 1.12",
"opentelemetry-instrumentation == 0.60b0.dev",
"opentelemetry-semantic-conventions == 0.60b0.dev",
"opentelemetry-instrumentation == 0.61b0.dev",
"opentelemetry-semantic-conventions == 0.61b0.dev",
"wrapt >= 1.0.0, < 2.0.0",
]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.

__version__ = "0.60b0.dev"
__version__ = "0.61b0.dev"
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ classifiers = [
]
dependencies = [
"opentelemetry-api ~= 1.37",
"opentelemetry-instrumentation == 0.60b0.dev",
"opentelemetry-semantic-conventions == 0.60b0.dev",
"opentelemetry-instrumentation == 0.61b0.dev",
"opentelemetry-semantic-conventions == 0.61b0.dev",
"opentelemetry-propagator-aws-xray ~= 1.0",
]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,9 @@ def __init__(
def from_converse(
cls, response: dict[str, Any], capture_content: bool
) -> _Choice:
orig_message = response["output"]["message"]
# be defensive about malformed responses, refer to #3958 for more context
output = response.get("output", {})
orig_message = output.get("message", {})
if role := orig_message.get("role"):
message = {"role": role}
else:
Expand All @@ -537,8 +539,8 @@ def from_converse(

if tool_calls := extract_tool_calls(orig_message, capture_content):
message["tool_calls"] = tool_calls
elif capture_content:
message["content"] = orig_message["content"]
elif capture_content and (content := orig_message.get("content")):
message["content"] = content

return cls(message, response["stopReason"], index=0)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.

__version__ = "0.60b0.dev"
__version__ = "0.61b0.dev"
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@

from opentelemetry.instrumentation.botocore.extensions.bedrock_utils import (
InvokeModelWithResponseStreamWrapper,
_Choice,
)
from opentelemetry.semconv._incubating.attributes.error_attributes import (
ERROR_TYPE,
Expand Down Expand Up @@ -3051,6 +3052,16 @@ def stream_error_callback(exc, ended):
assert "input" not in tool_block


def test_converse_stream_with_missing_output_in_response():
# Test malformed response missing "output" key
malformed_response = {"stopReason": "end_turn"}
choice = _Choice.from_converse(malformed_response, capture_content=True)

assert choice.finish_reason == "end_turn"
assert choice.message == {}
assert choice.index == 0


def amazon_nova_messages():
return [
{"role": "user", "content": [{"text": "Say this is a test"}]},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ classifiers = [
]
dependencies = [
"opentelemetry-api ~= 1.12",
"opentelemetry-instrumentation == 0.60b0.dev",
"opentelemetry-semantic-conventions == 0.60b0.dev",
"opentelemetry-instrumentation == 0.61b0.dev",
"opentelemetry-semantic-conventions == 0.61b0.dev",
"wrapt >= 1.0.0, < 2.0.0",
]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.

__version__ = "0.60b0.dev"
__version__ = "0.61b0.dev"
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ classifiers = [
]
dependencies = [
"opentelemetry-api ~= 1.12",
"opentelemetry-instrumentation == 0.60b0.dev",
"opentelemetry-semantic-conventions == 0.60b0.dev",
"opentelemetry-instrumentation == 0.61b0.dev",
"opentelemetry-semantic-conventions == 0.61b0.dev",
]

[project.optional-dependencies]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.

__version__ = "0.60b0.dev"
__version__ = "0.61b0.dev"
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ classifiers = [
]
dependencies = [
"opentelemetry-api ~= 1.12",
"opentelemetry-instrumentation == 0.60b0.dev",
"opentelemetry-semantic-conventions == 0.60b0.dev",
"opentelemetry-instrumentation == 0.61b0.dev",
"opentelemetry-semantic-conventions == 0.61b0.dev",
"wrapt >= 1.0.0, < 2.0.0",
]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.

__version__ = "0.60b0.dev"
__version__ = "0.61b0.dev"
Loading