diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-05-29 12:22:41 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-05-29 12:22:41 +0000 |
| commit | 4a4111f97e6e3fca8be4b6cf41e5cc3e65e383c5 (patch) | |
| tree | b0fdd5d0230ad80305208172688305f0684a6e4b | |
| parent | d74379a5986aa1bd3417509ee4863916753bb68a (diff) | |
automatic import of python-rust-python-jaeger-reporter
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-rust-python-jaeger-reporter.spec | 150 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 152 insertions, 0 deletions
@@ -0,0 +1 @@ +/rust_python_jaeger_reporter-0.1.22.tar.gz 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 +[](https://pypi.org/project/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 +[](https://pypi.org/project/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 +[](https://pypi.org/project/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 <Python_Bot@openeuler.org> - 0.1.22-1 +- Package Spec generated @@ -0,0 +1 @@ +73ffbe6923a6a73c4b9b18145f8449d7 rust_python_jaeger_reporter-0.1.22.tar.gz |
