%global _empty_manifest_terminate_build 0 Name: python-rust-python-jaeger-reporter Version: 0.1.22 Release: 1 Summary: A faster reporter for the python `jaeger-client` that reports spans in a native background thread. License: None URL: https://pypi.org/project/rust-python-jaeger-reporter/ Source0: https://mirrors.aliyun.com/pypi/web/packages/b4/fb/fc79b83698308121797745e5bef4233537299d6747c4546c5734bc27c2ab/rust_python_jaeger_reporter-0.1.22.tar.gz BuildArch: noarch %description [![PyPI](https://img.shields.io/pypi/v/maturin.svg)](https://pypi.org/project/rust-python-jaeger-reporter/) [![PyPI - Format](https://img.shields.io/pypi/format/rust-python-jaeger-reporter)](https://pypi.org/project/rust-python-jaeger-reporter/) A faster reporter for the python [`jaeger-client`](https://pypi.org/project/jaeger-client/) that reports spans in a native background thread. This is relatively untested, so use at your own risk! (You may want to manually wrap this class in python so that calls to `report_span` cannot fail). Usage: ```python from jaeger_client import Config import opentracing from rust_python_jaeger_reporter import Reporter # The standard config for jaeger. No need to change anything here. config = Config( config={ 'sampler': { 'type': 'const', 'param': 1, }, }, service_name='your-app-name', ) # Create the rust reporter. reporter = Reporter(config={"agent_host_name": "127.0.0.1", "agent_port": 6831}) # Create the tracer and install it as the global tracer. # # *Note*: This invocation doesn't support throttling or the remote sampler. tracer = config.create_tracer(reporter, config.sampler) opentracing.set_global_tracer(tracer) ``` %package -n python3-rust-python-jaeger-reporter Summary: A faster reporter for the python `jaeger-client` that reports spans in a native background thread. Provides: python-rust-python-jaeger-reporter BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip %description -n python3-rust-python-jaeger-reporter [![PyPI](https://img.shields.io/pypi/v/maturin.svg)](https://pypi.org/project/rust-python-jaeger-reporter/) [![PyPI - Format](https://img.shields.io/pypi/format/rust-python-jaeger-reporter)](https://pypi.org/project/rust-python-jaeger-reporter/) A faster reporter for the python [`jaeger-client`](https://pypi.org/project/jaeger-client/) that reports spans in a native background thread. This is relatively untested, so use at your own risk! (You may want to manually wrap this class in python so that calls to `report_span` cannot fail). Usage: ```python from jaeger_client import Config import opentracing from rust_python_jaeger_reporter import Reporter # The standard config for jaeger. No need to change anything here. config = Config( config={ 'sampler': { 'type': 'const', 'param': 1, }, }, service_name='your-app-name', ) # Create the rust reporter. reporter = Reporter(config={"agent_host_name": "127.0.0.1", "agent_port": 6831}) # Create the tracer and install it as the global tracer. # # *Note*: This invocation doesn't support throttling or the remote sampler. tracer = config.create_tracer(reporter, config.sampler) opentracing.set_global_tracer(tracer) ``` %package help Summary: Development documents and examples for rust-python-jaeger-reporter Provides: python3-rust-python-jaeger-reporter-doc %description help [![PyPI](https://img.shields.io/pypi/v/maturin.svg)](https://pypi.org/project/rust-python-jaeger-reporter/) [![PyPI - Format](https://img.shields.io/pypi/format/rust-python-jaeger-reporter)](https://pypi.org/project/rust-python-jaeger-reporter/) A faster reporter for the python [`jaeger-client`](https://pypi.org/project/jaeger-client/) that reports spans in a native background thread. This is relatively untested, so use at your own risk! (You may want to manually wrap this class in python so that calls to `report_span` cannot fail). Usage: ```python from jaeger_client import Config import opentracing from rust_python_jaeger_reporter import Reporter # The standard config for jaeger. No need to change anything here. config = Config( config={ 'sampler': { 'type': 'const', 'param': 1, }, }, service_name='your-app-name', ) # Create the rust reporter. reporter = Reporter(config={"agent_host_name": "127.0.0.1", "agent_port": 6831}) # Create the tracer and install it as the global tracer. # # *Note*: This invocation doesn't support throttling or the remote sampler. tracer = config.create_tracer(reporter, config.sampler) opentracing.set_global_tracer(tracer) ``` %prep %autosetup -n rust_python_jaeger_reporter-0.1.22 %build %py3_build %install %py3_install install -d -m755 %{buildroot}/%{_pkgdocdir} if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi pushd %{buildroot} if [ -d usr/lib ]; then find usr/lib -type f -printf "\"/%h/%f\"\n" >> filelist.lst fi if [ -d usr/lib64 ]; then find usr/lib64 -type f -printf "\"/%h/%f\"\n" >> filelist.lst fi if [ -d usr/bin ]; then find usr/bin -type f -printf "\"/%h/%f\"\n" >> filelist.lst fi if [ -d usr/sbin ]; then find usr/sbin -type f -printf "\"/%h/%f\"\n" >> filelist.lst fi touch doclist.lst if [ -d usr/share/man ]; then find usr/share/man -type f -printf "\"/%h/%f.gz\"\n" >> doclist.lst fi popd mv %{buildroot}/filelist.lst . mv %{buildroot}/doclist.lst . %files -n python3-rust-python-jaeger-reporter -f filelist.lst %dir %{python3_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog * Fri Jun 09 2023 Python_Bot - 0.1.22-1 - Package Spec generated