otlp-arrow-library 0.6.4

Cross-platform Rust library for receiving OTLP messages via gRPC and writing to Arrow IPC files
Documentation
1
2
3
4
5
6
7
8
9
10
11
�

S�"i���r�dZddlZddlmcmZddlZddlZddl	Z	d�Z
edk(re	je
g�yy)zUnit test for metrics export�Nc���ddl}tj�5}|j|d��}igd�}|j	|�|j�|j
�ddd�y#1swYyxYw)zTest exporting metricsrN�)�
output_dir�write_interval_secs)�resource�
scope_metrics)�otlp_arrow_library�tempfile�TemporaryDirectory�
PyOtlpLibrary�export_metrics�flush�shutdown)r	�tmpdir�library�metrics_dicts    �M/Users/mark.olliver/GIT/otlp-rust-service/tests/python/test_metrics_export.py�test_export_metricsrsr���	�	$�	$�	&�&�$�2�2�� !�3�
����
��	���|�,�	�
�
��	����/
'�	&�	&�s�A
A,�,A5�__main__)�__doc__�builtins�@py_builtins�_pytest.assertion.rewrite�	assertion�rewrite�
@pytest_arr
�os�pytestr�__name__�main�__file__��r�<module>r$s9��"����	�
��<�z���F�K�K��
��r#