<86>Feb 15 07:47:05 userdel[745866]: delete user 'rooter' <86>Feb 15 07:47:05 userdel[745866]: removed group 'rooter' owned by 'rooter' <86>Feb 15 07:47:05 userdel[745866]: removed shadow group 'rooter' owned by 'rooter' <86>Feb 15 07:47:05 groupadd[745929]: group added to /etc/group: name=rooter, GID=1847 <86>Feb 15 07:47:05 groupadd[745929]: group added to /etc/gshadow: name=rooter <86>Feb 15 07:47:05 groupadd[745929]: new group: name=rooter, GID=1847 <86>Feb 15 07:47:05 useradd[745974]: new user: name=rooter, UID=1847, GID=1847, home=/root, shell=/bin/bash, from=none <86>Feb 15 07:47:05 userdel[746020]: delete user 'builder' <86>Feb 15 07:47:05 userdel[746020]: removed group 'builder' owned by 'builder' <86>Feb 15 07:47:05 userdel[746020]: removed shadow group 'builder' owned by 'builder' <86>Feb 15 07:47:05 groupadd[746048]: group added to /etc/group: name=builder, GID=1848 <86>Feb 15 07:47:05 groupadd[746048]: group added to /etc/gshadow: name=builder <86>Feb 15 07:47:05 groupadd[746048]: new group: name=builder, GID=1848 <86>Feb 15 07:47:05 useradd[746081]: new user: name=builder, UID=1848, GID=1848, home=/usr/src, shell=/bin/bash, from=none <13>Feb 15 07:47:09 rpmi: libmpdec3-2.5.1-alt3 sisyphus+314490.500.5.1 1675432033 installed <13>Feb 15 07:47:09 rpmi: libgdbm-1.8.3-alt10 sisyphus+346222.200.3.2 1716468406 installed <13>Feb 15 07:47:09 rpmi: libexpat-2.6.4-alt1 sisyphus+365521.100.1.1 1734700247 installed <13>Feb 15 07:47:09 rpmi: openssl-config-3.2.0-alt1 sisyphus+366659.140.4.1 1736956949 installed <13>Feb 15 07:47:09 rpmi: libb2-0.98.1-alt1_1 sisyphus+291614.100.1.1 1638962878 installed <13>Feb 15 07:47:09 rpmi: libp11-kit-1:0.25.5-alt1 sisyphus+352553.100.1.1 1720622586 installed <13>Feb 15 07:47:09 rpmi: libtasn1-4.19.0-alt3 sisyphus+327816.100.1.1 1692802618 installed <13>Feb 15 07:47:09 rpmi: rpm-macros-alternatives-0.5.3-alt1 sisyphus+371878.100.1.1 1737988822 installed <13>Feb 15 07:47:09 rpmi: alternatives-0.5.3-alt1 sisyphus+371878.100.1.1 1737988822 installed <13>Feb 15 07:47:09 rpmi: ca-certificates-2025.02.10-alt1 sisyphus+374228.100.4.1 1739265441 installed <13>Feb 15 07:47:09 rpmi: ca-trust-0.2.0-alt1 sisyphus+344843.100.1.1 1712743326 installed <13>Feb 15 07:47:09 rpmi: p11-kit-trust-1:0.25.5-alt1 sisyphus+352553.100.1.1 1720622586 installed <13>Feb 15 07:47:09 rpmi: libcrypto3-3.3.3-alt1 sisyphus+374381.40.2.1 1739299702 installed <13>Feb 15 07:47:09 rpmi: libssl3-3.3.3-alt1 sisyphus+374381.40.2.1 1739299702 installed <13>Feb 15 07:47:09 rpmi: python3-3.12.8-alt1 sisyphus+364336.100.1.1 1733526985 installed <13>Feb 15 07:47:10 rpmi: python3-base-3.12.8-alt1 sisyphus+364336.100.1.1 1733526985 installed <13>Feb 15 07:47:10 rpmi: python3-module-py3dephell-0.3.1-alt1 sisyphus+365261.200.1.1 1734463433 installed <13>Feb 15 07:47:10 rpmi: tests-for-installed-python3-pkgs-0.1.27-alt1 sisyphus+371114.600.4.1 1739124172 installed <13>Feb 15 07:47:10 rpmi: rpm-build-python3-0.1.27-alt1 sisyphus+371114.600.4.1 1739124172 installed <13>Feb 15 07:47:12 rpmi: python3-module-more-itertools-10.6.0-alt1 sisyphus+369595.100.2.1 1737017267 installed <13>Feb 15 07:47:12 rpmi: python3-module-packaging-24.2-alt1 sisyphus+362183.100.1.1 1731315992 installed <13>Feb 15 07:47:12 rpmi: python3-module-jaraco.functools-4.1.0-alt1 sisyphus+358564.100.1.1 1727528718 installed <13>Feb 15 07:47:12 rpmi: python3-module-pluggy-1.5.0-alt1 sisyphus+345632.100.2.1 1713864244 installed <13>Feb 15 07:47:12 rpmi: python3-module-urllib3-2:2.3.0-alt1 sisyphus+366320.100.2.1 1735116352 installed <13>Feb 15 07:47:12 rpmi: python3-module-wheel-0.45.1-alt1 sisyphus+363326.100.2.1 1732609969 installed <13>Feb 15 07:47:12 rpmi: python3-module-platformdirs-4.3.6-alt1 sisyphus+357787.200.1.1 1726664692 installed <13>Feb 15 07:47:12 rpmi: python3-module-typing_extensions-4.12.2-alt1 sisyphus+351501.100.1.2 1719296652 installed <13>Feb 15 07:47:12 rpmi: python3-module-jaraco.context-6.0.1-alt1 sisyphus+357809.300.1.1 1726769204 installed <13>Feb 15 07:47:12 rpmi: python3-module-iniconfig-2.0.0-alt1 sisyphus+314076.200.3.1 1674737275 installed <13>Feb 15 07:47:12 rpmi: python3-module-pytest-8.3.4-alt2 sisyphus+374678.100.1.1 1739545750 installed <13>Feb 15 07:47:12 rpmi: python3-module-zipp-3.21.0-alt1 sisyphus+362195.100.2.1 1731487934 installed <13>Feb 15 07:47:12 rpmi: python3-module-importlib-metadata-8.6.1-alt1 sisyphus+370687.100.1.1 1737451177 installed <13>Feb 15 07:47:12 rpmi: python3-module-idna-3.10-alt1 sisyphus+358681.100.1.1 1727701241 installed <13>Feb 15 07:47:12 rpmi: python3-module-trove-classifiers-2025.1.15.22-alt1 sisyphus+369734.100.2.1 1737039730 installed <13>Feb 15 07:47:12 rpmi: python3-module-pathspec-0.12.1-alt1 sisyphus+341971.100.1.1 1709553025 installed <13>Feb 15 07:47:12 rpmi: python3-module-wrapt-1.17.2-alt1 sisyphus+369689.100.1.2 1736966078 installed <13>Feb 15 07:47:12 rpmi: python3-module-deprecated-1.2.18-alt1 sisyphus+371938.100.1.1 1738053326 installed <13>Feb 15 07:47:12 rpmi: python3-module-opentelemetry-api-1.27.0-alt1 sisyphus+356627.100.2.1 1725353252 installed <13>Feb 15 07:47:12 rpmi: python3-module-opentelemetry-semantic-conventions-1.27.0-alt1 sisyphus+356627.100.2.1 1725353252 installed <13>Feb 15 07:47:12 rpmi: python3-module-opentelemetry-sdk-1.27.0-alt1 sisyphus+356627.100.2.1 1725353252 installed <13>Feb 15 07:47:12 rpmi: python3-module-cpuinfo-9.0.0-alt2 sisyphus+335302.100.2.1 1701248416 installed <13>Feb 15 07:47:12 rpmi: python3-module-charset-normalizer-3.2.0-alt1 sisyphus+347396.200.2.1 1714733144 installed <13>Feb 15 07:47:12 rpmi: python3-module-autocommand-2.2.2-alt1.1 sisyphus+339714.100.1.1 1706968174 installed <13>Feb 15 07:47:12 rpmi: python3-module-jaraco.text-4.0.0-alt1 sisyphus+353877.400.2.1 1722250727 installed <13>Feb 15 07:47:12 rpmi: python3-module-jaraco.collections-5.1.0-alt1 sisyphus+357809.200.1.1 1726769173 installed <13>Feb 15 07:47:12 rpmi: python3-module-pkg_resources-1:75.8.0-alt1 sisyphus+368584.100.2.1 1736761354 installed <13>Feb 15 07:47:12 rpmi: python3-module-asgiref-3.8.1-alt1 sisyphus+372174.1500.2.1 1738333633 installed <13>Feb 15 07:47:12 rpmi: libpython3-3.12.8-alt1 sisyphus+364336.100.1.1 1733526985 installed <13>Feb 15 07:47:12 rpmi: libncurses6-6.3.20220618-alt4 sisyphus+327286.4600.14.1 1711486782 installed <13>Feb 15 07:47:12 rpmi: libtinfo-devel-6.3.20220618-alt4 sisyphus+327286.4600.14.1 1711486782 installed <13>Feb 15 07:47:13 rpmi: libncurses-devel-6.3.20220618-alt4 sisyphus+327286.4600.14.1 1711486782 installed <13>Feb 15 07:47:13 rpmi: python3-dev-3.12.8-alt1 sisyphus+364336.100.1.1 1733526985 installed <13>Feb 15 07:47:14 rpmi: python3-module-setuptools-1:75.8.0-alt1 sisyphus+368584.100.2.1 1736761354 installed <13>Feb 15 07:47:14 rpmi: python3-module-opentelemetry-test-utils-1.27.0-alt1 sisyphus+356627.100.2.1 1725353252 installed <13>Feb 15 07:47:14 rpmi: python3-module-requests-2.32.3-alt1 sisyphus+349946.100.1.1 1717059877 installed <13>Feb 15 07:47:14 rpmi: python3-module-pytest-benchmark-5.1.0-alt1 sisyphus+361778.200.3.1 1730985942 installed <13>Feb 15 07:47:14 rpmi: python3-module-hatchling-1.27.0-alt1 sisyphus+365115.100.2.1 1734340769 installed Building target platforms: i586 Building for target i586 Wrote: /usr/src/in/nosrpm/python3-module-opentelemetry-contrib-0.47b0-alt1.1.nosrc.rpm (w1.gzdio) <13>Feb 15 07:47:15 rpmi: python3-module-pyproject-installer-0.5.5-alt2 sisyphus+366395.100.1.1 1735032014 installed Installing python3-module-opentelemetry-contrib-0.47b0-alt1.1.src.rpm Building target platforms: i586 Building for target i586 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.52277 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf opentelemetry-contrib-0.47b0 + echo 'Source #0 (opentelemetry-contrib-0.47b0.tar):' Source #0 (opentelemetry-contrib-0.47b0.tar): + /bin/tar -xf /usr/src/RPM/SOURCES/opentelemetry-contrib-0.47b0.tar + cd opentelemetry-contrib-0.47b0 + /bin/chmod -c -Rf u+rwX,go-w . + echo 'Patch #0 (opentelemetry-contrib-alt-fix-mock-teardown.patch):' Patch #0 (opentelemetry-contrib-alt-fix-mock-teardown.patch): + /usr/bin/patch -p1 patching file opentelemetry-instrumentation/tests/test_bootstrap.py + exit 0 Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.52277 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd opentelemetry-contrib-0.47b0 + pushd ./opentelemetry-instrumentation ~/RPM/BUILD/opentelemetry-contrib-0.47b0/opentelemetry-instrumentation ~/RPM/BUILD/opentelemetry-contrib-0.47b0 + export 'CFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + export 'CXXFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + export 'FFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + /usr/bin/python3 -m pyproject_installer -v build INFO : pyproject_installer.build_cmd._build : Building wheel INFO : pyproject_installer.build_cmd._build : Source tree: /usr/src/RPM/BUILD/opentelemetry-contrib-0.47b0/opentelemetry-instrumentation INFO : pyproject_installer.build_cmd._build : Output dir: /usr/src/RPM/BUILD/opentelemetry-contrib-0.47b0/opentelemetry-instrumentation/dist DEBUG : pyproject_installer.lib.build_backend : Validating source path DEBUG : pyproject_installer.lib.build_backend : Checking for PEP517 spec DEBUG : pyproject_installer.lib.build_backend : Parsing configuration file: /usr/src/RPM/BUILD/opentelemetry-contrib-0.47b0/opentelemetry-instrumentation/pyproject.toml INFO : backend_caller.py : Calling hook build_wheel in subprocess INFO : backend_caller.py : Build backend: hatchling.build INFO : backend_caller.py : Hook args: ['/usr/src/RPM/BUILD/opentelemetry-contrib-0.47b0/opentelemetry-instrumentation/dist'] INFO : backend_caller.py : Hook kwargs: {'config_settings': None} INFO : pyproject_installer.build_cmd._build : Built wheel: opentelemetry_instrumentation-0.47b0-py3-none-any.whl + popd ~/RPM/BUILD/opentelemetry-contrib-0.47b0 + pushd ./util/opentelemetry-util-http ~/RPM/BUILD/opentelemetry-contrib-0.47b0/util/opentelemetry-util-http ~/RPM/BUILD/opentelemetry-contrib-0.47b0 + export 'CFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + export 'CXXFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + export 'FFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + /usr/bin/python3 -m pyproject_installer -v build INFO : pyproject_installer.build_cmd._build : Building wheel INFO : pyproject_installer.build_cmd._build : Source tree: /usr/src/RPM/BUILD/opentelemetry-contrib-0.47b0/util/opentelemetry-util-http INFO : pyproject_installer.build_cmd._build : Output dir: /usr/src/RPM/BUILD/opentelemetry-contrib-0.47b0/util/opentelemetry-util-http/dist DEBUG : pyproject_installer.lib.build_backend : Validating source path DEBUG : pyproject_installer.lib.build_backend : Checking for PEP517 spec DEBUG : pyproject_installer.lib.build_backend : Parsing configuration file: /usr/src/RPM/BUILD/opentelemetry-contrib-0.47b0/util/opentelemetry-util-http/pyproject.toml INFO : backend_caller.py : Calling hook build_wheel in subprocess INFO : backend_caller.py : Build backend: hatchling.build INFO : backend_caller.py : Hook args: ['/usr/src/RPM/BUILD/opentelemetry-contrib-0.47b0/util/opentelemetry-util-http/dist'] INFO : backend_caller.py : Hook kwargs: {'config_settings': None} INFO : pyproject_installer.build_cmd._build : Built wheel: opentelemetry_util_http-0.47b0-py3-none-any.whl + popd ~/RPM/BUILD/opentelemetry-contrib-0.47b0 + for idir in ./instrumentation/opentelemetry-instrumentation-asgi + pushd ./instrumentation/opentelemetry-instrumentation-asgi ~/RPM/BUILD/opentelemetry-contrib-0.47b0/instrumentation/opentelemetry-instrumentation-asgi ~/RPM/BUILD/opentelemetry-contrib-0.47b0 + export 'CFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + export 'CXXFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + export 'FFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + /usr/bin/python3 -m pyproject_installer -v build INFO : pyproject_installer.build_cmd._build : Building wheel INFO : pyproject_installer.build_cmd._build : Source tree: /usr/src/RPM/BUILD/opentelemetry-contrib-0.47b0/instrumentation/opentelemetry-instrumentation-asgi INFO : pyproject_installer.build_cmd._build : Output dir: /usr/src/RPM/BUILD/opentelemetry-contrib-0.47b0/instrumentation/opentelemetry-instrumentation-asgi/dist DEBUG : pyproject_installer.lib.build_backend : Validating source path DEBUG : pyproject_installer.lib.build_backend : Checking for PEP517 spec DEBUG : pyproject_installer.lib.build_backend : Parsing configuration file: /usr/src/RPM/BUILD/opentelemetry-contrib-0.47b0/instrumentation/opentelemetry-instrumentation-asgi/pyproject.toml INFO : backend_caller.py : Calling hook build_wheel in subprocess INFO : backend_caller.py : Build backend: hatchling.build INFO : backend_caller.py : Hook args: ['/usr/src/RPM/BUILD/opentelemetry-contrib-0.47b0/instrumentation/opentelemetry-instrumentation-asgi/dist'] INFO : backend_caller.py : Hook kwargs: {'config_settings': None} INFO : pyproject_installer.build_cmd._build : Built wheel: opentelemetry_instrumentation_asgi-0.47b0-py3-none-any.whl + popd ~/RPM/BUILD/opentelemetry-contrib-0.47b0 + for pdir in ./propagator/opentelemetry-propagator-{aws-xray,ot-trace} + pushd ./propagator/opentelemetry-propagator-aws-xray ~/RPM/BUILD/opentelemetry-contrib-0.47b0/propagator/opentelemetry-propagator-aws-xray ~/RPM/BUILD/opentelemetry-contrib-0.47b0 + export 'CFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + export 'CXXFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + export 'FFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + /usr/bin/python3 -m pyproject_installer -v build INFO : pyproject_installer.build_cmd._build : Building wheel INFO : pyproject_installer.build_cmd._build : Source tree: /usr/src/RPM/BUILD/opentelemetry-contrib-0.47b0/propagator/opentelemetry-propagator-aws-xray INFO : pyproject_installer.build_cmd._build : Output dir: /usr/src/RPM/BUILD/opentelemetry-contrib-0.47b0/propagator/opentelemetry-propagator-aws-xray/dist DEBUG : pyproject_installer.lib.build_backend : Validating source path DEBUG : pyproject_installer.lib.build_backend : Checking for PEP517 spec DEBUG : pyproject_installer.lib.build_backend : Parsing configuration file: /usr/src/RPM/BUILD/opentelemetry-contrib-0.47b0/propagator/opentelemetry-propagator-aws-xray/pyproject.toml INFO : backend_caller.py : Calling hook build_wheel in subprocess INFO : backend_caller.py : Build backend: hatchling.build INFO : backend_caller.py : Hook args: ['/usr/src/RPM/BUILD/opentelemetry-contrib-0.47b0/propagator/opentelemetry-propagator-aws-xray/dist'] INFO : backend_caller.py : Hook kwargs: {'config_settings': None} INFO : pyproject_installer.build_cmd._build : Built wheel: opentelemetry_propagator_aws_xray-1.0.1-py3-none-any.whl + popd ~/RPM/BUILD/opentelemetry-contrib-0.47b0 + for pdir in ./propagator/opentelemetry-propagator-{aws-xray,ot-trace} + pushd ./propagator/opentelemetry-propagator-ot-trace ~/RPM/BUILD/opentelemetry-contrib-0.47b0/propagator/opentelemetry-propagator-ot-trace ~/RPM/BUILD/opentelemetry-contrib-0.47b0 + export 'CFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + export 'CXXFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + export 'FFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + /usr/bin/python3 -m pyproject_installer -v build INFO : pyproject_installer.build_cmd._build : Building wheel INFO : pyproject_installer.build_cmd._build : Source tree: /usr/src/RPM/BUILD/opentelemetry-contrib-0.47b0/propagator/opentelemetry-propagator-ot-trace INFO : pyproject_installer.build_cmd._build : Output dir: /usr/src/RPM/BUILD/opentelemetry-contrib-0.47b0/propagator/opentelemetry-propagator-ot-trace/dist DEBUG : pyproject_installer.lib.build_backend : Validating source path DEBUG : pyproject_installer.lib.build_backend : Checking for PEP517 spec DEBUG : pyproject_installer.lib.build_backend : Parsing configuration file: /usr/src/RPM/BUILD/opentelemetry-contrib-0.47b0/propagator/opentelemetry-propagator-ot-trace/pyproject.toml INFO : backend_caller.py : Calling hook build_wheel in subprocess INFO : backend_caller.py : Build backend: hatchling.build INFO : backend_caller.py : Hook args: ['/usr/src/RPM/BUILD/opentelemetry-contrib-0.47b0/propagator/opentelemetry-propagator-ot-trace/dist'] INFO : backend_caller.py : Hook kwargs: {'config_settings': None} INFO : pyproject_installer.build_cmd._build : Built wheel: opentelemetry_propagator_ot_trace-0.47b0-py3-none-any.whl + popd ~/RPM/BUILD/opentelemetry-contrib-0.47b0 + exit 0 Executing(%install): /bin/sh -e /usr/src/tmp/rpm-tmp.35396 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + /bin/chmod -Rf u+rwX -- /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot + : + /bin/rm -rf -- /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot + PATH=/usr/libexec/rpm-build:/usr/src/bin:/usr/bin:/bin:/usr/local/bin:/usr/games + cd opentelemetry-contrib-0.47b0 + pushd ./opentelemetry-instrumentation ~/RPM/BUILD/opentelemetry-contrib-0.47b0/opentelemetry-instrumentation ~/RPM/BUILD/opentelemetry-contrib-0.47b0 + /usr/bin/python3 -m pyproject_installer -v install --destdir=/usr/src/tmp/python3-module-opentelemetry-contrib-buildroot INFO : pyproject_installer.install_cmd._install : Installing wheel INFO : pyproject_installer.install_cmd._install : Wheel directory: /usr/src/RPM/BUILD/opentelemetry-contrib-0.47b0/opentelemetry-instrumentation/dist INFO : pyproject_installer.install_cmd._install : Wheel filename: opentelemetry_instrumentation-0.47b0-py3-none-any.whl INFO : pyproject_installer.install_cmd._install : Destination: /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot DEBUG : pyproject_installer.lib.wheel : Parsing wheel filename DEBUG : pyproject_installer.lib.wheel : Validating wheel file DEBUG : pyproject_installer.lib.wheel : Validating wheel spec version DEBUG : pyproject_installer.lib.wheel : Parsing wheel spec metadata DEBUG : pyproject_installer.lib.wheel : Validating RECORD INFO : pyproject_installer.install_cmd._install : Wheel installation root: /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot/usr/lib/python3/site-packages INFO : pyproject_installer.install_cmd._install : Extracting wheel DEBUG : pyproject_installer.install_cmd._install : Filtering out not allowed file: opentelemetry_instrumentation-0.47b0.dist-info/WHEEL DEBUG : pyproject_installer.install_cmd._install : Filtering out not allowed file: opentelemetry_instrumentation-0.47b0.dist-info/licenses/LICENSE DEBUG : pyproject_installer.install_cmd._install : Filtering out not allowed file: opentelemetry_instrumentation-0.47b0.dist-info/RECORD INFO : pyproject_installer.install_cmd._install : Generating entrypoints scripts DEBUG : pyproject_installer.lib.scripts : Installing console script: opentelemetry-bootstrap DEBUG : pyproject_installer.lib.scripts : Installing console script: opentelemetry-instrument INFO : pyproject_installer.install_cmd._install : Wheel was installed + popd ~/RPM/BUILD/opentelemetry-contrib-0.47b0 + pushd ./util/opentelemetry-util-http ~/RPM/BUILD/opentelemetry-contrib-0.47b0/util/opentelemetry-util-http ~/RPM/BUILD/opentelemetry-contrib-0.47b0 + /usr/bin/python3 -m pyproject_installer -v install --destdir=/usr/src/tmp/python3-module-opentelemetry-contrib-buildroot INFO : pyproject_installer.install_cmd._install : Installing wheel INFO : pyproject_installer.install_cmd._install : Wheel directory: /usr/src/RPM/BUILD/opentelemetry-contrib-0.47b0/util/opentelemetry-util-http/dist INFO : pyproject_installer.install_cmd._install : Wheel filename: opentelemetry_util_http-0.47b0-py3-none-any.whl INFO : pyproject_installer.install_cmd._install : Destination: /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot DEBUG : pyproject_installer.lib.wheel : Parsing wheel filename DEBUG : pyproject_installer.lib.wheel : Validating wheel file DEBUG : pyproject_installer.lib.wheel : Validating wheel spec version DEBUG : pyproject_installer.lib.wheel : Parsing wheel spec metadata DEBUG : pyproject_installer.lib.wheel : Validating RECORD INFO : pyproject_installer.install_cmd._install : Wheel installation root: /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot/usr/lib/python3/site-packages INFO : pyproject_installer.install_cmd._install : Extracting wheel DEBUG : pyproject_installer.install_cmd._install : Filtering out not allowed file: opentelemetry_util_http-0.47b0.dist-info/WHEEL DEBUG : pyproject_installer.install_cmd._install : Filtering out not allowed file: opentelemetry_util_http-0.47b0.dist-info/RECORD INFO : pyproject_installer.install_cmd._install : Wheel was installed + popd ~/RPM/BUILD/opentelemetry-contrib-0.47b0 + for idir in ./instrumentation/opentelemetry-instrumentation-asgi + pushd ./instrumentation/opentelemetry-instrumentation-asgi ~/RPM/BUILD/opentelemetry-contrib-0.47b0/instrumentation/opentelemetry-instrumentation-asgi ~/RPM/BUILD/opentelemetry-contrib-0.47b0 + /usr/bin/python3 -m pyproject_installer -v install --destdir=/usr/src/tmp/python3-module-opentelemetry-contrib-buildroot INFO : pyproject_installer.install_cmd._install : Installing wheel INFO : pyproject_installer.install_cmd._install : Wheel directory: /usr/src/RPM/BUILD/opentelemetry-contrib-0.47b0/instrumentation/opentelemetry-instrumentation-asgi/dist INFO : pyproject_installer.install_cmd._install : Wheel filename: opentelemetry_instrumentation_asgi-0.47b0-py3-none-any.whl INFO : pyproject_installer.install_cmd._install : Destination: /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot DEBUG : pyproject_installer.lib.wheel : Parsing wheel filename DEBUG : pyproject_installer.lib.wheel : Validating wheel file DEBUG : pyproject_installer.lib.wheel : Validating wheel spec version DEBUG : pyproject_installer.lib.wheel : Parsing wheel spec metadata DEBUG : pyproject_installer.lib.wheel : Validating RECORD INFO : pyproject_installer.install_cmd._install : Wheel installation root: /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot/usr/lib/python3/site-packages INFO : pyproject_installer.install_cmd._install : Extracting wheel DEBUG : pyproject_installer.install_cmd._install : Filtering out not allowed file: opentelemetry_instrumentation_asgi-0.47b0.dist-info/WHEEL DEBUG : pyproject_installer.install_cmd._install : Filtering out not allowed file: opentelemetry_instrumentation_asgi-0.47b0.dist-info/licenses/LICENSE DEBUG : pyproject_installer.install_cmd._install : Filtering out not allowed file: opentelemetry_instrumentation_asgi-0.47b0.dist-info/RECORD INFO : pyproject_installer.install_cmd._install : Wheel was installed + popd ~/RPM/BUILD/opentelemetry-contrib-0.47b0 + for pdir in ./propagator/opentelemetry-propagator-{aws-xray,ot-trace} + pushd ./propagator/opentelemetry-propagator-aws-xray ~/RPM/BUILD/opentelemetry-contrib-0.47b0/propagator/opentelemetry-propagator-aws-xray ~/RPM/BUILD/opentelemetry-contrib-0.47b0 + /usr/bin/python3 -m pyproject_installer -v install --destdir=/usr/src/tmp/python3-module-opentelemetry-contrib-buildroot INFO : pyproject_installer.install_cmd._install : Installing wheel INFO : pyproject_installer.install_cmd._install : Wheel directory: /usr/src/RPM/BUILD/opentelemetry-contrib-0.47b0/propagator/opentelemetry-propagator-aws-xray/dist INFO : pyproject_installer.install_cmd._install : Wheel filename: opentelemetry_propagator_aws_xray-1.0.1-py3-none-any.whl INFO : pyproject_installer.install_cmd._install : Destination: /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot DEBUG : pyproject_installer.lib.wheel : Parsing wheel filename DEBUG : pyproject_installer.lib.wheel : Validating wheel file DEBUG : pyproject_installer.lib.wheel : Validating wheel spec version DEBUG : pyproject_installer.lib.wheel : Parsing wheel spec metadata DEBUG : pyproject_installer.lib.wheel : Validating RECORD INFO : pyproject_installer.install_cmd._install : Wheel installation root: /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot/usr/lib/python3/site-packages INFO : pyproject_installer.install_cmd._install : Extracting wheel DEBUG : pyproject_installer.install_cmd._install : Filtering out not allowed file: opentelemetry_propagator_aws_xray-1.0.1.dist-info/WHEEL DEBUG : pyproject_installer.install_cmd._install : Filtering out not allowed file: opentelemetry_propagator_aws_xray-1.0.1.dist-info/licenses/LICENSE DEBUG : pyproject_installer.install_cmd._install : Filtering out not allowed file: opentelemetry_propagator_aws_xray-1.0.1.dist-info/RECORD INFO : pyproject_installer.install_cmd._install : Generating entrypoints scripts INFO : pyproject_installer.install_cmd._install : Wheel was installed + popd ~/RPM/BUILD/opentelemetry-contrib-0.47b0 + for pdir in ./propagator/opentelemetry-propagator-{aws-xray,ot-trace} + pushd ./propagator/opentelemetry-propagator-ot-trace ~/RPM/BUILD/opentelemetry-contrib-0.47b0/propagator/opentelemetry-propagator-ot-trace ~/RPM/BUILD/opentelemetry-contrib-0.47b0 + /usr/bin/python3 -m pyproject_installer -v install --destdir=/usr/src/tmp/python3-module-opentelemetry-contrib-buildroot INFO : pyproject_installer.install_cmd._install : Installing wheel INFO : pyproject_installer.install_cmd._install : Wheel directory: /usr/src/RPM/BUILD/opentelemetry-contrib-0.47b0/propagator/opentelemetry-propagator-ot-trace/dist INFO : pyproject_installer.install_cmd._install : Wheel filename: opentelemetry_propagator_ot_trace-0.47b0-py3-none-any.whl INFO : pyproject_installer.install_cmd._install : Destination: /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot DEBUG : pyproject_installer.lib.wheel : Parsing wheel filename DEBUG : pyproject_installer.lib.wheel : Validating wheel file DEBUG : pyproject_installer.lib.wheel : Validating wheel spec version DEBUG : pyproject_installer.lib.wheel : Parsing wheel spec metadata DEBUG : pyproject_installer.lib.wheel : Validating RECORD INFO : pyproject_installer.install_cmd._install : Wheel installation root: /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot/usr/lib/python3/site-packages INFO : pyproject_installer.install_cmd._install : Extracting wheel DEBUG : pyproject_installer.install_cmd._install : Filtering out not allowed file: opentelemetry_propagator_ot_trace-0.47b0.dist-info/WHEEL DEBUG : pyproject_installer.install_cmd._install : Filtering out not allowed file: opentelemetry_propagator_ot_trace-0.47b0.dist-info/RECORD INFO : pyproject_installer.install_cmd._install : Generating entrypoints scripts INFO : pyproject_installer.install_cmd._install : Wheel was installed + popd ~/RPM/BUILD/opentelemetry-contrib-0.47b0 + /usr/lib/rpm/brp-alt Cleaning files in /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot (auto) Verifying and fixing files in /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot (binconfig,pkgconfig,libtool,desktop,gnuconfig) Checking contents of files in /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot/ (default) Compressing files in /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot (auto) Adjusting library links in /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot ./usr/lib: (from :0) Verifying ELF objects in /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot (arch=normal,fhs=normal,lfs=relaxed,lint=relaxed,rpath=normal,stack=normal,textrel=normal,unresolved=normal) Splitting links to aliased files under /{,s}bin in /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot Bytecompiling python3 modules in /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot using /usr/bin/python3 compile /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot/usr/lib/python3/site-packages/opentelemetry/instrumentation/asgi/__init__.py compile /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot/usr/lib/python3/site-packages/opentelemetry/instrumentation/asgi/package.py compile /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot/usr/lib/python3/site-packages/opentelemetry/instrumentation/asgi/types.py compile /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot/usr/lib/python3/site-packages/opentelemetry/instrumentation/asgi/version.py compile /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot/usr/lib/python3/site-packages/opentelemetry/instrumentation/auto_instrumentation/__init__.py compile /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot/usr/lib/python3/site-packages/opentelemetry/instrumentation/auto_instrumentation/_load.py compile /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot/usr/lib/python3/site-packages/opentelemetry/instrumentation/auto_instrumentation/sitecustomize.py compile /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot/usr/lib/python3/site-packages/opentelemetry/instrumentation/_semconv.py compile /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot/usr/lib/python3/site-packages/opentelemetry/instrumentation/bootstrap.py compile /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot/usr/lib/python3/site-packages/opentelemetry/instrumentation/bootstrap_gen.py compile /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot/usr/lib/python3/site-packages/opentelemetry/instrumentation/dependencies.py compile /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot/usr/lib/python3/site-packages/opentelemetry/instrumentation/distro.py compile /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot/usr/lib/python3/site-packages/opentelemetry/instrumentation/environment_variables.py compile /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot/usr/lib/python3/site-packages/opentelemetry/instrumentation/instrumentor.py compile /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot/usr/lib/python3/site-packages/opentelemetry/instrumentation/propagators.py compile /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot/usr/lib/python3/site-packages/opentelemetry/instrumentation/sqlcommenter_utils.py compile /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot/usr/lib/python3/site-packages/opentelemetry/instrumentation/utils.py compile /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot/usr/lib/python3/site-packages/opentelemetry/instrumentation/version.py compile /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot/usr/lib/python3/site-packages/opentelemetry/propagators/aws/__init__.py compile /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot/usr/lib/python3/site-packages/opentelemetry/propagators/aws/aws_xray_propagator.py compile /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot/usr/lib/python3/site-packages/opentelemetry/propagators/aws/version.py compile /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot/usr/lib/python3/site-packages/opentelemetry/propagators/ot_trace/__init__.py compile /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot/usr/lib/python3/site-packages/opentelemetry/propagators/ot_trace/version.py compile /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot/usr/lib/python3/site-packages/opentelemetry/util/http/__init__.py compile /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot/usr/lib/python3/site-packages/opentelemetry/util/http/httplib.py compile /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot/usr/lib/python3/site-packages/opentelemetry/util/http/version.py Bytecompiling python3 modules with optimization in /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot using /usr/bin/python3 -O compile /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot/usr/lib/python3/site-packages/opentelemetry/instrumentation/asgi/__init__.py compile /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot/usr/lib/python3/site-packages/opentelemetry/instrumentation/asgi/package.py compile /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot/usr/lib/python3/site-packages/opentelemetry/instrumentation/asgi/types.py compile /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot/usr/lib/python3/site-packages/opentelemetry/instrumentation/asgi/version.py compile /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot/usr/lib/python3/site-packages/opentelemetry/instrumentation/auto_instrumentation/__init__.py compile /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot/usr/lib/python3/site-packages/opentelemetry/instrumentation/auto_instrumentation/_load.py compile /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot/usr/lib/python3/site-packages/opentelemetry/instrumentation/auto_instrumentation/sitecustomize.py compile /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot/usr/lib/python3/site-packages/opentelemetry/instrumentation/_semconv.py compile /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot/usr/lib/python3/site-packages/opentelemetry/instrumentation/bootstrap.py compile /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot/usr/lib/python3/site-packages/opentelemetry/instrumentation/bootstrap_gen.py compile /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot/usr/lib/python3/site-packages/opentelemetry/instrumentation/dependencies.py compile /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot/usr/lib/python3/site-packages/opentelemetry/instrumentation/distro.py compile /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot/usr/lib/python3/site-packages/opentelemetry/instrumentation/environment_variables.py compile /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot/usr/lib/python3/site-packages/opentelemetry/instrumentation/instrumentor.py compile /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot/usr/lib/python3/site-packages/opentelemetry/instrumentation/propagators.py compile /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot/usr/lib/python3/site-packages/opentelemetry/instrumentation/sqlcommenter_utils.py compile /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot/usr/lib/python3/site-packages/opentelemetry/instrumentation/utils.py compile /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot/usr/lib/python3/site-packages/opentelemetry/instrumentation/version.py compile /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot/usr/lib/python3/site-packages/opentelemetry/propagators/aws/__init__.py compile /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot/usr/lib/python3/site-packages/opentelemetry/propagators/aws/aws_xray_propagator.py compile /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot/usr/lib/python3/site-packages/opentelemetry/propagators/aws/version.py compile /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot/usr/lib/python3/site-packages/opentelemetry/propagators/ot_trace/__init__.py compile /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot/usr/lib/python3/site-packages/opentelemetry/propagators/ot_trace/version.py compile /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot/usr/lib/python3/site-packages/opentelemetry/util/http/__init__.py compile /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot/usr/lib/python3/site-packages/opentelemetry/util/http/httplib.py compile /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot/usr/lib/python3/site-packages/opentelemetry/util/http/version.py Bytecompiling python3 modules with optimization-2 in /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot using /usr/bin/python3 -OO compile /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot/usr/lib/python3/site-packages/opentelemetry/instrumentation/asgi/__init__.py compile /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot/usr/lib/python3/site-packages/opentelemetry/instrumentation/asgi/package.py compile /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot/usr/lib/python3/site-packages/opentelemetry/instrumentation/asgi/types.py compile /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot/usr/lib/python3/site-packages/opentelemetry/instrumentation/asgi/version.py compile /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot/usr/lib/python3/site-packages/opentelemetry/instrumentation/auto_instrumentation/__init__.py compile /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot/usr/lib/python3/site-packages/opentelemetry/instrumentation/auto_instrumentation/_load.py compile /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot/usr/lib/python3/site-packages/opentelemetry/instrumentation/auto_instrumentation/sitecustomize.py compile /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot/usr/lib/python3/site-packages/opentelemetry/instrumentation/_semconv.py compile /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot/usr/lib/python3/site-packages/opentelemetry/instrumentation/bootstrap.py compile /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot/usr/lib/python3/site-packages/opentelemetry/instrumentation/bootstrap_gen.py compile /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot/usr/lib/python3/site-packages/opentelemetry/instrumentation/dependencies.py compile /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot/usr/lib/python3/site-packages/opentelemetry/instrumentation/distro.py compile /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot/usr/lib/python3/site-packages/opentelemetry/instrumentation/environment_variables.py compile /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot/usr/lib/python3/site-packages/opentelemetry/instrumentation/instrumentor.py compile /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot/usr/lib/python3/site-packages/opentelemetry/instrumentation/propagators.py compile /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot/usr/lib/python3/site-packages/opentelemetry/instrumentation/sqlcommenter_utils.py compile /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot/usr/lib/python3/site-packages/opentelemetry/instrumentation/utils.py compile /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot/usr/lib/python3/site-packages/opentelemetry/instrumentation/version.py compile /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot/usr/lib/python3/site-packages/opentelemetry/propagators/aws/__init__.py compile /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot/usr/lib/python3/site-packages/opentelemetry/propagators/aws/aws_xray_propagator.py compile /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot/usr/lib/python3/site-packages/opentelemetry/propagators/aws/version.py compile /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot/usr/lib/python3/site-packages/opentelemetry/propagators/ot_trace/__init__.py compile /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot/usr/lib/python3/site-packages/opentelemetry/propagators/ot_trace/version.py compile /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot/usr/lib/python3/site-packages/opentelemetry/util/http/__init__.py compile /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot/usr/lib/python3/site-packages/opentelemetry/util/http/httplib.py compile /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot/usr/lib/python3/site-packages/opentelemetry/util/http/version.py Hardlinking identical .pyc and .opt-?.pyc files './usr/lib/python3/site-packages/opentelemetry/instrumentation/__pycache__/_semconv.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/opentelemetry/instrumentation/__pycache__/_semconv.cpython-312.pyc' './usr/lib/python3/site-packages/opentelemetry/instrumentation/__pycache__/_semconv.cpython-312.opt-2.pyc' => './usr/lib/python3/site-packages/opentelemetry/instrumentation/__pycache__/_semconv.cpython-312.opt-1.pyc' './usr/lib/python3/site-packages/opentelemetry/instrumentation/__pycache__/bootstrap.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/opentelemetry/instrumentation/__pycache__/bootstrap.cpython-312.pyc' './usr/lib/python3/site-packages/opentelemetry/instrumentation/__pycache__/bootstrap_gen.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/opentelemetry/instrumentation/__pycache__/bootstrap_gen.cpython-312.pyc' './usr/lib/python3/site-packages/opentelemetry/instrumentation/__pycache__/bootstrap_gen.cpython-312.opt-2.pyc' => './usr/lib/python3/site-packages/opentelemetry/instrumentation/__pycache__/bootstrap_gen.cpython-312.opt-1.pyc' './usr/lib/python3/site-packages/opentelemetry/instrumentation/__pycache__/dependencies.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/opentelemetry/instrumentation/__pycache__/dependencies.cpython-312.pyc' './usr/lib/python3/site-packages/opentelemetry/instrumentation/__pycache__/dependencies.cpython-312.opt-2.pyc' => './usr/lib/python3/site-packages/opentelemetry/instrumentation/__pycache__/dependencies.cpython-312.opt-1.pyc' './usr/lib/python3/site-packages/opentelemetry/instrumentation/__pycache__/distro.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/opentelemetry/instrumentation/__pycache__/distro.cpython-312.pyc' './usr/lib/python3/site-packages/opentelemetry/instrumentation/__pycache__/environment_variables.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/opentelemetry/instrumentation/__pycache__/environment_variables.cpython-312.pyc' './usr/lib/python3/site-packages/opentelemetry/instrumentation/__pycache__/environment_variables.cpython-312.opt-2.pyc' => './usr/lib/python3/site-packages/opentelemetry/instrumentation/__pycache__/environment_variables.cpython-312.opt-1.pyc' './usr/lib/python3/site-packages/opentelemetry/instrumentation/__pycache__/instrumentor.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/opentelemetry/instrumentation/__pycache__/instrumentor.cpython-312.pyc' './usr/lib/python3/site-packages/opentelemetry/instrumentation/__pycache__/propagators.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/opentelemetry/instrumentation/__pycache__/propagators.cpython-312.pyc' './usr/lib/python3/site-packages/opentelemetry/instrumentation/__pycache__/sqlcommenter_utils.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/opentelemetry/instrumentation/__pycache__/sqlcommenter_utils.cpython-312.pyc' './usr/lib/python3/site-packages/opentelemetry/instrumentation/__pycache__/utils.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/opentelemetry/instrumentation/__pycache__/utils.cpython-312.pyc' './usr/lib/python3/site-packages/opentelemetry/instrumentation/__pycache__/version.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/opentelemetry/instrumentation/__pycache__/version.cpython-312.pyc' './usr/lib/python3/site-packages/opentelemetry/instrumentation/__pycache__/version.cpython-312.opt-2.pyc' => './usr/lib/python3/site-packages/opentelemetry/instrumentation/__pycache__/version.cpython-312.opt-1.pyc' './usr/lib/python3/site-packages/opentelemetry/instrumentation/asgi/__pycache__/__init__.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/opentelemetry/instrumentation/asgi/__pycache__/__init__.cpython-312.pyc' './usr/lib/python3/site-packages/opentelemetry/instrumentation/asgi/__pycache__/package.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/opentelemetry/instrumentation/asgi/__pycache__/package.cpython-312.pyc' './usr/lib/python3/site-packages/opentelemetry/instrumentation/asgi/__pycache__/package.cpython-312.opt-2.pyc' => './usr/lib/python3/site-packages/opentelemetry/instrumentation/asgi/__pycache__/package.cpython-312.opt-1.pyc' './usr/lib/python3/site-packages/opentelemetry/instrumentation/asgi/__pycache__/types.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/opentelemetry/instrumentation/asgi/__pycache__/types.cpython-312.pyc' './usr/lib/python3/site-packages/opentelemetry/instrumentation/asgi/__pycache__/types.cpython-312.opt-2.pyc' => './usr/lib/python3/site-packages/opentelemetry/instrumentation/asgi/__pycache__/types.cpython-312.opt-1.pyc' './usr/lib/python3/site-packages/opentelemetry/instrumentation/asgi/__pycache__/version.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/opentelemetry/instrumentation/asgi/__pycache__/version.cpython-312.pyc' './usr/lib/python3/site-packages/opentelemetry/instrumentation/asgi/__pycache__/version.cpython-312.opt-2.pyc' => './usr/lib/python3/site-packages/opentelemetry/instrumentation/asgi/__pycache__/version.cpython-312.opt-1.pyc' './usr/lib/python3/site-packages/opentelemetry/instrumentation/auto_instrumentation/__pycache__/__init__.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/opentelemetry/instrumentation/auto_instrumentation/__pycache__/__init__.cpython-312.pyc' './usr/lib/python3/site-packages/opentelemetry/instrumentation/auto_instrumentation/__pycache__/__init__.cpython-312.opt-2.pyc' => './usr/lib/python3/site-packages/opentelemetry/instrumentation/auto_instrumentation/__pycache__/__init__.cpython-312.opt-1.pyc' './usr/lib/python3/site-packages/opentelemetry/instrumentation/auto_instrumentation/__pycache__/_load.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/opentelemetry/instrumentation/auto_instrumentation/__pycache__/_load.cpython-312.pyc' './usr/lib/python3/site-packages/opentelemetry/instrumentation/auto_instrumentation/__pycache__/_load.cpython-312.opt-2.pyc' => './usr/lib/python3/site-packages/opentelemetry/instrumentation/auto_instrumentation/__pycache__/_load.cpython-312.opt-1.pyc' './usr/lib/python3/site-packages/opentelemetry/instrumentation/auto_instrumentation/__pycache__/sitecustomize.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/opentelemetry/instrumentation/auto_instrumentation/__pycache__/sitecustomize.cpython-312.pyc' './usr/lib/python3/site-packages/opentelemetry/instrumentation/auto_instrumentation/__pycache__/sitecustomize.cpython-312.opt-2.pyc' => './usr/lib/python3/site-packages/opentelemetry/instrumentation/auto_instrumentation/__pycache__/sitecustomize.cpython-312.opt-1.pyc' './usr/lib/python3/site-packages/opentelemetry/propagators/aws/__pycache__/__init__.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/opentelemetry/propagators/aws/__pycache__/__init__.cpython-312.pyc' './usr/lib/python3/site-packages/opentelemetry/propagators/aws/__pycache__/__init__.cpython-312.opt-2.pyc' => './usr/lib/python3/site-packages/opentelemetry/propagators/aws/__pycache__/__init__.cpython-312.opt-1.pyc' './usr/lib/python3/site-packages/opentelemetry/propagators/aws/__pycache__/aws_xray_propagator.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/opentelemetry/propagators/aws/__pycache__/aws_xray_propagator.cpython-312.pyc' './usr/lib/python3/site-packages/opentelemetry/propagators/aws/__pycache__/version.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/opentelemetry/propagators/aws/__pycache__/version.cpython-312.pyc' './usr/lib/python3/site-packages/opentelemetry/propagators/aws/__pycache__/version.cpython-312.opt-2.pyc' => './usr/lib/python3/site-packages/opentelemetry/propagators/aws/__pycache__/version.cpython-312.opt-1.pyc' './usr/lib/python3/site-packages/opentelemetry/propagators/ot_trace/__pycache__/__init__.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/opentelemetry/propagators/ot_trace/__pycache__/__init__.cpython-312.pyc' './usr/lib/python3/site-packages/opentelemetry/propagators/ot_trace/__pycache__/version.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/opentelemetry/propagators/ot_trace/__pycache__/version.cpython-312.pyc' './usr/lib/python3/site-packages/opentelemetry/propagators/ot_trace/__pycache__/version.cpython-312.opt-2.pyc' => './usr/lib/python3/site-packages/opentelemetry/propagators/ot_trace/__pycache__/version.cpython-312.opt-1.pyc' './usr/lib/python3/site-packages/opentelemetry/util/http/__pycache__/__init__.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/opentelemetry/util/http/__pycache__/__init__.cpython-312.pyc' './usr/lib/python3/site-packages/opentelemetry/util/http/__pycache__/httplib.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/opentelemetry/util/http/__pycache__/httplib.cpython-312.pyc' './usr/lib/python3/site-packages/opentelemetry/util/http/__pycache__/version.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/opentelemetry/util/http/__pycache__/version.cpython-312.pyc' './usr/lib/python3/site-packages/opentelemetry/util/http/__pycache__/version.cpython-312.opt-2.pyc' => './usr/lib/python3/site-packages/opentelemetry/util/http/__pycache__/version.cpython-312.opt-1.pyc' Executing(%check): /bin/sh -e /usr/src/tmp/rpm-tmp.42442 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd opentelemetry-contrib-0.47b0 + export PYTHONPATH=/usr/src/tmp/python3-module-opentelemetry-contrib-buildroot/usr/lib/python3/site-packages + PYTHONPATH=/usr/src/tmp/python3-module-opentelemetry-contrib-buildroot/usr/lib/python3/site-packages + pushd ./opentelemetry-instrumentation ~/RPM/BUILD/opentelemetry-contrib-0.47b0/opentelemetry-instrumentation ~/RPM/BUILD/opentelemetry-contrib-0.47b0 + export 'CFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + export 'CXXFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + export 'FFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + export NO_INTERNET=YES + NO_INTERNET=YES + /usr/bin/python3 -m pyproject_installer run -- python3 -m pytest -k 'not test_run.py' INFO : Creating venv INFO : Installing console scripts INFO : Installing package: /usr/src/RPM/BUILD/opentelemetry-contrib-0.47b0/opentelemetry-instrumentation/dist/opentelemetry_instrumentation-0.47b0-py3-none-any.whl INFO : Running command: ['/usr/src/RPM/BUILD/opentelemetry-contrib-0.47b0/opentelemetry-instrumentation/.run_venv/bin/python3', '-m', 'pyproject_installer', 'install', '/usr/src/RPM/BUILD/opentelemetry-contrib-0.47b0/opentelemetry-instrumentation/dist/opentelemetry_instrumentation-0.47b0-py3-none-any.whl'] INFO : Running command: ['python3', '-m', 'pytest', '-k', 'not test_run.py'] ============================= test session starts ============================== platform linux -- Python 3.12.8, pytest-8.3.4, pluggy-1.5.0 -- /usr/src/RPM/BUILD/opentelemetry-contrib-0.47b0/opentelemetry-instrumentation/.run_venv/bin/python3 cachedir: .pytest_cache benchmark: 5.1.0 (defaults: timer=time.perf_counter disable_gc=False min_rounds=5 min_time=0.000005 max_time=1.0 calibration_precision=10 warmup=False warmup_iterations=100000) rootdir: /usr/src/RPM/BUILD/opentelemetry-contrib-0.47b0 configfile: pytest.ini plugins: benchmark-5.1.0 collecting ... collected 46 items / 6 deselected / 40 selected tests/auto_instrumentation/test_load.py::TestLoad::test_load_configurators -------------------------------- live log call --------------------------------- WARNING opentelemetry.instrumentation.auto_instrumentation._load:_load.py:116 Configuration of custom_configurator1 not loaded because custom_configurator2 is set by OTEL_PYTHON_CONFIGURATOR WARNING opentelemetry.instrumentation.auto_instrumentation._load:_load.py:102 Configuration of custom_configurator3 not loaded, custom_configurator2 already loaded PASSED [ 2%] tests/auto_instrumentation/test_load.py::TestLoad::test_load_configurators_error -------------------------------- live log call --------------------------------- WARNING opentelemetry.instrumentation.auto_instrumentation._load:_load.py:116 Configuration of custom_configurator1 not loaded because custom_configurator2 is set by OTEL_PYTHON_CONFIGURATOR ERROR opentelemetry.instrumentation.auto_instrumentation._load:_load.py:123 Configuration of custom_configurator2 failed Traceback (most recent call last): File "/usr/src/tmp/python3-module-opentelemetry-contrib-buildroot/usr/lib/python3/site-packages/opentelemetry/instrumentation/auto_instrumentation/_load.py", line 113, in _load_configurators entry_point.load()().configure(auto_instrumentation_version=__version__) # type: ignore ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/unittest/mock.py", line 1139, in __call__ return self._mock_call(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/unittest/mock.py", line 1143, in _mock_call return self._execute_mock_call(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/unittest/mock.py", line 1198, in _execute_mock_call raise effect Exception PASSED [ 5%] tests/auto_instrumentation/test_load.py::TestLoad::test_load_configurators_no_ep PASSED [ 7%] tests/auto_instrumentation/test_load.py::TestLoad::test_load_distro PASSED [ 10%] tests/auto_instrumentation/test_load.py::TestLoad::test_load_distro_error -------------------------------- live log call --------------------------------- ERROR opentelemetry.instrumentation.auto_instrumentation._load:_load.py:52 Distribution custom_distro2 configuration failed Traceback (most recent call last): File "/usr/src/tmp/python3-module-opentelemetry-contrib-buildroot/usr/lib/python3/site-packages/opentelemetry/instrumentation/auto_instrumentation/_load.py", line 40, in _load_distro distro = entry_point.load()() ^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/unittest/mock.py", line 1139, in __call__ return self._mock_call(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/unittest/mock.py", line 1143, in _mock_call return self._execute_mock_call(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/unittest/mock.py", line 1198, in _execute_mock_call raise effect Exception PASSED [ 12%] tests/auto_instrumentation/test_load.py::TestLoad::test_load_distro_no_ep PASSED [ 15%] tests/auto_instrumentation/test_load.py::TestLoad::test_load_distro_not_distro PASSED [ 17%] tests/auto_instrumentation/test_load.py::TestLoad::test_load_instrumentors PASSED [ 20%] tests/auto_instrumentation/test_load.py::TestLoad::test_load_instrumentors_dep_conflict PASSED [ 22%] tests/test_bootstrap.py::TestBootstrap::test_run_cmd_install PASSED [ 25%] tests/test_bootstrap.py::TestBootstrap::test_run_cmd_print PASSED [ 27%] tests/test_bootstrap.py::TestBootstrap::test_run_unknown_cmd PASSED [ 30%] tests/test_dependencies.py::TestDependencyConflicts::test_get_dependency_conflicts_empty PASSED [ 32%] tests/test_dependencies.py::TestDependencyConflicts::test_get_dependency_conflicts_mismatched_version PASSED [ 35%] tests/test_dependencies.py::TestDependencyConflicts::test_get_dependency_conflicts_no_conflict PASSED [ 37%] tests/test_dependencies.py::TestDependencyConflicts::test_get_dependency_conflicts_not_installed PASSED [ 40%] tests/test_dependencies.py::TestDependencyConflicts::test_get_dist_dependency_conflicts PASSED [ 42%] tests/test_distro.py::TestDistro::test_load_instrumentor PASSED [ 45%] tests/test_instrumentor.py::TestInstrumentor::test_protect PASSED [ 47%] tests/test_instrumentor.py::TestInstrumentor::test_singleton PASSED [ 50%] tests/test_propagators.py::TestGlobals::test_get_set PASSED [ 52%] tests/test_propagators.py::TestDictHeaderSetter::test_append PASSED [ 55%] tests/test_propagators.py::TestDictHeaderSetter::test_simple PASSED [ 57%] tests/test_propagators.py::TestTraceResponsePropagator::test_inject PASSED [ 60%] tests/test_utils.py::TestUtils::test_add_sql_comments_with_semicolon PASSED [ 62%] tests/test_utils.py::TestUtils::test_add_sql_comments_without_comments PASSED [ 65%] tests/test_utils.py::TestUtils::test_add_sql_comments_without_semicolon PASSED [ 67%] tests/test_utils.py::TestUtils::test_http_status_to_status_code PASSED [ 70%] tests/test_utils.py::TestUtils::test_http_status_to_status_code_none PASSED [ 72%] tests/test_utils.py::TestUtils::test_http_status_to_status_code_redirect PASSED [ 75%] tests/test_utils.py::TestUtils::test_http_status_to_status_code_server PASSED [ 77%] tests/test_utils.py::TestUtils::test_is_instrumentation_enabled_by_default PASSED [ 80%] tests/test_utils.py::TestUtils::test_remove_current_directory_from_python_path_linux PASSED [ 82%] tests/test_utils.py::TestUtils::test_remove_current_directory_from_python_path_linux_only_path PASSED [ 85%] tests/test_utils.py::TestUtils::test_remove_current_directory_from_python_path_windows PASSED [ 87%] tests/test_utils.py::TestUtils::test_remove_current_directory_from_python_path_windows_only_path PASSED [ 90%] tests/test_utils.py::TestUtils::test_suppress_http_instrumentation PASSED [ 92%] tests/test_utils.py::TestUtils::test_suppress_http_instrumentation_key PASSED [ 95%] tests/test_utils.py::TestUtils::test_suppress_instrumentation PASSED [ 97%] tests/test_utils.py::TestUtils::test_suppress_instrumentation_key PASSED [100%] =============================== warnings summary =============================== ../../../../tmp/python3-module-opentelemetry-contrib-buildroot/usr/lib/python3/site-packages/opentelemetry/instrumentation/auto_instrumentation/__init__.py:22 /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot/usr/lib/python3/site-packages/opentelemetry/instrumentation/auto_instrumentation/__init__.py:22: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html from pkg_resources import iter_entry_points -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ================= 40 passed, 6 deselected, 1 warning in 0.28s ================== INFO : Command's result: OK + popd ~/RPM/BUILD/opentelemetry-contrib-0.47b0 + pushd ./util/opentelemetry-util-http ~/RPM/BUILD/opentelemetry-contrib-0.47b0/util/opentelemetry-util-http ~/RPM/BUILD/opentelemetry-contrib-0.47b0 + export 'CFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + export 'CXXFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + export 'FFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + export NO_INTERNET=YES + NO_INTERNET=YES + /usr/bin/python3 -m pyproject_installer run -- python3 -m pytest INFO : Creating venv INFO : Installing console scripts INFO : Installing package: /usr/src/RPM/BUILD/opentelemetry-contrib-0.47b0/util/opentelemetry-util-http/dist/opentelemetry_util_http-0.47b0-py3-none-any.whl INFO : Running command: ['/usr/src/RPM/BUILD/opentelemetry-contrib-0.47b0/util/opentelemetry-util-http/.run_venv/bin/python3', '-m', 'pyproject_installer', 'install', '/usr/src/RPM/BUILD/opentelemetry-contrib-0.47b0/util/opentelemetry-util-http/dist/opentelemetry_util_http-0.47b0-py3-none-any.whl'] INFO : Running command: ['python3', '-m', 'pytest'] ============================= test session starts ============================== platform linux -- Python 3.12.8, pytest-8.3.4, pluggy-1.5.0 -- /usr/src/RPM/BUILD/opentelemetry-contrib-0.47b0/util/opentelemetry-util-http/.run_venv/bin/python3 cachedir: .pytest_cache benchmark: 5.1.0 (defaults: timer=time.perf_counter disable_gc=False min_rounds=5 min_time=0.000005 max_time=1.0 calibration_precision=10 warmup=False warmup_iterations=100000) rootdir: /usr/src/RPM/BUILD/opentelemetry-contrib-0.47b0 configfile: pytest.ini plugins: benchmark-5.1.0 collecting ... collected 27 items tests/test_capture_custom_headers.py::TestCaptureCustomHeaders::test_get_custom_request_header PASSED [ 3%] tests/test_capture_custom_headers.py::TestCaptureCustomHeaders::test_get_custom_response_header PASSED [ 7%] tests/test_capture_custom_headers.py::TestCaptureCustomHeaders::test_get_custom_sanitize_header PASSED [ 11%] tests/test_capture_custom_headers.py::TestCaptureCustomHeaders::test_normalise_request_header_name PASSED [ 14%] tests/test_capture_custom_headers.py::TestCaptureCustomHeaders::test_normalise_response_header_name PASSED [ 18%] tests/test_capture_custom_headers.py::TestCaptureCustomHeaders::test_sanitize PASSED [ 22%] tests/test_http_base.py::TestHttpBase::test_basic PASSED [ 25%] tests/test_http_base.py::TestHttpBase::test_basic_with_span PASSED [ 29%] tests/test_http_base.py::TestHttpBase::test_uninstrument PASSED [ 33%] tests/test_http_base.py::TestHttpBase::test_with_nested_nonrecording_span PASSED [ 37%] tests/test_http_base.py::TestHttpBase::test_with_nested_span PASSED [ 40%] tests/test_http_base.py::TestHttpBase::test_with_only_nonrecording_span PASSED [ 44%] tests/test_http_excluded_urls.py::TestGetExcludedUrls::test_config_from_generic_env PASSED [ 48%] tests/test_http_excluded_urls.py::TestGetExcludedUrls::test_config_from_instrumentation_env PASSED [ 51%] tests/test_http_excluded_urls.py::TestGetExcludedUrls::test_config_from_instrumentation_env_empty PASSED [ 55%] tests/test_http_excluded_urls.py::TestGetExcludedUrls::test_config_from_instrumentation_env_takes_precedence PASSED [ 59%] tests/test_remove_credentials.py::TestRemoveUrlCredentials::test_remove_credentials PASSED [ 62%] tests/test_remove_credentials.py::TestRemoveUrlCredentials::test_remove_credentials_ipv4_literal PASSED [ 66%] tests/test_remove_credentials.py::TestRemoveUrlCredentials::test_remove_credentials_ipv6_literal PASSED [ 70%] tests/test_remove_credentials.py::TestRemoveUrlCredentials::test_remove_no_credentials PASSED [ 74%] tests/test_sanitize_method.py::TestSanitizeMethod::test_nonstandard_method PASSED [ 77%] tests/test_sanitize_method.py::TestSanitizeMethod::test_nonstandard_method_allowed PASSED [ 81%] tests/test_sanitize_method.py::TestSanitizeMethod::test_standard_method_lowercase PASSED [ 85%] tests/test_sanitize_method.py::TestSanitizeMethod::test_standard_method_uppercase PASSED [ 88%] tests/test_try_set_ip.py::TestTrySetIP::test_exception_during_ip_retrieval PASSED [ 92%] tests/test_try_set_ip.py::TestTrySetIP::test_ip_set_successfully PASSED [ 96%] tests/test_try_set_ip.py::TestTrySetIP::test_no_socket_connection PASSED [100%] =============================== warnings summary =============================== ../../../../../tmp/python3-module-opentelemetry-contrib-buildroot/usr/lib/python3/site-packages/opentelemetry/instrumentation/dependencies.py:4 /usr/src/tmp/python3-module-opentelemetry-contrib-buildroot/usr/lib/python3/site-packages/opentelemetry/instrumentation/dependencies.py:4: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html from pkg_resources import ( -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ======================== 27 passed, 1 warning in 2.22s ========================= INFO : Command's result: OK + popd ~/RPM/BUILD/opentelemetry-contrib-0.47b0 + for idir in ./instrumentation/opentelemetry-instrumentation-asgi + pushd ./instrumentation/opentelemetry-instrumentation-asgi ~/RPM/BUILD/opentelemetry-contrib-0.47b0/instrumentation/opentelemetry-instrumentation-asgi ~/RPM/BUILD/opentelemetry-contrib-0.47b0 + export 'CFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + export 'CXXFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + export 'FFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + export NO_INTERNET=YES + NO_INTERNET=YES + /usr/bin/python3 -m pyproject_installer run -- python3 -m pytest INFO : Creating venv INFO : Installing console scripts INFO : Installing package: /usr/src/RPM/BUILD/opentelemetry-contrib-0.47b0/instrumentation/opentelemetry-instrumentation-asgi/dist/opentelemetry_instrumentation_asgi-0.47b0-py3-none-any.whl INFO : Running command: ['/usr/src/RPM/BUILD/opentelemetry-contrib-0.47b0/instrumentation/opentelemetry-instrumentation-asgi/.run_venv/bin/python3', '-m', 'pyproject_installer', 'install', '/usr/src/RPM/BUILD/opentelemetry-contrib-0.47b0/instrumentation/opentelemetry-instrumentation-asgi/dist/opentelemetry_instrumentation_asgi-0.47b0-py3-none-any.whl'] INFO : Running command: ['python3', '-m', 'pytest'] ============================= test session starts ============================== platform linux -- Python 3.12.8, pytest-8.3.4, pluggy-1.5.0 -- /usr/src/RPM/BUILD/opentelemetry-contrib-0.47b0/instrumentation/opentelemetry-instrumentation-asgi/.run_venv/bin/python3 cachedir: .pytest_cache benchmark: 5.1.0 (defaults: timer=time.perf_counter disable_gc=False min_rounds=5 min_time=0.000005 max_time=1.0 calibration_precision=10 warmup=False warmup_iterations=100000) rootdir: /usr/src/RPM/BUILD/opentelemetry-contrib-0.47b0 configfile: pytest.ini plugins: benchmark-5.1.0 collecting ... collected 80 items tests/test_asgi_custom_headers.py::TestCustomHeadersEnv::test_http_custom_request_headers_in_span_attributes FAILED [ 1%] tests/test_asgi_custom_headers.py::TestCustomHeadersEnv::test_http_custom_request_headers_not_in_span_attributes Exception ignored in: Traceback (most recent call last): File "/usr/lib/python3/site-packages/asgiref/testing.py", line 58, in __del__ self.stop(exceptions=False) File "/usr/lib/python3/site-packages/asgiref/testing.py", line 49, in stop if not self.future.done(): ^^^^^^^^^^^ AttributeError: 'ApplicationCommunicator' object has no attribute 'future' FAILED [ 2%] tests/test_asgi_custom_headers.py::TestCustomHeadersEnv::test_http_custom_response_headers_in_span_attributes -------------------------------- live log call --------------------------------- WARNING opentelemetry.sdk.metrics._internal:__init__.py:204 An instrument with name http.server.duration, type Histogram, unit ms and description Duration of HTTP server requests. has been created already. WARNING opentelemetry.sdk.metrics._internal:__init__.py:204 An instrument with name http.server.response.size, type Histogram, unit By and description measures the size of HTTP response messages (compressed). has been created already. WARNING opentelemetry.sdk.metrics._internal:__init__.py:204 An instrument with name http.server.request.size, type Histogram, unit By and description Measures the size of HTTP request messages (compressed). has been created already. WARNING opentelemetry.sdk.metrics._internal:__init__.py:129 An instrument with name http.server.active_requests, type UpDownCounter, unit {request} and description Number of active HTTP server requests. has been created already. FAILED [ 3%] tests/test_asgi_custom_headers.py::TestCustomHeadersEnv::test_http_custom_response_headers_not_in_span_attributes -------------------------------- live log call --------------------------------- WARNING opentelemetry.sdk.metrics._internal:__init__.py:204 An instrument with name http.server.duration, type Histogram, unit ms and description Duration of HTTP server requests. has been created already. WARNING opentelemetry.sdk.metrics._internal:__init__.py:204 An instrument with name http.server.response.size, type Histogram, unit By and description measures the size of HTTP response messages (compressed). has been created already. WARNING opentelemetry.sdk.metrics._internal:__init__.py:204 An instrument with name http.server.request.size, type Histogram, unit By and description Measures the size of HTTP request messages (compressed). has been created already. WARNING opentelemetry.sdk.metrics._internal:__init__.py:129 An instrument with name http.server.active_requests, type UpDownCounter, unit {request} and description Number of active HTTP server requests. has been created already. FAILED [ 5%] tests/test_asgi_custom_headers.py::TestCustomHeadersEnv::test_http_repeat_request_headers_in_span_attributes Exception ignored in: Traceback (most recent call last): File "/usr/lib/python3/site-packages/asgiref/testing.py", line 58, in __del__ self.stop(exceptions=False) File "/usr/lib/python3/site-packages/asgiref/testing.py", line 49, in stop if not self.future.done(): ^^^^^^^^^^^ AttributeError: 'ApplicationCommunicator' object has no attribute 'future' Exception ignored in: Traceback (most recent call last): File "/usr/lib/python3/site-packages/asgiref/testing.py", line 58, in __del__ self.stop(exceptions=False) File "/usr/lib/python3/site-packages/asgiref/testing.py", line 49, in stop if not self.future.done(): ^^^^^^^^^^^ AttributeError: 'ApplicationCommunicator' object has no attribute 'future' Exception ignored in: Traceback (most recent call last): File "/usr/lib/python3/site-packages/asgiref/testing.py", line 58, in __del__ self.stop(exceptions=False) File "/usr/lib/python3/site-packages/asgiref/testing.py", line 49, in stop if not self.future.done(): ^^^^^^^^^^^ AttributeError: 'ApplicationCommunicator' object has no attribute 'future' FAILED [ 6%] tests/test_asgi_custom_headers.py::TestCustomHeadersEnv::test_http_repeat_response_headers_in_span_attributes -------------------------------- live log call --------------------------------- WARNING opentelemetry.sdk.metrics._internal:__init__.py:204 An instrument with name http.server.duration, type Histogram, unit ms and description Duration of HTTP server requests. has been created already. WARNING opentelemetry.sdk.metrics._internal:__init__.py:204 An instrument with name http.server.response.size, type Histogram, unit By and description measures the size of HTTP response messages (compressed). has been created already. WARNING opentelemetry.sdk.metrics._internal:__init__.py:204 An instrument with name http.server.request.size, type Histogram, unit By and description Measures the size of HTTP request messages (compressed). has been created already. WARNING opentelemetry.sdk.metrics._internal:__init__.py:129 An instrument with name http.server.active_requests, type UpDownCounter, unit {request} and description Number of active HTTP server requests. has been created already. FAILED [ 7%] tests/test_asgi_custom_headers.py::TestCustomHeadersEnv::test_websocket_custom_request_headers_in_span_attributes Exception ignored in: Traceback (most recent call last): File "/usr/lib/python3/site-packages/asgiref/testing.py", line 58, in __del__ self.stop(exceptions=False) File "/usr/lib/python3/site-packages/asgiref/testing.py", line 49, in stop if not self.future.done(): ^^^^^^^^^^^ AttributeError: 'ApplicationCommunicator' object has no attribute 'future' FAILED [ 8%] tests/test_asgi_custom_headers.py::TestCustomHeadersEnv::test_websocket_custom_request_headers_not_in_span_attributes FAILED [ 10%] tests/test_asgi_custom_headers.py::TestCustomHeadersEnv::test_websocket_custom_response_headers_in_span_attributes -------------------------------- live log call --------------------------------- WARNING opentelemetry.sdk.metrics._internal:__init__.py:204 An instrument with name http.server.duration, type Histogram, unit ms and description Duration of HTTP server requests. has been created already. WARNING opentelemetry.sdk.metrics._internal:__init__.py:204 An instrument with name http.server.response.size, type Histogram, unit By and description measures the size of HTTP response messages (compressed). has been created already. WARNING opentelemetry.sdk.metrics._internal:__init__.py:204 An instrument with name http.server.request.size, type Histogram, unit By and description Measures the size of HTTP request messages (compressed). has been created already. WARNING opentelemetry.sdk.metrics._internal:__init__.py:129 An instrument with name http.server.active_requests, type UpDownCounter, unit {request} and description Number of active HTTP server requests. has been created already. FAILED [ 11%] tests/test_asgi_custom_headers.py::TestCustomHeadersEnv::test_websocket_custom_response_headers_not_in_span_attributes -------------------------------- live log call --------------------------------- WARNING opentelemetry.sdk.metrics._internal:__init__.py:204 An instrument with name http.server.duration, type Histogram, unit ms and description Duration of HTTP server requests. has been created already. WARNING opentelemetry.sdk.metrics._internal:__init__.py:204 An instrument with name http.server.response.size, type Histogram, unit By and description measures the size of HTTP response messages (compressed). has been created already. WARNING opentelemetry.sdk.metrics._internal:__init__.py:204 An instrument with name http.server.request.size, type Histogram, unit By and description Measures the size of HTTP request messages (compressed). has been created already. WARNING opentelemetry.sdk.metrics._internal:__init__.py:129 An instrument with name http.server.active_requests, type UpDownCounter, unit {request} and description Number of active HTTP server requests. has been created already. Exception ignored in: Traceback (most recent call last): File "/usr/lib/python3/site-packages/asgiref/testing.py", line 58, in __del__ self.stop(exceptions=False) File "/usr/lib/python3/site-packages/asgiref/testing.py", line 49, in stop if not self.future.done(): ^^^^^^^^^^^ AttributeError: 'ApplicationCommunicator' object has no attribute 'future' Exception ignored in: Traceback (most recent call last): File "/usr/lib/python3/site-packages/asgiref/testing.py", line 58, in __del__ self.stop(exceptions=False) File "/usr/lib/python3/site-packages/asgiref/testing.py", line 49, in stop if not self.future.done(): ^^^^^^^^^^^ AttributeError: 'ApplicationCommunicator' object has no attribute 'future' FAILED [ 12%] tests/test_asgi_custom_headers.py::TestCustomHeadersConstructor::test_http_custom_request_headers_in_span_attributes FAILED [ 13%] tests/test_asgi_custom_headers.py::TestCustomHeadersConstructor::test_http_custom_request_headers_not_in_span_attributes FAILED [ 15%] tests/test_asgi_custom_headers.py::TestCustomHeadersConstructor::test_http_custom_response_headers_in_span_attributes -------------------------------- live log call --------------------------------- WARNING opentelemetry.sdk.metrics._internal:__init__.py:204 An instrument with name http.server.duration, type Histogram, unit ms and description Duration of HTTP server requests. has been created already. WARNING opentelemetry.sdk.metrics._internal:__init__.py:204 An instrument with name http.server.response.size, type Histogram, unit By and description measures the size of HTTP response messages (compressed). has been created already. WARNING opentelemetry.sdk.metrics._internal:__init__.py:204 An instrument with name http.server.request.size, type Histogram, unit By and description Measures the size of HTTP request messages (compressed). has been created already. WARNING opentelemetry.sdk.metrics._internal:__init__.py:129 An instrument with name http.server.active_requests, type UpDownCounter, unit {request} and description Number of active HTTP server requests. has been created already. Exception ignored in: Traceback (most recent call last): File "/usr/lib/python3/site-packages/asgiref/testing.py", line 58, in __del__ self.stop(exceptions=False) File "/usr/lib/python3/site-packages/asgiref/testing.py", line 49, in stop if not self.future.done(): ^^^^^^^^^^^ AttributeError: 'ApplicationCommunicator' object has no attribute 'future' Exception ignored in: Traceback (most recent call last): File "/usr/lib/python3/site-packages/asgiref/testing.py", line 58, in __del__ self.stop(exceptions=False) File "/usr/lib/python3/site-packages/asgiref/testing.py", line 49, in stop if not self.future.done(): ^^^^^^^^^^^ AttributeError: 'ApplicationCommunicator' object has no attribute 'future' FAILED [ 16%] tests/test_asgi_custom_headers.py::TestCustomHeadersConstructor::test_http_custom_response_headers_not_in_span_attributes -------------------------------- live log call --------------------------------- WARNING opentelemetry.sdk.metrics._internal:__init__.py:204 An instrument with name http.server.duration, type Histogram, unit ms and description Duration of HTTP server requests. has been created already. WARNING opentelemetry.sdk.metrics._internal:__init__.py:204 An instrument with name http.server.response.size, type Histogram, unit By and description measures the size of HTTP response messages (compressed). has been created already. WARNING opentelemetry.sdk.metrics._internal:__init__.py:204 An instrument with name http.server.request.size, type Histogram, unit By and description Measures the size of HTTP request messages (compressed). has been created already. WARNING opentelemetry.sdk.metrics._internal:__init__.py:129 An instrument with name http.server.active_requests, type UpDownCounter, unit {request} and description Number of active HTTP server requests. has been created already. FAILED [ 17%] tests/test_asgi_custom_headers.py::TestCustomHeadersConstructor::test_http_repeat_request_headers_in_span_attributes FAILED [ 18%] tests/test_asgi_custom_headers.py::TestCustomHeadersConstructor::test_http_repeat_response_headers_in_span_attributes -------------------------------- live log call --------------------------------- WARNING opentelemetry.sdk.metrics._internal:__init__.py:204 An instrument with name http.server.duration, type Histogram, unit ms and description Duration of HTTP server requests. has been created already. WARNING opentelemetry.sdk.metrics._internal:__init__.py:204 An instrument with name http.server.response.size, type Histogram, unit By and description measures the size of HTTP response messages (compressed). has been created already. WARNING opentelemetry.sdk.metrics._internal:__init__.py:204 An instrument with name http.server.request.size, type Histogram, unit By and description Measures the size of HTTP request messages (compressed). has been created already. WARNING opentelemetry.sdk.metrics._internal:__init__.py:129 An instrument with name http.server.active_requests, type UpDownCounter, unit {request} and description Number of active HTTP server requests. has been created already. Exception ignored in: Traceback (most recent call last): File "/usr/lib/python3/site-packages/asgiref/testing.py", line 58, in __del__ self.stop(exceptions=False) File "/usr/lib/python3/site-packages/asgiref/testing.py", line 49, in stop if not self.future.done(): ^^^^^^^^^^^ AttributeError: 'ApplicationCommunicator' object has no attribute 'future' Exception ignored in: Traceback (most recent call last): File "/usr/lib/python3/site-packages/asgiref/testing.py", line 58, in __del__ self.stop(exceptions=False) File "/usr/lib/python3/site-packages/asgiref/testing.py", line 49, in stop if not self.future.done(): ^^^^^^^^^^^ AttributeError: 'ApplicationCommunicator' object has no attribute 'future' FAILED [ 20%] tests/test_asgi_custom_headers.py::TestCustomHeadersConstructor::test_websocket_custom_request_headers_in_span_attributes FAILED [ 21%] tests/test_asgi_custom_headers.py::TestCustomHeadersConstructor::test_websocket_custom_request_headers_not_in_span_attributes FAILED [ 22%] tests/test_asgi_custom_headers.py::TestCustomHeadersConstructor::test_websocket_custom_response_headers_in_span_attributes -------------------------------- live log call --------------------------------- WARNING opentelemetry.sdk.metrics._internal:__init__.py:204 An instrument with name http.server.duration, type Histogram, unit ms and description Duration of HTTP server requests. has been created already. WARNING opentelemetry.sdk.metrics._internal:__init__.py:204 An instrument with name http.server.response.size, type Histogram, unit By and description measures the size of HTTP response messages (compressed). has been created already. WARNING opentelemetry.sdk.metrics._internal:__init__.py:204 An instrument with name http.server.request.size, type Histogram, unit By and description Measures the size of HTTP request messages (compressed). has been created already. WARNING opentelemetry.sdk.metrics._internal:__init__.py:129 An instrument with name http.server.active_requests, type UpDownCounter, unit {request} and description Number of active HTTP server requests. has been created already. Exception ignored in: Traceback (most recent call last): File "/usr/lib/python3/site-packages/asgiref/testing.py", line 58, in __del__ self.stop(exceptions=False) File "/usr/lib/python3/site-packages/asgiref/testing.py", line 49, in stop if not self.future.done(): ^^^^^^^^^^^ AttributeError: 'ApplicationCommunicator' object has no attribute 'future' Exception ignored in: Traceback (most recent call last): File "/usr/lib/python3/site-packages/asgiref/testing.py", line 58, in __del__ self.stop(exceptions=False) File "/usr/lib/python3/site-packages/asgiref/testing.py", line 49, in stop if not self.future.done(): ^^^^^^^^^^^ AttributeError: 'ApplicationCommunicator' object has no attribute 'future' FAILED [ 23%] tests/test_asgi_custom_headers.py::TestCustomHeadersConstructor::test_websocket_custom_response_headers_not_in_span_attributes -------------------------------- live log call --------------------------------- WARNING opentelemetry.sdk.metrics._internal:__init__.py:204 An instrument with name http.server.duration, type Histogram, unit ms and description Duration of HTTP server requests. has been created already. WARNING opentelemetry.sdk.metrics._internal:__init__.py:204 An instrument with name http.server.response.size, type Histogram, unit By and description measures the size of HTTP response messages (compressed). has been created already. WARNING opentelemetry.sdk.metrics._internal:__init__.py:204 An instrument with name http.server.request.size, type Histogram, unit By and description Measures the size of HTTP request messages (compressed). has been created already. WARNING opentelemetry.sdk.metrics._internal:__init__.py:129 An instrument with name http.server.active_requests, type UpDownCounter, unit {request} and description Number of active HTTP server requests. has been created already. FAILED [ 25%] tests/test_asgi_middleware.py::TestAsgiApplication::test_asgi_exc_info FAILED [ 26%] tests/test_asgi_middleware.py::TestAsgiApplication::test_asgi_metrics Exception ignored in: Traceback (most recent call last): File "/usr/lib/python3/site-packages/asgiref/testing.py", line 58, in __del__ self.stop(exceptions=False) File "/usr/lib/python3/site-packages/asgiref/testing.py", line 49, in stop if not self.future.done(): ^^^^^^^^^^^ AttributeError: 'ApplicationCommunicator' object has no attribute 'future' Exception ignored in: Traceback (most recent call last): File "/usr/lib/python3/site-packages/asgiref/testing.py", line 58, in __del__ self.stop(exceptions=False) File "/usr/lib/python3/site-packages/asgiref/testing.py", line 49, in stop if not self.future.done(): ^^^^^^^^^^^ AttributeError: 'ApplicationCommunicator' object has no attribute 'future' FAILED [ 27%] tests/test_asgi_middleware.py::TestAsgiApplication::test_asgi_metrics_both_semconv FAILED [ 28%] tests/test_asgi_middleware.py::TestAsgiApplication::test_asgi_metrics_new_semconv FAILED [ 30%] tests/test_asgi_middleware.py::TestAsgiApplication::test_asgi_not_recording Exception ignored in: Traceback (most recent call last): File "/usr/lib/python3/site-packages/asgiref/testing.py", line 58, in __del__ self.stop(exceptions=False) File "/usr/lib/python3/site-packages/asgiref/testing.py", line 49, in stop if not self.future.done(): ^^^^^^^^^^^ AttributeError: 'ApplicationCommunicator' object has no attribute 'future' Exception ignored in: Traceback (most recent call last): File "/usr/lib/python3/site-packages/asgiref/testing.py", line 58, in __del__ self.stop(exceptions=False) File "/usr/lib/python3/site-packages/asgiref/testing.py", line 49, in stop if not self.future.done(): ^^^^^^^^^^^ AttributeError: 'ApplicationCommunicator' object has no attribute 'future' FAILED [ 31%] tests/test_asgi_middleware.py::TestAsgiApplication::test_background_execution FAILED [ 32%] tests/test_asgi_middleware.py::TestAsgiApplication::test_basic_asgi_call FAILED [ 33%] tests/test_asgi_middleware.py::TestAsgiApplication::test_basic_asgi_call_both_semconv Exception ignored in: Traceback (most recent call last): File "/usr/lib/python3/site-packages/asgiref/testing.py", line 58, in __del__ self.stop(exceptions=False) File "/usr/lib/python3/site-packages/asgiref/testing.py", line 49, in stop if not self.future.done(): ^^^^^^^^^^^ AttributeError: 'ApplicationCommunicator' object has no attribute 'future' Exception ignored in: Traceback (most recent call last): File "/usr/lib/python3/site-packages/asgiref/testing.py", line 58, in __del__ self.stop(exceptions=False) File "/usr/lib/python3/site-packages/asgiref/testing.py", line 49, in stop if not self.future.done(): ^^^^^^^^^^^ AttributeError: 'ApplicationCommunicator' object has no attribute 'future' FAILED [ 35%] tests/test_asgi_middleware.py::TestAsgiApplication::test_basic_asgi_call_new_semconv FAILED [ 36%] tests/test_asgi_middleware.py::TestAsgiApplication::test_basic_metric_success FAILED [ 37%] tests/test_asgi_middleware.py::TestAsgiApplication::test_basic_metric_success_both_semconv Exception ignored in: Traceback (most recent call last): File "/usr/lib/python3/site-packages/asgiref/testing.py", line 58, in __del__ self.stop(exceptions=False) File "/usr/lib/python3/site-packages/asgiref/testing.py", line 49, in stop if not self.future.done(): ^^^^^^^^^^^ AttributeError: 'ApplicationCommunicator' object has no attribute 'future' Exception ignored in: Traceback (most recent call last): File "/usr/lib/python3/site-packages/asgiref/testing.py", line 58, in __del__ self.stop(exceptions=False) File "/usr/lib/python3/site-packages/asgiref/testing.py", line 49, in stop if not self.future.done(): ^^^^^^^^^^^ AttributeError: 'ApplicationCommunicator' object has no attribute 'future' FAILED [ 38%] tests/test_asgi_middleware.py::TestAsgiApplication::test_basic_metric_success_new_semconv FAILED [ 40%] tests/test_asgi_middleware.py::TestAsgiApplication::test_basic_metric_success_nonrecording_span FAILED [ 41%] tests/test_asgi_middleware.py::TestAsgiApplication::test_behavior_with_scope_server_as_none Exception ignored in: Traceback (most recent call last): File "/usr/lib/python3/site-packages/asgiref/testing.py", line 58, in __del__ self.stop(exceptions=False) File "/usr/lib/python3/site-packages/asgiref/testing.py", line 49, in stop if not self.future.done(): ^^^^^^^^^^^ AttributeError: 'ApplicationCommunicator' object has no attribute 'future' Exception ignored in: Traceback (most recent call last): File "/usr/lib/python3/site-packages/asgiref/testing.py", line 58, in __del__ self.stop(exceptions=False) File "/usr/lib/python3/site-packages/asgiref/testing.py", line 49, in stop if not self.future.done(): ^^^^^^^^^^^ AttributeError: 'ApplicationCommunicator' object has no attribute 'future' FAILED [ 42%] tests/test_asgi_middleware.py::TestAsgiApplication::test_behavior_with_scope_server_as_none_both_semconv FAILED [ 43%] tests/test_asgi_middleware.py::TestAsgiApplication::test_behavior_with_scope_server_as_none_new_semconv FAILED [ 45%] tests/test_asgi_middleware.py::TestAsgiApplication::test_custom_tracer_provider_otel_asgi Exception ignored in: Traceback (most recent call last): File "/usr/lib/python3/site-packages/asgiref/testing.py", line 58, in __del__ self.stop(exceptions=False) File "/usr/lib/python3/site-packages/asgiref/testing.py", line 49, in stop if not self.future.done(): ^^^^^^^^^^^ AttributeError: 'ApplicationCommunicator' object has no attribute 'future' Exception ignored in: Traceback (most recent call last): File "/usr/lib/python3/site-packages/asgiref/testing.py", line 58, in __del__ self.stop(exceptions=False) File "/usr/lib/python3/site-packages/asgiref/testing.py", line 49, in stop if not self.future.done(): ^^^^^^^^^^^ AttributeError: 'ApplicationCommunicator' object has no attribute 'future' Exception ignored in: Traceback (most recent call last): File "/usr/lib/python3/site-packages/asgiref/testing.py", line 58, in __del__ self.stop(exceptions=False) File "/usr/lib/python3/site-packages/asgiref/testing.py", line 49, in stop if not self.future.done(): ^^^^^^^^^^^ AttributeError: 'ApplicationCommunicator' object has no attribute 'future' Exception ignored in: Traceback (most recent call last): File "/usr/lib/python3/site-packages/asgiref/testing.py", line 58, in __del__ self.stop(exceptions=False) File "/usr/lib/python3/site-packages/asgiref/testing.py", line 49, in stop if not self.future.done(): ^^^^^^^^^^^ AttributeError: 'ApplicationCommunicator' object has no attribute 'future' Exception ignored in: Traceback (most recent call last): File "/usr/lib/python3/site-packages/asgiref/testing.py", line 58, in __del__ self.stop(exceptions=False) File "/usr/lib/python3/site-packages/asgiref/testing.py", line 49, in stop if not self.future.done(): ^^^^^^^^^^^ AttributeError: 'ApplicationCommunicator' object has no attribute 'future' Exception ignored in: Traceback (most recent call last): File "/usr/lib/python3/site-packages/asgiref/testing.py", line 58, in __del__ self.stop(exceptions=False) File "/usr/lib/python3/site-packages/asgiref/testing.py", line 49, in stop if not self.future.done(): ^^^^^^^^^^^ AttributeError: 'ApplicationCommunicator' object has no attribute 'future' Exception ignored in: Traceback (most recent call last): File "/usr/lib/python3/site-packages/asgiref/testing.py", line 58, in __del__ self.stop(exceptions=False) File "/usr/lib/python3/site-packages/asgiref/testing.py", line 49, in stop if not self.future.done(): ^^^^^^^^^^^ AttributeError: 'ApplicationCommunicator' object has no attribute 'future' Exception ignored in: Traceback (most recent call last): File "/usr/lib/python3/site-packages/asgiref/testing.py", line 58, in __del__ self.stop(exceptions=False) File "/usr/lib/python3/site-packages/asgiref/testing.py", line 49, in stop if not self.future.done(): ^^^^^^^^^^^ AttributeError: 'ApplicationCommunicator' object has no attribute 'future' Exception ignored in: Traceback (most recent call last): File "/usr/lib/python3/site-packages/asgiref/testing.py", line 58, in __del__ self.stop(exceptions=False) File "/usr/lib/python3/site-packages/asgiref/testing.py", line 49, in stop if not self.future.done(): ^^^^^^^^^^^ AttributeError: 'ApplicationCommunicator' object has no attribute 'future' Exception ignored in: Traceback (most recent call last): File "/usr/lib/python3/site-packages/asgiref/testing.py", line 58, in __del__ self.stop(exceptions=False) File "/usr/lib/python3/site-packages/asgiref/testing.py", line 49, in stop if not self.future.done(): ^^^^^^^^^^^ AttributeError: 'ApplicationCommunicator' object has no attribute 'future' Exception ignored in: Traceback (most recent call last): File "/usr/lib/python3/site-packages/asgiref/testing.py", line 58, in __del__ self.stop(exceptions=False) File "/usr/lib/python3/site-packages/asgiref/testing.py", line 49, in stop if not self.future.done(): ^^^^^^^^^^^ AttributeError: 'ApplicationCommunicator' object has no attribute 'future' Exception ignored in: Traceback (most recent call last): File "/usr/lib/python3/site-packages/asgiref/testing.py", line 58, in __del__ self.stop(exceptions=False) File "/usr/lib/python3/site-packages/asgiref/testing.py", line 49, in stop if not self.future.done(): ^^^^^^^^^^^ AttributeError: 'ApplicationCommunicator' object has no attribute 'future' Exception ignored in: Traceback (most recent call last): File "/usr/lib/python3/site-packages/asgiref/testing.py", line 58, in __del__ self.stop(exceptions=False) File "/usr/lib/python3/site-packages/asgiref/testing.py", line 49, in stop if not self.future.done(): ^^^^^^^^^^^ AttributeError: 'ApplicationCommunicator' object has no attribute 'future' FAILED [ 46%] tests/test_asgi_middleware.py::TestAsgiApplication::test_hooks FAILED [ 47%] tests/test_asgi_middleware.py::TestAsgiApplication::test_host_header FAILED [ 48%] tests/test_asgi_middleware.py::TestAsgiApplication::test_host_header_both_semconv Exception ignored in: Traceback (most recent call last): File "/usr/lib/python3/site-packages/asgiref/testing.py", line 58, in __del__ self.stop(exceptions=False) File "/usr/lib/python3/site-packages/asgiref/testing.py", line 49, in stop if not self.future.done(): ^^^^^^^^^^^ AttributeError: 'ApplicationCommunicator' object has no attribute 'future' Exception ignored in: Traceback (most recent call last): File "/usr/lib/python3/site-packages/asgiref/testing.py", line 58, in __del__ self.stop(exceptions=False) File "/usr/lib/python3/site-packages/asgiref/testing.py", line 49, in stop if not self.future.done(): ^^^^^^^^^^^ AttributeError: 'ApplicationCommunicator' object has no attribute 'future' FAILED [ 50%] tests/test_asgi_middleware.py::TestAsgiApplication::test_lifespan FAILED [ 51%] tests/test_asgi_middleware.py::TestAsgiApplication::test_long_response FAILED [ 52%] tests/test_asgi_middleware.py::TestAsgiApplication::test_metric_target_attribute Exception ignored in: Traceback (most recent call last): File "/usr/lib/python3/site-packages/asgiref/testing.py", line 58, in __del__ self.stop(exceptions=False) File "/usr/lib/python3/site-packages/asgiref/testing.py", line 49, in stop if not self.future.done(): ^^^^^^^^^^^ AttributeError: 'ApplicationCommunicator' object has no attribute 'future' Exception ignored in: Traceback (most recent call last): File "/usr/lib/python3/site-packages/asgiref/testing.py", line 58, in __del__ self.stop(exceptions=False) File "/usr/lib/python3/site-packages/asgiref/testing.py", line 49, in stop if not self.future.done(): ^^^^^^^^^^^ AttributeError: 'ApplicationCommunicator' object has no attribute 'future' FAILED [ 53%] tests/test_asgi_middleware.py::TestAsgiApplication::test_no_metric_for_websockets FAILED [ 55%] tests/test_asgi_middleware.py::TestAsgiApplication::test_no_op_tracer_provider_otel_asgi FAILED [ 56%] tests/test_asgi_middleware.py::TestAsgiApplication::test_override_span_name Exception ignored in: Traceback (most recent call last): File "/usr/lib/python3/site-packages/asgiref/testing.py", line 58, in __del__ self.stop(exceptions=False) File "/usr/lib/python3/site-packages/asgiref/testing.py", line 49, in stop if not self.future.done(): ^^^^^^^^^^^ AttributeError: 'ApplicationCommunicator' object has no attribute 'future' Exception ignored in: Traceback (most recent call last): File "/usr/lib/python3/site-packages/asgiref/testing.py", line 58, in __del__ self.stop(exceptions=False) File "/usr/lib/python3/site-packages/asgiref/testing.py", line 49, in stop if not self.future.done(): ^^^^^^^^^^^ AttributeError: 'ApplicationCommunicator' object has no attribute 'future' FAILED [ 57%] tests/test_asgi_middleware.py::TestAsgiApplication::test_traceresponse_header FAILED [ 58%] tests/test_asgi_middleware.py::TestAsgiApplication::test_trailers FAILED [ 60%] tests/test_asgi_middleware.py::TestAsgiApplication::test_user_agent Exception ignored in: Traceback (most recent call last): File "/usr/lib/python3/site-packages/asgiref/testing.py", line 58, in __del__ self.stop(exceptions=False) File "/usr/lib/python3/site-packages/asgiref/testing.py", line 49, in stop if not self.future.done(): ^^^^^^^^^^^ AttributeError: 'ApplicationCommunicator' object has no attribute 'future' Exception ignored in: Traceback (most recent call last): File "/usr/lib/python3/site-packages/asgiref/testing.py", line 58, in __del__ self.stop(exceptions=False) File "/usr/lib/python3/site-packages/asgiref/testing.py", line 49, in stop if not self.future.done(): ^^^^^^^^^^^ AttributeError: 'ApplicationCommunicator' object has no attribute 'future' FAILED [ 61%] tests/test_asgi_middleware.py::TestAsgiApplication::test_user_agent_both_semconv FAILED [ 62%] tests/test_asgi_middleware.py::TestAsgiApplication::test_user_agent_new_semconv FAILED [ 63%] tests/test_asgi_middleware.py::TestAsgiApplication::test_websocket Exception ignored in: Traceback (most recent call last): File "/usr/lib/python3/site-packages/asgiref/testing.py", line 58, in __del__ self.stop(exceptions=False) File "/usr/lib/python3/site-packages/asgiref/testing.py", line 49, in stop if not self.future.done(): ^^^^^^^^^^^ AttributeError: 'ApplicationCommunicator' object has no attribute 'future' Exception ignored in: Traceback (most recent call last): File "/usr/lib/python3/site-packages/asgiref/testing.py", line 58, in __del__ self.stop(exceptions=False) File "/usr/lib/python3/site-packages/asgiref/testing.py", line 49, in stop if not self.future.done(): ^^^^^^^^^^^ AttributeError: 'ApplicationCommunicator' object has no attribute 'future' FAILED [ 65%] tests/test_asgi_middleware.py::TestAsgiApplication::test_websocket_both_semconv FAILED [ 66%] tests/test_asgi_middleware.py::TestAsgiApplication::test_websocket_new_semconv FAILED [ 67%] tests/test_asgi_middleware.py::TestAsgiApplication::test_websocket_traceresponse_header Exception ignored in: Traceback (most recent call last): File "/usr/lib/python3/site-packages/asgiref/testing.py", line 58, in __del__ self.stop(exceptions=False) File "/usr/lib/python3/site-packages/asgiref/testing.py", line 49, in stop if not self.future.done(): ^^^^^^^^^^^ AttributeError: 'ApplicationCommunicator' object has no attribute 'future' Exception ignored in: Traceback (most recent call last): File "/usr/lib/python3/site-packages/asgiref/testing.py", line 58, in __del__ self.stop(exceptions=False) File "/usr/lib/python3/site-packages/asgiref/testing.py", line 49, in stop if not self.future.done(): ^^^^^^^^^^^ AttributeError: 'ApplicationCommunicator' object has no attribute 'future' FAILED [ 68%] tests/test_asgi_middleware.py::TestAsgiAttributes::test_collect_target_attribute_fastapi PASSED [ 70%] tests/test_asgi_middleware.py::TestAsgiAttributes::test_collect_target_attribute_fastapi_mounted PASSED [ 71%] tests/test_asgi_middleware.py::TestAsgiAttributes::test_collect_target_attribute_fastapi_starlette_invalid PASSED [ 72%] tests/test_asgi_middleware.py::TestAsgiAttributes::test_collect_target_attribute_missing PASSED [ 73%] tests/test_asgi_middleware.py::TestAsgiAttributes::test_credential_removal PASSED [ 75%] tests/test_asgi_middleware.py::TestAsgiAttributes::test_query_string PASSED [ 76%] tests/test_asgi_middleware.py::TestAsgiAttributes::test_query_string_both_semconv PASSED [ 77%] tests/test_asgi_middleware.py::TestAsgiAttributes::test_query_string_new_semconv PASSED [ 78%] tests/test_asgi_middleware.py::TestAsgiAttributes::test_query_string_percent_bytes PASSED [ 80%] tests/test_asgi_middleware.py::TestAsgiAttributes::test_query_string_percent_str PASSED [ 81%] tests/test_asgi_middleware.py::TestAsgiAttributes::test_request_attributes PASSED [ 82%] tests/test_asgi_middleware.py::TestAsgiAttributes::test_request_attributes_both_semconv PASSED [ 83%] tests/test_asgi_middleware.py::TestAsgiAttributes::test_request_attributes_new_semconv PASSED [ 85%] tests/test_asgi_middleware.py::TestAsgiAttributes::test_response_attributes PASSED [ 86%] tests/test_asgi_middleware.py::TestAsgiAttributes::test_response_attributes_both_semconv PASSED [ 87%] tests/test_asgi_middleware.py::TestAsgiAttributes::test_response_attributes_invalid_status_code PASSED [ 88%] tests/test_asgi_middleware.py::TestAsgiAttributes::test_response_attributes_new_semconv PASSED [ 90%] tests/test_asgi_middleware.py::TestWrappedApplication::test_mark_span_internal_in_presence_of_span_from_other_framework FAILED [ 91%] tests/test_asgi_middleware.py::TestAsgiApplicationRaisingError::test_asgi_issue_1883 FAILED [ 92%] tests/test_getter.py::TestASGIGetter::test_get_ PASSED [ 93%] tests/test_getter.py::TestASGIGetter::test_get_none_empty_carrier PASSED [ 95%] tests/test_getter.py::TestASGIGetter::test_get_none_empty_headers PASSED [ 96%] tests/test_getter.py::TestASGIGetter::test_keys PASSED [ 97%] tests/test_getter.py::TestASGIGetter::test_keys_empty_carrier PASSED [ 98%] tests/test_getter.py::TestASGIGetter::test_keys_empty_headers PASSED [100%] =================================== FAILURES =================================== ___ TestCustomHeadersEnv.test_http_custom_request_headers_in_span_attributes ___ self = def test_http_custom_request_headers_in_span_attributes(self): self.scope["headers"].extend( [ (b"custom-test-header-1", b"test-header-value-1"), (b"custom-test-header-2", b"test-header-value-2"), (b"Regex-Test-Header-1", b"Regex Test Value 1"), (b"regex-test-header-2", b"RegexTestValue2,RegexTestValue3"), (b"My-Secret-Header", b"My Secret Value"), ] ) > self.seed_app(self.app) tests/test_asgi_custom_headers.py:121: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/opentelemetry/test/asgitestutil.py:54: in seed_app self.communicator = ApplicationCommunicator(app, self.scope) /usr/lib/python3/site-packages/asgiref/testing.py:24: in __init__ self.future = contextvars.Context().run( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ coro = def create_task(coro, *, name=None, context=None): """Schedule the execution of a coroutine object in a spawn task. Return a Task object. """ > loop = events.get_running_loop() E RuntimeError: no running event loop /usr/lib/python3.12/asyncio/tasks.py:417: RuntimeError _ TestCustomHeadersEnv.test_http_custom_request_headers_not_in_span_attributes _ self = def test_http_custom_request_headers_not_in_span_attributes(self): self.scope["headers"].extend( [ (b"custom-test-header-1", b"test-header-value-1"), ] ) > self.seed_app(self.app) tests/test_asgi_custom_headers.py:168: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/opentelemetry/test/asgitestutil.py:54: in seed_app self.communicator = ApplicationCommunicator(app, self.scope) /usr/lib/python3/site-packages/asgiref/testing.py:24: in __init__ self.future = contextvars.Context().run( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ coro = def create_task(coro, *, name=None, context=None): """Schedule the execution of a coroutine object in a spawn task. Return a Task object. """ > loop = events.get_running_loop() E RuntimeError: no running event loop /usr/lib/python3.12/asyncio/tasks.py:417: RuntimeError __ TestCustomHeadersEnv.test_http_custom_response_headers_in_span_attributes ___ self = def test_http_custom_response_headers_in_span_attributes(self): self.app = otel_asgi.OpenTelemetryMiddleware( http_app_with_custom_headers, tracer_provider=self.tracer_provider, **self.constructor_params, ) > self.seed_app(self.app) tests/test_asgi_custom_headers.py:194: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/opentelemetry/test/asgitestutil.py:54: in seed_app self.communicator = ApplicationCommunicator(app, self.scope) /usr/lib/python3/site-packages/asgiref/testing.py:24: in __init__ self.future = contextvars.Context().run( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ coro = def create_task(coro, *, name=None, context=None): """Schedule the execution of a coroutine object in a spawn task. Return a Task object. """ > loop = events.get_running_loop() E RuntimeError: no running event loop /usr/lib/python3.12/asyncio/tasks.py:417: RuntimeError ------------------------------ Captured log call ------------------------------- WARNING opentelemetry.sdk.metrics._internal:__init__.py:204 An instrument with name http.server.duration, type Histogram, unit ms and description Duration of HTTP server requests. has been created already. WARNING opentelemetry.sdk.metrics._internal:__init__.py:204 An instrument with name http.server.response.size, type Histogram, unit By and description measures the size of HTTP response messages (compressed). has been created already. WARNING opentelemetry.sdk.metrics._internal:__init__.py:204 An instrument with name http.server.request.size, type Histogram, unit By and description Measures the size of HTTP request messages (compressed). has been created already. WARNING opentelemetry.sdk.metrics._internal:__init__.py:129 An instrument with name http.server.active_requests, type UpDownCounter, unit {request} and description Number of active HTTP server requests. has been created already. _ TestCustomHeadersEnv.test_http_custom_response_headers_not_in_span_attributes _ self = def test_http_custom_response_headers_not_in_span_attributes(self): self.app = otel_asgi.OpenTelemetryMiddleware( http_app_with_custom_headers, tracer_provider=self.tracer_provider, **self.constructor_params, ) > self.seed_app(self.app) tests/test_asgi_custom_headers.py:242: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/opentelemetry/test/asgitestutil.py:54: in seed_app self.communicator = ApplicationCommunicator(app, self.scope) /usr/lib/python3/site-packages/asgiref/testing.py:24: in __init__ self.future = contextvars.Context().run( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ coro = def create_task(coro, *, name=None, context=None): """Schedule the execution of a coroutine object in a spawn task. Return a Task object. """ > loop = events.get_running_loop() E RuntimeError: no running event loop /usr/lib/python3.12/asyncio/tasks.py:417: RuntimeError ------------------------------ Captured log call ------------------------------- WARNING opentelemetry.sdk.metrics._internal:__init__.py:204 An instrument with name http.server.duration, type Histogram, unit ms and description Duration of HTTP server requests. has been created already. WARNING opentelemetry.sdk.metrics._internal:__init__.py:204 An instrument with name http.server.response.size, type Histogram, unit By and description measures the size of HTTP response messages (compressed). has been created already. WARNING opentelemetry.sdk.metrics._internal:__init__.py:204 An instrument with name http.server.request.size, type Histogram, unit By and description Measures the size of HTTP request messages (compressed). has been created already. WARNING opentelemetry.sdk.metrics._internal:__init__.py:129 An instrument with name http.server.active_requests, type UpDownCounter, unit {request} and description Number of active HTTP server requests. has been created already. ___ TestCustomHeadersEnv.test_http_repeat_request_headers_in_span_attributes ___ self = def test_http_repeat_request_headers_in_span_attributes(self): self.scope["headers"].extend( [ (b"custom-test-header-1", b"test-header-value-1"), (b"custom-test-header-1", b"test-header-value-2"), ] ) > self.seed_app(self.app) tests/test_asgi_custom_headers.py:149: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/opentelemetry/test/asgitestutil.py:54: in seed_app self.communicator = ApplicationCommunicator(app, self.scope) /usr/lib/python3/site-packages/asgiref/testing.py:24: in __init__ self.future = contextvars.Context().run( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ coro = def create_task(coro, *, name=None, context=None): """Schedule the execution of a coroutine object in a spawn task. Return a Task object. """ > loop = events.get_running_loop() E RuntimeError: no running event loop /usr/lib/python3.12/asyncio/tasks.py:417: RuntimeError __ TestCustomHeadersEnv.test_http_repeat_response_headers_in_span_attributes ___ self = def test_http_repeat_response_headers_in_span_attributes(self): self.app = otel_asgi.OpenTelemetryMiddleware( http_app_with_repeat_headers, tracer_provider=self.tracer_provider, **self.constructor_params, ) > self.seed_app(self.app) tests/test_asgi_custom_headers.py:223: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/opentelemetry/test/asgitestutil.py:54: in seed_app self.communicator = ApplicationCommunicator(app, self.scope) /usr/lib/python3/site-packages/asgiref/testing.py:24: in __init__ self.future = contextvars.Context().run( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ coro = def create_task(coro, *, name=None, context=None): """Schedule the execution of a coroutine object in a spawn task. Return a Task object. """ > loop = events.get_running_loop() E RuntimeError: no running event loop /usr/lib/python3.12/asyncio/tasks.py:417: RuntimeError ------------------------------ Captured log call ------------------------------- WARNING opentelemetry.sdk.metrics._internal:__init__.py:204 An instrument with name http.server.duration, type Histogram, unit ms and description Duration of HTTP server requests. has been created already. WARNING opentelemetry.sdk.metrics._internal:__init__.py:204 An instrument with name http.server.response.size, type Histogram, unit By and description measures the size of HTTP response messages (compressed). has been created already. WARNING opentelemetry.sdk.metrics._internal:__init__.py:204 An instrument with name http.server.request.size, type Histogram, unit By and description Measures the size of HTTP request messages (compressed). has been created already. WARNING opentelemetry.sdk.metrics._internal:__init__.py:129 An instrument with name http.server.active_requests, type UpDownCounter, unit {request} and description Number of active HTTP server requests. has been created already. _ TestCustomHeadersEnv.test_websocket_custom_request_headers_in_span_attributes _ self = def test_websocket_custom_request_headers_in_span_attributes(self): self.scope = { "type": "websocket", "http_version": "1.1", "scheme": "ws", "path": "/", "query_string": b"", "headers": [ (b"custom-test-header-1", b"test-header-value-1"), (b"custom-test-header-2", b"test-header-value-2"), (b"Regex-Test-Header-1", b"Regex Test Value 1"), (b"regex-test-header-2", b"RegexTestValue2,RegexTestValue3"), (b"My-Secret-Header", b"My Secret Value"), ], "client": ("127.0.0.1", 32767), "server": ("127.0.0.1", 80), } > self.seed_app(self.app) tests/test_asgi_custom_headers.py:273: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/opentelemetry/test/asgitestutil.py:54: in seed_app self.communicator = ApplicationCommunicator(app, self.scope) /usr/lib/python3/site-packages/asgiref/testing.py:24: in __init__ self.future = contextvars.Context().run( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ coro = def create_task(coro, *, name=None, context=None): """Schedule the execution of a coroutine object in a spawn task. Return a Task object. """ > loop = events.get_running_loop() E RuntimeError: no running event loop /usr/lib/python3.12/asyncio/tasks.py:417: RuntimeError _ TestCustomHeadersEnv.test_websocket_custom_request_headers_not_in_span_attributes _ self = def test_websocket_custom_request_headers_not_in_span_attributes(self): self.scope = { "type": "websocket", "http_version": "1.1", "scheme": "ws", "path": "/", "query_string": b"", "headers": [ (b"Custom-Test-Header-1", b"test-header-value-1"), (b"Custom-Test-Header-2", b"test-header-value-2"), ], "client": ("127.0.0.1", 32767), "server": ("127.0.0.1", 80), } > self.seed_app(self.app) tests/test_asgi_custom_headers.py:311: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/opentelemetry/test/asgitestutil.py:54: in seed_app self.communicator = ApplicationCommunicator(app, self.scope) /usr/lib/python3/site-packages/asgiref/testing.py:24: in __init__ self.future = contextvars.Context().run( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ coro = def create_task(coro, *, name=None, context=None): """Schedule the execution of a coroutine object in a spawn task. Return a Task object. """ > loop = events.get_running_loop() E RuntimeError: no running event loop /usr/lib/python3.12/asyncio/tasks.py:417: RuntimeError _ TestCustomHeadersEnv.test_websocket_custom_response_headers_in_span_attributes _ self = def test_websocket_custom_response_headers_in_span_attributes(self): self.scope = { "type": "websocket", "http_version": "1.1", "scheme": "ws", "path": "/", "query_string": b"", "headers": [], "client": ("127.0.0.1", 32767), "server": ("127.0.0.1", 80), } self.app = otel_asgi.OpenTelemetryMiddleware( websocket_app_with_custom_headers, tracer_provider=self.tracer_provider, **self.constructor_params, ) > self.seed_app(self.app) tests/test_asgi_custom_headers.py:344: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/opentelemetry/test/asgitestutil.py:54: in seed_app self.communicator = ApplicationCommunicator(app, self.scope) /usr/lib/python3/site-packages/asgiref/testing.py:24: in __init__ self.future = contextvars.Context().run( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ coro = def create_task(coro, *, name=None, context=None): """Schedule the execution of a coroutine object in a spawn task. Return a Task object. """ > loop = events.get_running_loop() E RuntimeError: no running event loop /usr/lib/python3.12/asyncio/tasks.py:417: RuntimeError ------------------------------ Captured log call ------------------------------- WARNING opentelemetry.sdk.metrics._internal:__init__.py:204 An instrument with name http.server.duration, type Histogram, unit ms and description Duration of HTTP server requests. has been created already. WARNING opentelemetry.sdk.metrics._internal:__init__.py:204 An instrument with name http.server.response.size, type Histogram, unit By and description measures the size of HTTP response messages (compressed). has been created already. WARNING opentelemetry.sdk.metrics._internal:__init__.py:204 An instrument with name http.server.request.size, type Histogram, unit By and description Measures the size of HTTP request messages (compressed). has been created already. WARNING opentelemetry.sdk.metrics._internal:__init__.py:129 An instrument with name http.server.active_requests, type UpDownCounter, unit {request} and description Number of active HTTP server requests. has been created already. _ TestCustomHeadersEnv.test_websocket_custom_response_headers_not_in_span_attributes _ self = def test_websocket_custom_response_headers_not_in_span_attributes(self): self.scope = { "type": "websocket", "http_version": "1.1", "scheme": "ws", "path": "/", "query_string": b"", "headers": [], "client": ("127.0.0.1", 32767), "server": ("127.0.0.1", 80), } self.app = otel_asgi.OpenTelemetryMiddleware( websocket_app_with_custom_headers, tracer_provider=self.tracer_provider, **self.constructor_params, ) > self.seed_app(self.app) tests/test_asgi_custom_headers.py:385: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/opentelemetry/test/asgitestutil.py:54: in seed_app self.communicator = ApplicationCommunicator(app, self.scope) /usr/lib/python3/site-packages/asgiref/testing.py:24: in __init__ self.future = contextvars.Context().run( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ coro = def create_task(coro, *, name=None, context=None): """Schedule the execution of a coroutine object in a spawn task. Return a Task object. """ > loop = events.get_running_loop() E RuntimeError: no running event loop /usr/lib/python3.12/asyncio/tasks.py:417: RuntimeError ------------------------------ Captured log call ------------------------------- WARNING opentelemetry.sdk.metrics._internal:__init__.py:204 An instrument with name http.server.duration, type Histogram, unit ms and description Duration of HTTP server requests. has been created already. WARNING opentelemetry.sdk.metrics._internal:__init__.py:204 An instrument with name http.server.response.size, type Histogram, unit By and description measures the size of HTTP response messages (compressed). has been created already. WARNING opentelemetry.sdk.metrics._internal:__init__.py:204 An instrument with name http.server.request.size, type Histogram, unit By and description Measures the size of HTTP request messages (compressed). has been created already. WARNING opentelemetry.sdk.metrics._internal:__init__.py:129 An instrument with name http.server.active_requests, type UpDownCounter, unit {request} and description Number of active HTTP server requests. has been created already. _ TestCustomHeadersConstructor.test_http_custom_request_headers_in_span_attributes _ self = def test_http_custom_request_headers_in_span_attributes(self): self.scope["headers"].extend( [ (b"custom-test-header-1", b"test-header-value-1"), (b"custom-test-header-2", b"test-header-value-2"), (b"Regex-Test-Header-1", b"Regex Test Value 1"), (b"regex-test-header-2", b"RegexTestValue2,RegexTestValue3"), (b"My-Secret-Header", b"My Secret Value"), ] ) > self.seed_app(self.app) tests/test_asgi_custom_headers.py:121: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/opentelemetry/test/asgitestutil.py:54: in seed_app self.communicator = ApplicationCommunicator(app, self.scope) /usr/lib/python3/site-packages/asgiref/testing.py:24: in __init__ self.future = contextvars.Context().run( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ coro = def create_task(coro, *, name=None, context=None): """Schedule the execution of a coroutine object in a spawn task. Return a Task object. """ > loop = events.get_running_loop() E RuntimeError: no running event loop /usr/lib/python3.12/asyncio/tasks.py:417: RuntimeError _ TestCustomHeadersConstructor.test_http_custom_request_headers_not_in_span_attributes _ self = def test_http_custom_request_headers_not_in_span_attributes(self): self.scope["headers"].extend( [ (b"custom-test-header-1", b"test-header-value-1"), ] ) > self.seed_app(self.app) tests/test_asgi_custom_headers.py:168: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/opentelemetry/test/asgitestutil.py:54: in seed_app self.communicator = ApplicationCommunicator(app, self.scope) /usr/lib/python3/site-packages/asgiref/testing.py:24: in __init__ self.future = contextvars.Context().run( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ coro = def create_task(coro, *, name=None, context=None): """Schedule the execution of a coroutine object in a spawn task. Return a Task object. """ > loop = events.get_running_loop() E RuntimeError: no running event loop /usr/lib/python3.12/asyncio/tasks.py:417: RuntimeError _ TestCustomHeadersConstructor.test_http_custom_response_headers_in_span_attributes _ self = def test_http_custom_response_headers_in_span_attributes(self): self.app = otel_asgi.OpenTelemetryMiddleware( http_app_with_custom_headers, tracer_provider=self.tracer_provider, **self.constructor_params, ) > self.seed_app(self.app) tests/test_asgi_custom_headers.py:194: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/opentelemetry/test/asgitestutil.py:54: in seed_app self.communicator = ApplicationCommunicator(app, self.scope) /usr/lib/python3/site-packages/asgiref/testing.py:24: in __init__ self.future = contextvars.Context().run( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ coro = def create_task(coro, *, name=None, context=None): """Schedule the execution of a coroutine object in a spawn task. Return a Task object. """ > loop = events.get_running_loop() E RuntimeError: no running event loop /usr/lib/python3.12/asyncio/tasks.py:417: RuntimeError ------------------------------ Captured log call ------------------------------- WARNING opentelemetry.sdk.metrics._internal:__init__.py:204 An instrument with name http.server.duration, type Histogram, unit ms and description Duration of HTTP server requests. has been created already. WARNING opentelemetry.sdk.metrics._internal:__init__.py:204 An instrument with name http.server.response.size, type Histogram, unit By and description measures the size of HTTP response messages (compressed). has been created already. WARNING opentelemetry.sdk.metrics._internal:__init__.py:204 An instrument with name http.server.request.size, type Histogram, unit By and description Measures the size of HTTP request messages (compressed). has been created already. WARNING opentelemetry.sdk.metrics._internal:__init__.py:129 An instrument with name http.server.active_requests, type UpDownCounter, unit {request} and description Number of active HTTP server requests. has been created already. _ TestCustomHeadersConstructor.test_http_custom_response_headers_not_in_span_attributes _ self = def test_http_custom_response_headers_not_in_span_attributes(self): self.app = otel_asgi.OpenTelemetryMiddleware( http_app_with_custom_headers, tracer_provider=self.tracer_provider, **self.constructor_params, ) > self.seed_app(self.app) tests/test_asgi_custom_headers.py:242: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/opentelemetry/test/asgitestutil.py:54: in seed_app self.communicator = ApplicationCommunicator(app, self.scope) /usr/lib/python3/site-packages/asgiref/testing.py:24: in __init__ self.future = contextvars.Context().run( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ coro = def create_task(coro, *, name=None, context=None): """Schedule the execution of a coroutine object in a spawn task. Return a Task object. """ > loop = events.get_running_loop() E RuntimeError: no running event loop /usr/lib/python3.12/asyncio/tasks.py:417: RuntimeError ------------------------------ Captured log call ------------------------------- WARNING opentelemetry.sdk.metrics._internal:__init__.py:204 An instrument with name http.server.duration, type Histogram, unit ms and description Duration of HTTP server requests. has been created already. WARNING opentelemetry.sdk.metrics._internal:__init__.py:204 An instrument with name http.server.response.size, type Histogram, unit By and description measures the size of HTTP response messages (compressed). has been created already. WARNING opentelemetry.sdk.metrics._internal:__init__.py:204 An instrument with name http.server.request.size, type Histogram, unit By and description Measures the size of HTTP request messages (compressed). has been created already. WARNING opentelemetry.sdk.metrics._internal:__init__.py:129 An instrument with name http.server.active_requests, type UpDownCounter, unit {request} and description Number of active HTTP server requests. has been created already. _ TestCustomHeadersConstructor.test_http_repeat_request_headers_in_span_attributes _ self = def test_http_repeat_request_headers_in_span_attributes(self): self.scope["headers"].extend( [ (b"custom-test-header-1", b"test-header-value-1"), (b"custom-test-header-1", b"test-header-value-2"), ] ) > self.seed_app(self.app) tests/test_asgi_custom_headers.py:149: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/opentelemetry/test/asgitestutil.py:54: in seed_app self.communicator = ApplicationCommunicator(app, self.scope) /usr/lib/python3/site-packages/asgiref/testing.py:24: in __init__ self.future = contextvars.Context().run( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ coro = def create_task(coro, *, name=None, context=None): """Schedule the execution of a coroutine object in a spawn task. Return a Task object. """ > loop = events.get_running_loop() E RuntimeError: no running event loop /usr/lib/python3.12/asyncio/tasks.py:417: RuntimeError _ TestCustomHeadersConstructor.test_http_repeat_response_headers_in_span_attributes _ self = def test_http_repeat_response_headers_in_span_attributes(self): self.app = otel_asgi.OpenTelemetryMiddleware( http_app_with_repeat_headers, tracer_provider=self.tracer_provider, **self.constructor_params, ) > self.seed_app(self.app) tests/test_asgi_custom_headers.py:223: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/opentelemetry/test/asgitestutil.py:54: in seed_app self.communicator = ApplicationCommunicator(app, self.scope) /usr/lib/python3/site-packages/asgiref/testing.py:24: in __init__ self.future = contextvars.Context().run( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ coro = def create_task(coro, *, name=None, context=None): """Schedule the execution of a coroutine object in a spawn task. Return a Task object. """ > loop = events.get_running_loop() E RuntimeError: no running event loop /usr/lib/python3.12/asyncio/tasks.py:417: RuntimeError ------------------------------ Captured log call ------------------------------- WARNING opentelemetry.sdk.metrics._internal:__init__.py:204 An instrument with name http.server.duration, type Histogram, unit ms and description Duration of HTTP server requests. has been created already. WARNING opentelemetry.sdk.metrics._internal:__init__.py:204 An instrument with name http.server.response.size, type Histogram, unit By and description measures the size of HTTP response messages (compressed). has been created already. WARNING opentelemetry.sdk.metrics._internal:__init__.py:204 An instrument with name http.server.request.size, type Histogram, unit By and description Measures the size of HTTP request messages (compressed). has been created already. WARNING opentelemetry.sdk.metrics._internal:__init__.py:129 An instrument with name http.server.active_requests, type UpDownCounter, unit {request} and description Number of active HTTP server requests. has been created already. _ TestCustomHeadersConstructor.test_websocket_custom_request_headers_in_span_attributes _ self = def test_websocket_custom_request_headers_in_span_attributes(self): self.scope = { "type": "websocket", "http_version": "1.1", "scheme": "ws", "path": "/", "query_string": b"", "headers": [ (b"custom-test-header-1", b"test-header-value-1"), (b"custom-test-header-2", b"test-header-value-2"), (b"Regex-Test-Header-1", b"Regex Test Value 1"), (b"regex-test-header-2", b"RegexTestValue2,RegexTestValue3"), (b"My-Secret-Header", b"My Secret Value"), ], "client": ("127.0.0.1", 32767), "server": ("127.0.0.1", 80), } > self.seed_app(self.app) tests/test_asgi_custom_headers.py:273: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/opentelemetry/test/asgitestutil.py:54: in seed_app self.communicator = ApplicationCommunicator(app, self.scope) /usr/lib/python3/site-packages/asgiref/testing.py:24: in __init__ self.future = contextvars.Context().run( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ coro = def create_task(coro, *, name=None, context=None): """Schedule the execution of a coroutine object in a spawn task. Return a Task object. """ > loop = events.get_running_loop() E RuntimeError: no running event loop /usr/lib/python3.12/asyncio/tasks.py:417: RuntimeError _ TestCustomHeadersConstructor.test_websocket_custom_request_headers_not_in_span_attributes _ self = def test_websocket_custom_request_headers_not_in_span_attributes(self): self.scope = { "type": "websocket", "http_version": "1.1", "scheme": "ws", "path": "/", "query_string": b"", "headers": [ (b"Custom-Test-Header-1", b"test-header-value-1"), (b"Custom-Test-Header-2", b"test-header-value-2"), ], "client": ("127.0.0.1", 32767), "server": ("127.0.0.1", 80), } > self.seed_app(self.app) tests/test_asgi_custom_headers.py:311: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/opentelemetry/test/asgitestutil.py:54: in seed_app self.communicator = ApplicationCommunicator(app, self.scope) /usr/lib/python3/site-packages/asgiref/testing.py:24: in __init__ self.future = contextvars.Context().run( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ coro = def create_task(coro, *, name=None, context=None): """Schedule the execution of a coroutine object in a spawn task. Return a Task object. """ > loop = events.get_running_loop() E RuntimeError: no running event loop /usr/lib/python3.12/asyncio/tasks.py:417: RuntimeError _ TestCustomHeadersConstructor.test_websocket_custom_response_headers_in_span_attributes _ self = def test_websocket_custom_response_headers_in_span_attributes(self): self.scope = { "type": "websocket", "http_version": "1.1", "scheme": "ws", "path": "/", "query_string": b"", "headers": [], "client": ("127.0.0.1", 32767), "server": ("127.0.0.1", 80), } self.app = otel_asgi.OpenTelemetryMiddleware( websocket_app_with_custom_headers, tracer_provider=self.tracer_provider, **self.constructor_params, ) > self.seed_app(self.app) tests/test_asgi_custom_headers.py:344: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/opentelemetry/test/asgitestutil.py:54: in seed_app self.communicator = ApplicationCommunicator(app, self.scope) /usr/lib/python3/site-packages/asgiref/testing.py:24: in __init__ self.future = contextvars.Context().run( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ coro = def create_task(coro, *, name=None, context=None): """Schedule the execution of a coroutine object in a spawn task. Return a Task object. """ > loop = events.get_running_loop() E RuntimeError: no running event loop /usr/lib/python3.12/asyncio/tasks.py:417: RuntimeError ------------------------------ Captured log call ------------------------------- WARNING opentelemetry.sdk.metrics._internal:__init__.py:204 An instrument with name http.server.duration, type Histogram, unit ms and description Duration of HTTP server requests. has been created already. WARNING opentelemetry.sdk.metrics._internal:__init__.py:204 An instrument with name http.server.response.size, type Histogram, unit By and description measures the size of HTTP response messages (compressed). has been created already. WARNING opentelemetry.sdk.metrics._internal:__init__.py:204 An instrument with name http.server.request.size, type Histogram, unit By and description Measures the size of HTTP request messages (compressed). has been created already. WARNING opentelemetry.sdk.metrics._internal:__init__.py:129 An instrument with name http.server.active_requests, type UpDownCounter, unit {request} and description Number of active HTTP server requests. has been created already. _ TestCustomHeadersConstructor.test_websocket_custom_response_headers_not_in_span_attributes _ self = def test_websocket_custom_response_headers_not_in_span_attributes(self): self.scope = { "type": "websocket", "http_version": "1.1", "scheme": "ws", "path": "/", "query_string": b"", "headers": [], "client": ("127.0.0.1", 32767), "server": ("127.0.0.1", 80), } self.app = otel_asgi.OpenTelemetryMiddleware( websocket_app_with_custom_headers, tracer_provider=self.tracer_provider, **self.constructor_params, ) > self.seed_app(self.app) tests/test_asgi_custom_headers.py:385: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/opentelemetry/test/asgitestutil.py:54: in seed_app self.communicator = ApplicationCommunicator(app, self.scope) /usr/lib/python3/site-packages/asgiref/testing.py:24: in __init__ self.future = contextvars.Context().run( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ coro = def create_task(coro, *, name=None, context=None): """Schedule the execution of a coroutine object in a spawn task. Return a Task object. """ > loop = events.get_running_loop() E RuntimeError: no running event loop /usr/lib/python3.12/asyncio/tasks.py:417: RuntimeError ------------------------------ Captured log call ------------------------------- WARNING opentelemetry.sdk.metrics._internal:__init__.py:204 An instrument with name http.server.duration, type Histogram, unit ms and description Duration of HTTP server requests. has been created already. WARNING opentelemetry.sdk.metrics._internal:__init__.py:204 An instrument with name http.server.response.size, type Histogram, unit By and description measures the size of HTTP response messages (compressed). has been created already. WARNING opentelemetry.sdk.metrics._internal:__init__.py:204 An instrument with name http.server.request.size, type Histogram, unit By and description Measures the size of HTTP request messages (compressed). has been created already. WARNING opentelemetry.sdk.metrics._internal:__init__.py:129 An instrument with name http.server.active_requests, type UpDownCounter, unit {request} and description Number of active HTTP server requests. has been created already. ____________________ TestAsgiApplication.test_asgi_exc_info ____________________ self = def test_asgi_exc_info(self): """Test that exception information is emitted as expected.""" app = otel_asgi.OpenTelemetryMiddleware(error_asgi) > self.seed_app(app) tests/test_asgi_middleware.py:534: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/opentelemetry/test/asgitestutil.py:54: in seed_app self.communicator = ApplicationCommunicator(app, self.scope) /usr/lib/python3/site-packages/asgiref/testing.py:24: in __init__ self.future = contextvars.Context().run( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ coro = def create_task(coro, *, name=None, context=None): """Schedule the execution of a coroutine object in a spawn task. Return a Task object. """ > loop = events.get_running_loop() E RuntimeError: no running event loop /usr/lib/python3.12/asyncio/tasks.py:417: RuntimeError ____________________ TestAsgiApplication.test_asgi_metrics _____________________ self = def test_asgi_metrics(self): app = otel_asgi.OpenTelemetryMiddleware(simple_asgi) > self.seed_app(app) tests/test_asgi_middleware.py:1194: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/opentelemetry/test/asgitestutil.py:54: in seed_app self.communicator = ApplicationCommunicator(app, self.scope) /usr/lib/python3/site-packages/asgiref/testing.py:24: in __init__ self.future = contextvars.Context().run( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ coro = def create_task(coro, *, name=None, context=None): """Schedule the execution of a coroutine object in a spawn task. Return a Task object. """ > loop = events.get_running_loop() E RuntimeError: no running event loop /usr/lib/python3.12/asyncio/tasks.py:417: RuntimeError ______________ TestAsgiApplication.test_asgi_metrics_both_semconv ______________ self = def test_asgi_metrics_both_semconv(self): app = otel_asgi.OpenTelemetryMiddleware(simple_asgi) > self.seed_app(app) tests/test_asgi_middleware.py:1266: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/opentelemetry/test/asgitestutil.py:54: in seed_app self.communicator = ApplicationCommunicator(app, self.scope) /usr/lib/python3/site-packages/asgiref/testing.py:24: in __init__ self.future = contextvars.Context().run( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ coro = def create_task(coro, *, name=None, context=None): """Schedule the execution of a coroutine object in a spawn task. Return a Task object. """ > loop = events.get_running_loop() E RuntimeError: no running event loop /usr/lib/python3.12/asyncio/tasks.py:417: RuntimeError ______________ TestAsgiApplication.test_asgi_metrics_new_semconv _______________ self = def test_asgi_metrics_new_semconv(self): app = otel_asgi.OpenTelemetryMiddleware(simple_asgi) > self.seed_app(app) tests/test_asgi_middleware.py:1230: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/opentelemetry/test/asgitestutil.py:54: in seed_app self.communicator = ApplicationCommunicator(app, self.scope) /usr/lib/python3/site-packages/asgiref/testing.py:24: in __init__ self.future = contextvars.Context().run( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ coro = def create_task(coro, *, name=None, context=None): """Schedule the execution of a coroutine object in a spawn task. Return a Task object. """ > loop = events.get_running_loop() E RuntimeError: no running event loop /usr/lib/python3.12/asyncio/tasks.py:417: RuntimeError _________________ TestAsgiApplication.test_asgi_not_recording __________________ self = def test_asgi_not_recording(self): mock_tracer = mock.Mock() mock_span = mock.Mock() mock_span.is_recording.return_value = False mock_tracer.start_as_current_span.return_value = mock_span mock_tracer.start_as_current_span.return_value.__enter__ = mock.Mock( return_value=mock_span ) mock_tracer.start_as_current_span.return_value.__exit__ = mock_span with mock.patch("opentelemetry.trace.get_tracer") as tracer: tracer.return_value = mock_tracer app = otel_asgi.OpenTelemetryMiddleware(simple_asgi) > self.seed_app(app) tests/test_asgi_middleware.py:524: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/opentelemetry/test/asgitestutil.py:54: in seed_app self.communicator = ApplicationCommunicator(app, self.scope) /usr/lib/python3/site-packages/asgiref/testing.py:24: in __init__ self.future = contextvars.Context().run( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ coro = def create_task(coro, *, name=None, context=None): """Schedule the execution of a coroutine object in a spawn task. Return a Task object. """ > loop = events.get_running_loop() E RuntimeError: no running event loop /usr/lib/python3.12/asyncio/tasks.py:417: RuntimeError ________________ TestAsgiApplication.test_background_execution _________________ self = def test_background_execution(self): """Test that the server span is ended BEFORE the background task is finished.""" app = otel_asgi.OpenTelemetryMiddleware(background_execution_asgi) > self.seed_app(app) tests/test_asgi_middleware.py:565: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/opentelemetry/test/asgitestutil.py:54: in seed_app self.communicator = ApplicationCommunicator(app, self.scope) /usr/lib/python3/site-packages/asgiref/testing.py:24: in __init__ self.future = contextvars.Context().run( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ coro = def create_task(coro, *, name=None, context=None): """Schedule the execution of a coroutine object in a spawn task. Return a Task object. """ > loop = events.get_running_loop() E RuntimeError: no running event loop /usr/lib/python3.12/asyncio/tasks.py:417: RuntimeError ___________________ TestAsgiApplication.test_basic_asgi_call ___________________ self = def test_basic_asgi_call(self): """Test that spans are emitted as expected.""" app = otel_asgi.OpenTelemetryMiddleware(simple_asgi) > self.seed_app(app) tests/test_asgi_middleware.py:491: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/opentelemetry/test/asgitestutil.py:54: in seed_app self.communicator = ApplicationCommunicator(app, self.scope) /usr/lib/python3/site-packages/asgiref/testing.py:24: in __init__ self.future = contextvars.Context().run( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ coro = def create_task(coro, *, name=None, context=None): """Schedule the execution of a coroutine object in a spawn task. Return a Task object. """ > loop = events.get_running_loop() E RuntimeError: no running event loop /usr/lib/python3.12/asyncio/tasks.py:417: RuntimeError ____________ TestAsgiApplication.test_basic_asgi_call_both_semconv _____________ self = def test_basic_asgi_call_both_semconv(self): """Test that spans are emitted as expected.""" app = otel_asgi.OpenTelemetryMiddleware(simple_asgi) > self.seed_app(app) tests/test_asgi_middleware.py:507: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/opentelemetry/test/asgitestutil.py:54: in seed_app self.communicator = ApplicationCommunicator(app, self.scope) /usr/lib/python3/site-packages/asgiref/testing.py:24: in __init__ self.future = contextvars.Context().run( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ coro = def create_task(coro, *, name=None, context=None): """Schedule the execution of a coroutine object in a spawn task. Return a Task object. """ > loop = events.get_running_loop() E RuntimeError: no running event loop /usr/lib/python3.12/asyncio/tasks.py:417: RuntimeError _____________ TestAsgiApplication.test_basic_asgi_call_new_semconv _____________ self = def test_basic_asgi_call_new_semconv(self): """Test that spans are emitted as expected.""" app = otel_asgi.OpenTelemetryMiddleware(simple_asgi) > self.seed_app(app) tests/test_asgi_middleware.py:499: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/opentelemetry/test/asgitestutil.py:54: in seed_app self.communicator = ApplicationCommunicator(app, self.scope) /usr/lib/python3/site-packages/asgiref/testing.py:24: in __init__ self.future = contextvars.Context().run( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ coro = def create_task(coro, *, name=None, context=None): """Schedule the execution of a coroutine object in a spawn task. Return a Task object. """ > loop = events.get_running_loop() E RuntimeError: no running event loop /usr/lib/python3.12/asyncio/tasks.py:417: RuntimeError ________________ TestAsgiApplication.test_basic_metric_success _________________ self = def test_basic_metric_success(self): app = otel_asgi.OpenTelemetryMiddleware(simple_asgi) > self.seed_app(app) tests/test_asgi_middleware.py:1302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/opentelemetry/test/asgitestutil.py:54: in seed_app self.communicator = ApplicationCommunicator(app, self.scope) /usr/lib/python3/site-packages/asgiref/testing.py:24: in __init__ self.future = contextvars.Context().run( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ coro = def create_task(coro, *, name=None, context=None): """Schedule the execution of a coroutine object in a spawn task. Return a Task object. """ > loop = events.get_running_loop() E RuntimeError: no running event loop /usr/lib/python3.12/asyncio/tasks.py:417: RuntimeError __________ TestAsgiApplication.test_basic_metric_success_both_semconv __________ self = def test_basic_metric_success_both_semconv(self): app = otel_asgi.OpenTelemetryMiddleware(simple_asgi) > self.seed_app(app) tests/test_asgi_middleware.py:1455: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/opentelemetry/test/asgitestutil.py:54: in seed_app self.communicator = ApplicationCommunicator(app, self.scope) /usr/lib/python3/site-packages/asgiref/testing.py:24: in __init__ self.future = contextvars.Context().run( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ coro = def create_task(coro, *, name=None, context=None): """Schedule the execution of a coroutine object in a spawn task. Return a Task object. """ > loop = events.get_running_loop() E RuntimeError: no running event loop /usr/lib/python3.12/asyncio/tasks.py:417: RuntimeError __________ TestAsgiApplication.test_basic_metric_success_new_semconv ___________ self = def test_basic_metric_success_new_semconv(self): app = otel_asgi.OpenTelemetryMiddleware(simple_asgi) > self.seed_app(app) tests/test_asgi_middleware.py:1408: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/opentelemetry/test/asgitestutil.py:54: in seed_app self.communicator = ApplicationCommunicator(app, self.scope) /usr/lib/python3/site-packages/asgiref/testing.py:24: in __init__ self.future = contextvars.Context().run( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ coro = def create_task(coro, *, name=None, context=None): """Schedule the execution of a coroutine object in a spawn task. Return a Task object. """ > loop = events.get_running_loop() E RuntimeError: no running event loop /usr/lib/python3.12/asyncio/tasks.py:417: RuntimeError _______ TestAsgiApplication.test_basic_metric_success_nonrecording_span ________ self = def test_basic_metric_success_nonrecording_span(self): mock_tracer = mock.Mock() mock_span = mock.Mock() mock_span.is_recording.return_value = False mock_tracer.start_as_current_span.return_value = mock_span mock_tracer.start_as_current_span.return_value.__enter__ = mock.Mock( return_value=mock_span ) mock_tracer.start_as_current_span.return_value.__exit__ = mock_span with mock.patch("opentelemetry.trace.get_tracer") as tracer: tracer.return_value = mock_tracer app = otel_asgi.OpenTelemetryMiddleware(simple_asgi) > self.seed_app(app) tests/test_asgi_middleware.py:1359: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/opentelemetry/test/asgitestutil.py:54: in seed_app self.communicator = ApplicationCommunicator(app, self.scope) /usr/lib/python3/site-packages/asgiref/testing.py:24: in __init__ self.future = contextvars.Context().run( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ coro = def create_task(coro, *, name=None, context=None): """Schedule the execution of a coroutine object in a spawn task. Return a Task object. """ > loop = events.get_running_loop() E RuntimeError: no running event loop /usr/lib/python3.12/asyncio/tasks.py:417: RuntimeError _________ TestAsgiApplication.test_behavior_with_scope_server_as_none __________ self = def test_behavior_with_scope_server_as_none(self): """Test that middleware is ok when server is none in scope.""" def update_expected_server(expected): expected[3]["attributes"].update( { SpanAttributes.HTTP_HOST: "0.0.0.0", SpanAttributes.NET_HOST_PORT: 80, SpanAttributes.HTTP_URL: "http://0.0.0.0/", } ) return expected self.scope["server"] = None app = otel_asgi.OpenTelemetryMiddleware(simple_asgi) > self.seed_app(app) tests/test_asgi_middleware.py:683: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/opentelemetry/test/asgitestutil.py:54: in seed_app self.communicator = ApplicationCommunicator(app, self.scope) /usr/lib/python3/site-packages/asgiref/testing.py:24: in __init__ self.future = contextvars.Context().run( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ coro = def create_task(coro, *, name=None, context=None): """Schedule the execution of a coroutine object in a spawn task. Return a Task object. """ > loop = events.get_running_loop() E RuntimeError: no running event loop /usr/lib/python3.12/asyncio/tasks.py:417: RuntimeError ___ TestAsgiApplication.test_behavior_with_scope_server_as_none_both_semconv ___ self = def test_behavior_with_scope_server_as_none_both_semconv(self): """Test that middleware is ok when server is none in scope.""" def update_expected_server(expected): expected[3]["attributes"].update( { SpanAttributes.HTTP_HOST: "0.0.0.0", SpanAttributes.NET_HOST_PORT: 80, SpanAttributes.HTTP_URL: "http://0.0.0.0/", SERVER_ADDRESS: "0.0.0.0", SERVER_PORT: 80, URL_FULL: "http://0.0.0.0/", } ) return expected self.scope["server"] = None app = otel_asgi.OpenTelemetryMiddleware(simple_asgi) > self.seed_app(app) tests/test_asgi_middleware.py:731: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/opentelemetry/test/asgitestutil.py:54: in seed_app self.communicator = ApplicationCommunicator(app, self.scope) /usr/lib/python3/site-packages/asgiref/testing.py:24: in __init__ self.future = contextvars.Context().run( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ coro = def create_task(coro, *, name=None, context=None): """Schedule the execution of a coroutine object in a spawn task. Return a Task object. """ > loop = events.get_running_loop() E RuntimeError: no running event loop /usr/lib/python3.12/asyncio/tasks.py:417: RuntimeError ___ TestAsgiApplication.test_behavior_with_scope_server_as_none_new_semconv ____ self = def test_behavior_with_scope_server_as_none_new_semconv(self): """Test that middleware is ok when server is none in scope.""" def update_expected_server(expected): expected[3]["attributes"].update( { SERVER_ADDRESS: "0.0.0.0", SERVER_PORT: 80, URL_FULL: "http://0.0.0.0/", } ) return expected self.scope["server"] = None app = otel_asgi.OpenTelemetryMiddleware(simple_asgi) > self.seed_app(app) tests/test_asgi_middleware.py:703: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/opentelemetry/test/asgitestutil.py:54: in seed_app self.communicator = ApplicationCommunicator(app, self.scope) /usr/lib/python3/site-packages/asgiref/testing.py:24: in __init__ self.future = contextvars.Context().run( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ coro = def create_task(coro, *, name=None, context=None): """Schedule the execution of a coroutine object in a spawn task. Return a Task object. """ > loop = events.get_running_loop() E RuntimeError: no running event loop /usr/lib/python3.12/asyncio/tasks.py:417: RuntimeError __________ TestAsgiApplication.test_custom_tracer_provider_otel_asgi ___________ self = def test_custom_tracer_provider_otel_asgi(self): resource = resources.Resource.create({"service-test-key": "value"}) result = TestBase.create_tracer_provider(resource=resource) tracer_provider, exporter = result app = otel_asgi.OpenTelemetryMiddleware( simple_asgi, tracer_provider=tracer_provider ) > self.seed_app(app) tests/test_asgi_middleware.py:646: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/opentelemetry/test/asgitestutil.py:54: in seed_app self.communicator = ApplicationCommunicator(app, self.scope) /usr/lib/python3/site-packages/asgiref/testing.py:24: in __init__ self.future = contextvars.Context().run( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ coro = def create_task(coro, *, name=None, context=None): """Schedule the execution of a coroutine object in a spawn task. Return a Task object. """ > loop = events.get_running_loop() E RuntimeError: no running event loop /usr/lib/python3.12/asyncio/tasks.py:417: RuntimeError ________________________ TestAsgiApplication.test_hooks ________________________ self = def test_hooks(self): def server_request_hook(span, scope): span.update_name("name from server hook") def client_request_hook(receive_span, scope, message): receive_span.update_name("name from client request hook") def client_response_hook(send_span, scope, message): send_span.set_attribute("attr-from-hook", "value") def update_expected_hook_results(expected): for entry in expected: if entry["kind"] == trace_api.SpanKind.SERVER: entry["name"] = "name from server hook" elif entry["name"] == "GET / http receive": entry["name"] = "name from client request hook" elif entry["name"] == "GET / http send": entry["attributes"].update({"attr-from-hook": "value"}) return expected app = otel_asgi.OpenTelemetryMiddleware( simple_asgi, server_request_hook=server_request_hook, client_request_hook=client_request_hook, client_response_hook=client_response_hook, ) > self.seed_app(app) tests/test_asgi_middleware.py:1185: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/opentelemetry/test/asgitestutil.py:54: in seed_app self.communicator = ApplicationCommunicator(app, self.scope) /usr/lib/python3/site-packages/asgiref/testing.py:24: in __init__ self.future = contextvars.Context().run( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ coro = def create_task(coro, *, name=None, context=None): """Schedule the execution of a coroutine object in a spawn task. Return a Task object. """ > loop = events.get_running_loop() E RuntimeError: no running event loop /usr/lib/python3.12/asyncio/tasks.py:417: RuntimeError _____________________ TestAsgiApplication.test_host_header _____________________ self = def test_host_header(self): """Test that host header is converted to http.server_name.""" hostname = b"server_name_1" def update_expected_server(expected): expected[3]["attributes"].update( {SpanAttributes.HTTP_SERVER_NAME: hostname.decode("utf8")} ) return expected self.scope["headers"].append([b"host", hostname]) app = otel_asgi.OpenTelemetryMiddleware(simple_asgi) > self.seed_app(app) tests/test_asgi_middleware.py:753: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/opentelemetry/test/asgitestutil.py:54: in seed_app self.communicator = ApplicationCommunicator(app, self.scope) /usr/lib/python3/site-packages/asgiref/testing.py:24: in __init__ self.future = contextvars.Context().run( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ coro = def create_task(coro, *, name=None, context=None): """Schedule the execution of a coroutine object in a spawn task. Return a Task object. """ > loop = events.get_running_loop() E RuntimeError: no running event loop /usr/lib/python3.12/asyncio/tasks.py:417: RuntimeError ______________ TestAsgiApplication.test_host_header_both_semconv _______________ self = def test_host_header_both_semconv(self): """Test that host header is converted to http.server_name.""" hostname = b"server_name_1" def update_expected_server(expected): expected[3]["attributes"].update( {SpanAttributes.HTTP_SERVER_NAME: hostname.decode("utf8")} ) return expected self.scope["headers"].append([b"host", hostname]) app = otel_asgi.OpenTelemetryMiddleware(simple_asgi) > self.seed_app(app) tests/test_asgi_middleware.py:770: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/opentelemetry/test/asgitestutil.py:54: in seed_app self.communicator = ApplicationCommunicator(app, self.scope) /usr/lib/python3/site-packages/asgiref/testing.py:24: in __init__ self.future = contextvars.Context().run( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ coro = def create_task(coro, *, name=None, context=None): """Schedule the execution of a coroutine object in a spawn task. Return a Task object. """ > loop = events.get_running_loop() E RuntimeError: no running event loop /usr/lib/python3.12/asyncio/tasks.py:417: RuntimeError ______________________ TestAsgiApplication.test_lifespan _______________________ self = def test_lifespan(self): self.scope["type"] = "lifespan" app = otel_asgi.OpenTelemetryMiddleware(simple_asgi) > self.seed_app(app) tests/test_asgi_middleware.py:1154: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/opentelemetry/test/asgitestutil.py:54: in seed_app self.communicator = ApplicationCommunicator(app, self.scope) /usr/lib/python3/site-packages/asgiref/testing.py:24: in __init__ self.future = contextvars.Context().run( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ coro = def create_task(coro, *, name=None, context=None): """Schedule the execution of a coroutine object in a spawn task. Return a Task object. """ > loop = events.get_running_loop() E RuntimeError: no running event loop /usr/lib/python3.12/asyncio/tasks.py:417: RuntimeError ____________________ TestAsgiApplication.test_long_response ____________________ self = def test_long_response(self): """Test that the server span is ended on the final response body message. If the server span is ended early then this test will fail due to discrepancies in the expected list of spans and the emitted list of spans. """ app = otel_asgi.OpenTelemetryMiddleware(long_response_asgi) > self.seed_app(app) tests/test_asgi_middleware.py:546: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/opentelemetry/test/asgitestutil.py:54: in seed_app self.communicator = ApplicationCommunicator(app, self.scope) /usr/lib/python3/site-packages/asgiref/testing.py:24: in __init__ self.future = contextvars.Context().run( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ coro = def create_task(coro, *, name=None, context=None): """Schedule the execution of a coroutine object in a spawn task. Return a Task object. """ > loop = events.get_running_loop() E RuntimeError: no running event loop /usr/lib/python3.12/asyncio/tasks.py:417: RuntimeError _______________ TestAsgiApplication.test_metric_target_attribute _______________ self = def test_metric_target_attribute(self): expected_target = "/api/user/{id}" class TestRoute: path_format = expected_target async def target_asgi(scope, receive, send): assert isinstance(scope, dict) if scope["type"] == "http": await http_app(scope, receive, send) scope["route"] = TestRoute() else: raise ValueError("websockets not supported") app = otel_asgi.OpenTelemetryMiddleware(target_asgi) > self.seed_app(app) tests/test_asgi_middleware.py:1556: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/opentelemetry/test/asgitestutil.py:54: in seed_app self.communicator = ApplicationCommunicator(app, self.scope) /usr/lib/python3/site-packages/asgiref/testing.py:24: in __init__ self.future = contextvars.Context().run( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ coro = def create_task(coro, *, name=None, context=None): """Schedule the execution of a coroutine object in a spawn task. Return a Task object. """ > loop = events.get_running_loop() E RuntimeError: no running event loop /usr/lib/python3.12/asyncio/tasks.py:417: RuntimeError ______________ TestAsgiApplication.test_no_metric_for_websockets _______________ self = def test_no_metric_for_websockets(self): self.scope = { "type": "websocket", "http_version": "1.1", "scheme": "ws", "path": "/", "query_string": b"", "headers": [], "client": ("127.0.0.1", 32767), "server": ("127.0.0.1", 80), } app = otel_asgi.OpenTelemetryMiddleware(simple_asgi) > self.seed_app(app) tests/test_asgi_middleware.py:1586: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/opentelemetry/test/asgitestutil.py:54: in seed_app self.communicator = ApplicationCommunicator(app, self.scope) /usr/lib/python3/site-packages/asgiref/testing.py:24: in __init__ self.future = contextvars.Context().run( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ coro = def create_task(coro, *, name=None, context=None): """Schedule the execution of a coroutine object in a spawn task. Return a Task object. """ > loop = events.get_running_loop() E RuntimeError: no running event loop /usr/lib/python3.12/asyncio/tasks.py:417: RuntimeError ___________ TestAsgiApplication.test_no_op_tracer_provider_otel_asgi ___________ self = def test_no_op_tracer_provider_otel_asgi(self): app = otel_asgi.OpenTelemetryMiddleware( simple_asgi, tracer_provider=trace_api.NoOpTracerProvider() ) > self.seed_app(app) tests/test_asgi_middleware.py:658: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/opentelemetry/test/asgitestutil.py:54: in seed_app self.communicator = ApplicationCommunicator(app, self.scope) /usr/lib/python3/site-packages/asgiref/testing.py:24: in __init__ self.future = contextvars.Context().run( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ coro = def create_task(coro, *, name=None, context=None): """Schedule the execution of a coroutine object in a spawn task. Return a Task object. """ > loop = events.get_running_loop() E RuntimeError: no running event loop /usr/lib/python3.12/asyncio/tasks.py:417: RuntimeError _________________ TestAsgiApplication.test_override_span_name __________________ self = def test_override_span_name(self): """Test that default span_names can be overwritten by our callback function.""" span_name = "Dymaxion" def get_predefined_span_details(_): return span_name, {} def update_expected_span_name(expected): for entry in expected: if entry["kind"] == trace_api.SpanKind.SERVER: entry["name"] = span_name else: entry["name"] = " ".join( [span_name] + entry["name"].split(" ")[2:] ) return expected app = otel_asgi.OpenTelemetryMiddleware( simple_asgi, default_span_details=get_predefined_span_details ) > self.seed_app(app) tests/test_asgi_middleware.py:633: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/opentelemetry/test/asgitestutil.py:54: in seed_app self.communicator = ApplicationCommunicator(app, self.scope) /usr/lib/python3/site-packages/asgiref/testing.py:24: in __init__ self.future = contextvars.Context().run( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ coro = def create_task(coro, *, name=None, context=None): """Schedule the execution of a coroutine object in a spawn task. Return a Task object. """ > loop = events.get_running_loop() E RuntimeError: no running event loop /usr/lib/python3.12/asyncio/tasks.py:417: RuntimeError ________________ TestAsgiApplication.test_traceresponse_header _________________ self = def test_traceresponse_header(self): """Test a traceresponse header is sent when a global propagator is set.""" orig = get_global_response_propagator() set_global_response_propagator(TraceResponsePropagator()) app = otel_asgi.OpenTelemetryMiddleware(simple_asgi) > self.seed_app(app) tests/test_asgi_middleware.py:851: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/opentelemetry/test/asgitestutil.py:54: in seed_app self.communicator = ApplicationCommunicator(app, self.scope) /usr/lib/python3/site-packages/asgiref/testing.py:24: in __init__ self.future = contextvars.Context().run( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ coro = def create_task(coro, *, name=None, context=None): """Schedule the execution of a coroutine object in a spawn task. Return a Task object. """ > loop = events.get_running_loop() E RuntimeError: no running event loop /usr/lib/python3.12/asyncio/tasks.py:417: RuntimeError ______________________ TestAsgiApplication.test_trailers _______________________ self = def test_trailers(self): """Test that trailers are emitted as expected and that the server span is ended BEFORE the background task is finished.""" app = otel_asgi.OpenTelemetryMiddleware( background_execution_trailers_asgi ) > self.seed_app(app) tests/test_asgi_middleware.py:584: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/opentelemetry/test/asgitestutil.py:54: in seed_app self.communicator = ApplicationCommunicator(app, self.scope) /usr/lib/python3/site-packages/asgiref/testing.py:24: in __init__ self.future = contextvars.Context().run( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ coro = def create_task(coro, *, name=None, context=None): """Schedule the execution of a coroutine object in a spawn task. Return a Task object. """ > loop = events.get_running_loop() E RuntimeError: no running event loop /usr/lib/python3.12/asyncio/tasks.py:417: RuntimeError _____________________ TestAsgiApplication.test_user_agent ______________________ self = def test_user_agent(self): """Test that host header is converted to http.server_name.""" user_agent = b"test-agent" def update_expected_user_agent(expected): expected[3]["attributes"].update( {SpanAttributes.HTTP_USER_AGENT: user_agent.decode("utf8")} ) return expected self.scope["headers"].append([b"user-agent", user_agent]) app = otel_asgi.OpenTelemetryMiddleware(simple_asgi) > self.seed_app(app) tests/test_asgi_middleware.py:792: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/opentelemetry/test/asgitestutil.py:54: in seed_app self.communicator = ApplicationCommunicator(app, self.scope) /usr/lib/python3/site-packages/asgiref/testing.py:24: in __init__ self.future = contextvars.Context().run( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ coro = def create_task(coro, *, name=None, context=None): """Schedule the execution of a coroutine object in a spawn task. Return a Task object. """ > loop = events.get_running_loop() E RuntimeError: no running event loop /usr/lib/python3.12/asyncio/tasks.py:417: RuntimeError _______________ TestAsgiApplication.test_user_agent_both_semconv _______________ self = def test_user_agent_both_semconv(self): """Test that host header is converted to http.server_name.""" user_agent = b"test-agent" def update_expected_user_agent(expected): expected[3]["attributes"].update( { SpanAttributes.HTTP_USER_AGENT: user_agent.decode("utf8"), USER_AGENT_ORIGINAL: user_agent.decode("utf8"), } ) return expected self.scope["headers"].append([b"user-agent", user_agent]) app = otel_asgi.OpenTelemetryMiddleware(simple_asgi) > self.seed_app(app) tests/test_asgi_middleware.py:834: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/opentelemetry/test/asgitestutil.py:54: in seed_app self.communicator = ApplicationCommunicator(app, self.scope) /usr/lib/python3/site-packages/asgiref/testing.py:24: in __init__ self.future = contextvars.Context().run( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ coro = def create_task(coro, *, name=None, context=None): """Schedule the execution of a coroutine object in a spawn task. Return a Task object. """ > loop = events.get_running_loop() E RuntimeError: no running event loop /usr/lib/python3.12/asyncio/tasks.py:417: RuntimeError _______________ TestAsgiApplication.test_user_agent_new_semconv ________________ self = def test_user_agent_new_semconv(self): """Test that host header is converted to http.server_name.""" user_agent = b"test-agent" def update_expected_user_agent(expected): expected[3]["attributes"].update( {USER_AGENT_ORIGINAL: user_agent.decode("utf8")} ) return expected self.scope["headers"].append([b"user-agent", user_agent]) app = otel_asgi.OpenTelemetryMiddleware(simple_asgi) > self.seed_app(app) tests/test_asgi_middleware.py:809: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/opentelemetry/test/asgitestutil.py:54: in seed_app self.communicator = ApplicationCommunicator(app, self.scope) /usr/lib/python3/site-packages/asgiref/testing.py:24: in __init__ self.future = contextvars.Context().run( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ coro = def create_task(coro, *, name=None, context=None): """Schedule the execution of a coroutine object in a spawn task. Return a Task object. """ > loop = events.get_running_loop() E RuntimeError: no running event loop /usr/lib/python3.12/asyncio/tasks.py:417: RuntimeError ______________________ TestAsgiApplication.test_websocket ______________________ self = def test_websocket(self): self.scope = { "method": "GET", "type": "websocket", "http_version": "1.1", "scheme": "ws", "path": "/", "query_string": b"", "headers": [], "client": ("127.0.0.1", 32767), "server": ("127.0.0.1", 80), } app = otel_asgi.OpenTelemetryMiddleware(simple_asgi) > self.seed_app(app) tests/test_asgi_middleware.py:890: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/opentelemetry/test/asgitestutil.py:54: in seed_app self.communicator = ApplicationCommunicator(app, self.scope) /usr/lib/python3/site-packages/asgiref/testing.py:24: in __init__ self.future = contextvars.Context().run( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ coro = def create_task(coro, *, name=None, context=None): """Schedule the execution of a coroutine object in a spawn task. Return a Task object. """ > loop = events.get_running_loop() E RuntimeError: no running event loop /usr/lib/python3.12/asyncio/tasks.py:417: RuntimeError _______________ TestAsgiApplication.test_websocket_both_semconv ________________ self = def test_websocket_both_semconv(self): self.scope = { "method": "GET", "type": "websocket", "http_version": "1.1", "scheme": "ws", "path": "/", "query_string": b"", "headers": [], "client": ("127.0.0.1", 32767), "server": ("127.0.0.1", 80), } app = otel_asgi.OpenTelemetryMiddleware(simple_asgi) > self.seed_app(app) tests/test_asgi_middleware.py:1038: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/opentelemetry/test/asgitestutil.py:54: in seed_app self.communicator = ApplicationCommunicator(app, self.scope) /usr/lib/python3/site-packages/asgiref/testing.py:24: in __init__ self.future = contextvars.Context().run( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ coro = def create_task(coro, *, name=None, context=None): """Schedule the execution of a coroutine object in a spawn task. Return a Task object. """ > loop = events.get_running_loop() E RuntimeError: no running event loop /usr/lib/python3.12/asyncio/tasks.py:417: RuntimeError ________________ TestAsgiApplication.test_websocket_new_semconv ________________ self = def test_websocket_new_semconv(self): self.scope = { "method": "GET", "type": "websocket", "http_version": "1.1", "scheme": "ws", "path": "/", "query_string": b"", "headers": [], "client": ("127.0.0.1", 32767), "server": ("127.0.0.1", 80), } app = otel_asgi.OpenTelemetryMiddleware(simple_asgi) > self.seed_app(app) tests/test_asgi_middleware.py:964: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/opentelemetry/test/asgitestutil.py:54: in seed_app self.communicator = ApplicationCommunicator(app, self.scope) /usr/lib/python3/site-packages/asgiref/testing.py:24: in __init__ self.future = contextvars.Context().run( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ coro = def create_task(coro, *, name=None, context=None): """Schedule the execution of a coroutine object in a spawn task. Return a Task object. """ > loop = events.get_running_loop() E RuntimeError: no running event loop /usr/lib/python3.12/asyncio/tasks.py:417: RuntimeError ___________ TestAsgiApplication.test_websocket_traceresponse_header ____________ self = def test_websocket_traceresponse_header(self): """Test a traceresponse header is set for websocket messages""" orig = get_global_response_propagator() set_global_response_propagator(TraceResponsePropagator()) self.scope = { "type": "websocket", "http_version": "1.1", "scheme": "ws", "path": "/", "query_string": b"", "headers": [], "client": ("127.0.0.1", 32767), "server": ("127.0.0.1", 80), } app = otel_asgi.OpenTelemetryMiddleware(simple_asgi) > self.seed_app(app) tests/test_asgi_middleware.py:1128: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/opentelemetry/test/asgitestutil.py:54: in seed_app self.communicator = ApplicationCommunicator(app, self.scope) /usr/lib/python3/site-packages/asgiref/testing.py:24: in __init__ self.future = contextvars.Context().run( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ coro = def create_task(coro, *, name=None, context=None): """Schedule the execution of a coroutine object in a spawn task. Return a Task object. """ > loop = events.get_running_loop() E RuntimeError: no running event loop /usr/lib/python3.12/asyncio/tasks.py:417: RuntimeError _ TestWrappedApplication.test_mark_span_internal_in_presence_of_span_from_other_framework _ self = def test_mark_span_internal_in_presence_of_span_from_other_framework(self): tracer_provider, exporter = TestBase.create_tracer_provider() tracer = tracer_provider.get_tracer(__name__) app = otel_asgi.OpenTelemetryMiddleware( simple_asgi, tracer_provider=tracer_provider ) # Wrapping the otel intercepted app with server span async def wrapped_app(scope, receive, send): with tracer.start_as_current_span( "test", kind=SpanKind.SERVER ) as _: await app(scope, receive, send) > self.seed_app(wrapped_app) tests/test_asgi_middleware.py:1820: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/opentelemetry/test/asgitestutil.py:54: in seed_app self.communicator = ApplicationCommunicator(app, self.scope) /usr/lib/python3/site-packages/asgiref/testing.py:24: in __init__ self.future = contextvars.Context().run( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ coro = .wrapped_app at 0xf666dac8> def create_task(coro, *, name=None, context=None): """Schedule the execution of a coroutine object in a spawn task. Return a Task object. """ > loop = events.get_running_loop() E RuntimeError: no running event loop /usr/lib/python3.12/asyncio/tasks.py:417: RuntimeError _____________ TestAsgiApplicationRaisingError.test_asgi_issue_1883 _____________ self = def test_asgi_issue_1883(self): """ Test that exception UnboundLocalError local variable 'start' referenced before assignment is not raised See https://github.com/open-telemetry/opentelemetry-python-contrib/issues/1883 """ async def bad_app(_scope, _receive, _send): raise ValueError("whatever") app = otel_asgi.OpenTelemetryMiddleware(bad_app) > self.seed_app(app) tests/test_asgi_middleware.py:1852: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/opentelemetry/test/asgitestutil.py:54: in seed_app self.communicator = ApplicationCommunicator(app, self.scope) /usr/lib/python3/site-packages/asgiref/testing.py:24: in __init__ self.future = contextvars.Context().run( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ coro = def create_task(coro, *, name=None, context=None): """Schedule the execution of a coroutine object in a spawn task. Return a Task object. """ > loop = events.get_running_loop() E RuntimeError: no running event loop /usr/lib/python3.12/asyncio/tasks.py:417: RuntimeError =============================== warnings summary =============================== instrumentation/opentelemetry-instrumentation-asgi/tests/test_asgi_custom_headers.py::TestCustomHeadersEnv::test_http_custom_request_headers_not_in_span_attributes instrumentation/opentelemetry-instrumentation-asgi/tests/test_asgi_custom_headers.py::TestCustomHeadersConstructor::test_http_custom_response_headers_in_span_attributes instrumentation/opentelemetry-instrumentation-asgi/tests/test_asgi_custom_headers.py::TestCustomHeadersConstructor::test_http_repeat_response_headers_in_span_attributes instrumentation/opentelemetry-instrumentation-asgi/tests/test_asgi_custom_headers.py::TestCustomHeadersConstructor::test_websocket_custom_response_headers_in_span_attributes instrumentation/opentelemetry-instrumentation-asgi/tests/test_asgi_middleware.py::TestAsgiApplication::test_asgi_not_recording instrumentation/opentelemetry-instrumentation-asgi/tests/test_asgi_middleware.py::TestAsgiApplication::test_basic_asgi_call_both_semconv instrumentation/opentelemetry-instrumentation-asgi/tests/test_asgi_middleware.py::TestAsgiApplication::test_basic_metric_success_both_semconv instrumentation/opentelemetry-instrumentation-asgi/tests/test_asgi_middleware.py::TestAsgiApplication::test_behavior_with_scope_server_as_none instrumentation/opentelemetry-instrumentation-asgi/tests/test_asgi_middleware.py::TestAsgiApplication::test_custom_tracer_provider_otel_asgi /usr/lib/python3.12/ast.py:264: RuntimeWarning: coroutine 'OpenTelemetryMiddleware.__call__' was never awaited yield field, getattr(node, field) Enable tracemalloc to get traceback where the object was allocated. See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info. instrumentation/opentelemetry-instrumentation-asgi/tests/test_asgi_middleware.py::TestAsgiApplication::test_asgi_metrics /usr/lib/python3.12/ast.py:257: RuntimeWarning: coroutine 'OpenTelemetryMiddleware.__call__' was never awaited def iter_fields(node): Enable tracemalloc to get traceback where the object was allocated. See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info. instrumentation/opentelemetry-instrumentation-asgi/tests/test_asgi_middleware.py::TestAsgiAttributes::test_response_attributes_new_semconv /usr/lib/python3.12/unittest/mock.py:2217: RuntimeWarning: coroutine 'OpenTelemetryMiddleware.__call__' was never awaited def __init__(self, name, parent): Enable tracemalloc to get traceback where the object was allocated. See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info. instrumentation/opentelemetry-instrumentation-asgi/tests/test_asgi_middleware.py::TestAsgiAttributes::test_response_attributes_new_semconv /usr/lib/python3/site-packages/_pytest/unraisableexception.py:85: PytestUnraisableExceptionWarning: Exception ignored in: Traceback (most recent call last): File "/usr/lib/python3/site-packages/asgiref/testing.py", line 58, in __del__ self.stop(exceptions=False) File "/usr/lib/python3/site-packages/asgiref/testing.py", line 49, in stop if not self.future.done(): ^^^^^^^^^^^ AttributeError: 'ApplicationCommunicator' object has no attribute 'future' warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ================== 57 failed, 23 passed, 12 warnings in 2.21s ================== Exception ignored in: Traceback (most recent call last): File "/usr/lib/python3/site-packages/asgiref/testing.py", line 58, in __del__ self.stop(exceptions=False) File "/usr/lib/python3/site-packages/asgiref/testing.py", line 49, in stop if not self.future.done(): ^^^^^^^^^^^ AttributeError: 'ApplicationCommunicator' object has no attribute 'future' sys:1: RuntimeWarning: coroutine 'TestWrappedApplication.test_mark_span_internal_in_presence_of_span_from_other_framework..wrapped_app' was never awaited RuntimeWarning: Enable tracemalloc to get the object allocation traceback Exception ignored in: Traceback (most recent call last): File "/usr/lib/python3/site-packages/asgiref/testing.py", line 58, in __del__ self.stop(exceptions=False) File "/usr/lib/python3/site-packages/asgiref/testing.py", line 49, in stop if not self.future.done(): ^^^^^^^^^^^ AttributeError: 'ApplicationCommunicator' object has no attribute 'future' sys:1: RuntimeWarning: coroutine 'OpenTelemetryMiddleware.__call__' was never awaited RuntimeWarning: Enable tracemalloc to get the object allocation traceback INFO : Command's result: FAILURE INFO : Command's error: Command '['python3', '-m', 'pytest']' returned non-zero exit status 1. error: Bad exit status from /usr/src/tmp/rpm-tmp.42442 (%check) RPM build errors: Bad exit status from /usr/src/tmp/rpm-tmp.42442 (%check) Command exited with non-zero status 1 5.36user 1.34system 0:08.60elapsed 77%CPU (0avgtext+0avgdata 34512maxresident)k 0inputs+0outputs (0major+190619minor)pagefaults 0swaps hsh-rebuild: rebuild of `python3-module-opentelemetry-contrib-0.47b0-alt1.1.src.rpm' failed. Command exited with non-zero status 1 4.17user 3.35system 0:22.14elapsed 33%CPU (0avgtext+0avgdata 130776maxresident)k 1608inputs+0outputs (0major+318555minor)pagefaults 0swaps