From 4a4111f97e6e3fca8be4b6cf41e5cc3e65e383c5 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Mon, 29 May 2023 12:22:41 +0000 Subject: automatic import of python-rust-python-jaeger-reporter --- python-rust-python-jaeger-reporter.spec | 150 ++++++++++++++++++++++++++++++++ 1 file changed, 150 insertions(+) create mode 100644 python-rust-python-jaeger-reporter.spec (limited to 'python-rust-python-jaeger-reporter.spec') diff --git a/python-rust-python-jaeger-reporter.spec b/python-rust-python-jaeger-reporter.spec new file mode 100644 index 0000000..b1b5833 --- /dev/null +++ b/python-rust-python-jaeger-reporter.spec @@ -0,0 +1,150 @@ +%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.nju.edu.cn/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 +* Mon May 29 2023 Python_Bot - 0.1.22-1 +- Package Spec generated -- cgit v1.2.3