From 27e09c7769ada6acad43cc5aec2f1e2e0091cd9752f1e2ce7928c509d95723df Mon Sep 17 00:00:00 2001 From: John Paul Adrian Glaubitz Date: Wed, 8 Jan 2025 17:23:54 +0000 Subject: [PATCH] Accepting request 1235906 from home:glaubitz:branches:devel:languages:python - Update to version 0.50b0 * `opentelemetry-instrumentation-starlette` Add type hints to the instrumentation * `opentelemetry-distro` default to OTLP log exporter. * `opentelemetry-instrumentation-sqlalchemy` Update unit tests to run with SQLALchemy 2 * Add `opentelemetry-instrumentation-openai-v2` to `opentelemetry-bootstrap` * `opentelemetry-instrumentation-sqlalchemy` Add sqlcomment to `db.statement` attribute * `opentelemetry-instrumentation-dbapi` Add sqlcomment to `db.statement` attribute * `opentelemetry-instrumentation-dbapi` instrument_connection accepts optional connect_module * `opentelemetry-instrumentation-mysqlclient` Add sqlcommenter support * `opentelemetry-instrumentation-pymysql` Add sqlcommenter support * `opentelemetry-instrumentation-click`: new instrumentation to trace click commands * `opentelemetry-instrumentation-starlette`: Retrieve `meter_provider` key instead of `_meter_provider` on `_instrument` * `opentelemetry-instrumentation-httpx`: instrument_client is a static method again * `opentelemetry-instrumentation-system_metrics`: fix callbacks reading wrong config * `opentelemetry-instrumentation-httpx`: Check if mount transport is none before wrap it * Replace all instrumentor unit test `assertEqualSpanInstrumentationInfo` calls with `assertEqualSpanInstrumentationScope` calls * `opentelemetry-instrumentation-sqlalchemy` Fixes engines from `sqlalchemy.engine_from_config` not being fully instrumented * `opentelemetry-instrumentation-sqlalchemy`: Fix a remaining memory leak in EngineTracer * `opentelemetry-instrumentation-sqlite3`: Update documentation on explicit cursor support of tracing * `opentelemetry-instrumentation-sqlalchemy` teach instruments version * Drop `opentelemetry-instrumentation-test` package from default instrumentation list * `opentelemetry-instrumentation-httpx`: remove private unused `_InstrumentedClient` and `_InstrumentedAsyncClient` classes - from version 0.49b0 * `opentelemetry-instrumentation-openai-v2` Instrumentation for OpenAI >= 0.27.0 * `opentelemetry-instrumentation-fastapi` Add autoinstrumentation mechanism tests. * `opentelemetry-instrumentation-aiokafka` Add instrumentor and auto instrumentation OBS-URL: https://build.opensuse.org/request/show/1235906 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-opentelemetry-instrumentation-fastapi?expand=0&rev=3 --- ...etry_instrumentation_fastapi-0.48b0.tar.gz | 3 -- ...etry_instrumentation_fastapi-0.50b0.tar.gz | 3 ++ ...ntelemetry-instrumentation-fastapi.changes | 49 +++++++++++++++++++ ...opentelemetry-instrumentation-fastapi.spec | 21 ++++---- 4 files changed, 63 insertions(+), 13 deletions(-) delete mode 100644 opentelemetry_instrumentation_fastapi-0.48b0.tar.gz create mode 100644 opentelemetry_instrumentation_fastapi-0.50b0.tar.gz diff --git a/opentelemetry_instrumentation_fastapi-0.48b0.tar.gz b/opentelemetry_instrumentation_fastapi-0.48b0.tar.gz deleted file mode 100644 index ba56690..0000000 --- a/opentelemetry_instrumentation_fastapi-0.48b0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:21a72563ea412c0b535815aeed75fc580240f1f02ebc72381cfab672648637a2 -size 18497 diff --git a/opentelemetry_instrumentation_fastapi-0.50b0.tar.gz b/opentelemetry_instrumentation_fastapi-0.50b0.tar.gz new file mode 100644 index 0000000..a51997b --- /dev/null +++ b/opentelemetry_instrumentation_fastapi-0.50b0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:16b9181682136da210295def2bb304a32fb9bdee9a935cdc9da43567f7c1149e +size 19214 diff --git a/python-opentelemetry-instrumentation-fastapi.changes b/python-opentelemetry-instrumentation-fastapi.changes index 52309b1..e20cbbe 100644 --- a/python-opentelemetry-instrumentation-fastapi.changes +++ b/python-opentelemetry-instrumentation-fastapi.changes @@ -1,3 +1,52 @@ +------------------------------------------------------------------- +Wed Jan 8 11:32:59 UTC 2025 - John Paul Adrian Glaubitz + +- Update to version 0.50b0 + * `opentelemetry-instrumentation-starlette` Add type hints to the instrumentation + * `opentelemetry-distro` default to OTLP log exporter. + * `opentelemetry-instrumentation-sqlalchemy` Update unit tests to run with SQLALchemy 2 + * Add `opentelemetry-instrumentation-openai-v2` to `opentelemetry-bootstrap` + * `opentelemetry-instrumentation-sqlalchemy` Add sqlcomment to `db.statement` attribute + * `opentelemetry-instrumentation-dbapi` Add sqlcomment to `db.statement` attribute + * `opentelemetry-instrumentation-dbapi` instrument_connection accepts optional connect_module + * `opentelemetry-instrumentation-mysqlclient` Add sqlcommenter support + * `opentelemetry-instrumentation-pymysql` Add sqlcommenter support + * `opentelemetry-instrumentation-click`: new instrumentation to trace click commands + * `opentelemetry-instrumentation-starlette`: Retrieve `meter_provider` key instead of + `_meter_provider` on `_instrument` + * `opentelemetry-instrumentation-httpx`: instrument_client is a static method again + * `opentelemetry-instrumentation-system_metrics`: fix callbacks reading wrong config + * `opentelemetry-instrumentation-httpx`: Check if mount transport is none before wrap it + * Replace all instrumentor unit test `assertEqualSpanInstrumentationInfo` calls with + `assertEqualSpanInstrumentationScope` calls + * `opentelemetry-instrumentation-sqlalchemy` Fixes engines from `sqlalchemy.engine_from_config` + not being fully instrumented + * `opentelemetry-instrumentation-sqlalchemy`: Fix a remaining memory leak in EngineTracer + * `opentelemetry-instrumentation-sqlite3`: Update documentation on explicit cursor support of tracing + * `opentelemetry-instrumentation-sqlalchemy` teach instruments version + * Drop `opentelemetry-instrumentation-test` package from default instrumentation list + * `opentelemetry-instrumentation-httpx`: remove private unused `_InstrumentedClient` + and `_InstrumentedAsyncClient` classes +- from version 0.49b0 + * `opentelemetry-instrumentation-openai-v2` Instrumentation for OpenAI >= 0.27.0 + * `opentelemetry-instrumentation-fastapi` Add autoinstrumentation mechanism tests. + * `opentelemetry-instrumentation-aiokafka` Add instrumentor and auto instrumentation + support for aiokafka + * `opentelemetry-instrumentation-redis` Add additional attributes for methods create_index + and search, rename those spans + * `opentelemetry-instrumentation` Add support for string based dotted module paths in unwrap + * `opentelemetry-instrumentation-aiokafka` Wrap `AIOKafkaConsumer.getone()` instead of `AIOKafkaConsumer.__anext__` + * `opentelemetry-instrumentation-confluent-kafka` Fix to allow `topic` to be extracted from `kwargs` in `produce()` + * `opentelemetry-instrumentation-system-metrics` Update metric units to conform to UCUM conventions. + * `opentelemetry-instrumentation-celery` Don't detach context without a None token + * `opentelemetry-exporter-prometheus-remote-write`: sort labels before exporting + * `opentelemetry-instrumentation-dbapi` sqlcommenter key values created from PostgreSQL, MySQL systems + * `opentelemetry-instrumentation-system-metrics`: don't report open file descriptors on Windows + * Deprecation of pkg_resource in favor of importlib.metadata + * `opentelemetry-instrumentation` Don't fail distro loading if instrumentor raises ImportError, instead skip them + * `opentelemetry-instrumentation-httpx` Rewrote instrumentation to use wrapt instead of subclassing +- Use %{version} in BuildRequires and Requires for dependencies + ------------------------------------------------------------------- Wed Sep 4 21:30:09 UTC 2024 - John Paul Adrian Glaubitz diff --git a/python-opentelemetry-instrumentation-fastapi.spec b/python-opentelemetry-instrumentation-fastapi.spec index 9deb9d1..bb0ae7a 100644 --- a/python-opentelemetry-instrumentation-fastapi.spec +++ b/python-opentelemetry-instrumentation-fastapi.spec @@ -1,7 +1,7 @@ # # spec file for package python-opentelemetry-instrumentation-fastapi # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -15,6 +15,7 @@ # Please submit bugfixes or comments via https://bugs.opensuse.org/ # + %global flavor @BUILD_FLAVOR@%{nil} %if "%{flavor}" == "test" %define psuffix -test @@ -26,7 +27,7 @@ %{?sle15_python_module_pythons} Name: python-opentelemetry-instrumentation-fastapi%{?psuffix} -Version: 0.48b0 +Version: 0.50b0 Release: 0 Summary: OpenTelemetry FastAPI Instrumentation License: Apache-2.0 @@ -39,19 +40,19 @@ BuildRequires: python-rpm-macros %if %{with test} BuildRequires: %{python_module fastapi >= 0.58} BuildRequires: %{python_module httpx} -BuildRequires: %{python_module opentelemetry-instrumentation-fastapi = %{version}} -BuildRequires: %{python_module opentelemetry-test-utils == 0.48b0} +BuildRequires: %{python_module opentelemetry-instrumentation-fastapi == %{version}} +BuildRequires: %{python_module opentelemetry-test-utils == %{version}} BuildRequires: %{python_module pytest} %endif -BuildRequires: %{python_module opentelemetry-api >= 1.12} -BuildRequires: %{python_module opentelemetry-instrumentation = 0.48b0} BuildRequires: %{python_module hatchling} +BuildRequires: %{python_module opentelemetry-api >= 1.12} +BuildRequires: %{python_module opentelemetry-instrumentation == %{version}} BuildRequires: fdupes Requires: python-opentelemetry-api >= 1.12 -Requires: python-opentelemetry-instrumentation-asgi = 0.48b0 -Requires: python-opentelemetry-instrumentation = 0.48b0 -Requires: python-opentelemetry-semantic-conventions = 0.48b0 -Requires: python-opentelemetry-util-http = 0.48b0 +Requires: python-opentelemetry-instrumentation == %{version} +Requires: python-opentelemetry-instrumentation-asgi == %{version} +Requires: python-opentelemetry-semantic-conventions == %{version} +Requires: python-opentelemetry-util-http == %{version} BuildArch: noarch %python_subpackages