Package Details: python-opentelemetry-propagator-b3 1.34.1-1

Git Clone URL: https://aur.archlinux.org/python-opentelemetry.git (read-only, click to copy)
Package Base: python-opentelemetry
Description: OpenTelemetry B3 Propagator
Upstream URL: https://github.com/open-telemetry/opentelemetry-python
Licenses: Apache-2.0
Submitter: carsme
Maintainer: mistersmee
Last Packager: mistersmee
Votes: 0
Popularity: 0.000000
First Submitted: 2023-06-19 23:08 (UTC)
Last Updated: 2025-06-12 04:24 (UTC)

Latest Comments

medaminezghal commented on 2025-07-14 06:57 (UTC)

@mistersmee I got this error when trying to install this package:

____ TestSimpleLogRecordProcessor.test_simple_log_record_processor_shutdown ____

self = <tests.logs.test_export.TestSimpleLogRecordProcessor testMethod=test_simple_log_record_processor_shutdown>

    def test_simple_log_record_processor_shutdown(self):
        exporter = InMemoryLogExporter()
        logger_provider = LoggerProvider()

        logger_provider.add_log_record_processor(
            SimpleLogRecordProcessor(exporter)
        )

        logger = logging.getLogger("shutdown")
        logger.propagate = False
        logger.addHandler(LoggingHandler(logger_provider=logger_provider))

        logger.warning("Something is wrong")
        finished_logs = exporter.get_finished_logs()
        self.assertEqual(len(finished_logs), 1)
        warning_log_record = finished_logs[0].log_record
        self.assertEqual(warning_log_record.body, "Something is wrong")
        self.assertEqual(warning_log_record.severity_text, "WARN")
        self.assertEqual(
            warning_log_record.severity_number, SeverityNumber.WARN
        )
        self.assertEqual(
            finished_logs[0].instrumentation_scope.name, "shutdown"
        )
        exporter.clear()
        logger_provider.shutdown()
>       with self.assertLogs(level=logging.WARNING):
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

opentelemetry-sdk/tests/logs/test_export.py:196: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.13/unittest/_log.py:84: in __exit__
    self._raiseFailure(
E   AssertionError: no logs of level WARNING or higher triggered on root

mistersmee commented on 2025-02-09 04:45 (UTC)

@A_Bart, upstream still hasn't removed the dependency, so I guess the final discussion would need to happen upstream, but, I agree.

Although I have posted a stopgap patch to fix python-opentracing at the AUR package, it needs to be accepted by the maintainer, and even then, it is a stopgap, so doing so will get harder and harder as Python versions increase because opentracing upstream is archived.

So, I have removed the opentracing dependency, and disabled those tests. It should build fine without it now.

A_Bart commented on 2025-02-01 18:02 (UTC)

Hi, the dependency python-opentracing is an archived project, and it does not build with current python and pytest. I have found a discussion here: https://aur.archlinux.org/packages/semgrep-bin

Can python-opentracing be removed from dependencies?

micwoj92 commented on 2024-01-31 02:29 (UTC)

python-opentelemetry-api requires "importlib-metadata >= 6.0, < 7.0", but only version 5.1.0 is packaged in repos.