Package Details: python-opentelemetry-exporter-zipkin-json 1.38.0-1

Git Clone URL: https://aur.archlinux.org/python-opentelemetry.git (read-only, click to copy)
Package Base: python-opentelemetry
Description: Zipkin Span JSON Exporter for OpenTelemetry
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-10-16 09:11 (UTC)

Latest Comments

micwoj92 commented on 2025-10-16 21:26 (UTC)

Getting this error:

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.13/unittest/mock.py:1423: in patched
    with self.decoration_helper(patched,
/usr/lib/python3.13/contextlib.py:141: in __enter__
    return next(self.gen)
           ^^^^^^^^^^^^^^
/usr/lib/python3.13/unittest/mock.py:1405: in decoration_helper
    arg = exit_stack.enter_context(patching)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/lib/python3.13/contextlib.py:530: in enter_context
    result = _enter(cm)
             ^^^^^^^^^^
/usr/lib/python3.13/unittest/mock.py:1497: in __enter__
    original, local = self.get_original()
                      ^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <unittest.mock._patch object at 0x7fc5cf0587d0>

    def get_original(self):
        target = self.getter()
        name = self.attribute

        original = DEFAULT
        local = False

        try:
            original = target.__dict__[name]
        except (AttributeError, KeyError):
            original = getattr(target, name, DEFAULT)
        else:
            local = True

        if name in _builtins and isinstance(target, ModuleType):
            self.create = True

        if not self.create and original is DEFAULT:
>           raise AttributeError(
                "%s does not have the attribute %r" % (target, name)
            )
E           AttributeError: <class 'opentelemetry.exporter.otlp.proto.grpc.trace_exporter.OTLPSpanExporter'> does not have the attribute '_stub'

/usr/lib/python3.13/unittest/mock.py:1467: AttributeError

mistersmee commented on 2025-07-16 15:55 (UTC)

@medaminezghal, the bug was fixed upstream, and the latest release, which I've pushed, 1.35.0-1 should fix it.

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.