semvec/pypi-packages huggingface dataset:
opencensus-ext-soha-otel 1.0.6.8
OpenCensus Cyber Trace Exporter
License: Apache-2.0

OpenCensus Cyber Trace Exporter
============================================================================

Installation
------------

::

    pip install -i https://test.pypi.org/simple/ opencensus-ext-soha-otel

Usage
-----

The **OpenCensus Soha Otel Exporter** allows you to export `OpenCensus`_ traces to `CyberTrace`_.

.. _OpenCensus: https://github.com/census-instrumentation/opencensus-python/
.. _CyberTrace: https://cybertrace.sohatv.vn/

.. code:: python

    from sohaotel.ext.otel.trace_exporter import SohaOtelHttpExporter
    from opencensus.trace import tracer as tracer_module

    tracer = tracer_module.Tracer(exporter=SohaOtelHttpExporter(
        service_name='my service',
        retry_able: True,
    ))

    with tracer.span(name='hello'):
        print('Hello, World!')

References
----------

* `OpenCensus Project <https://opencensus.io/>`_
* `CyberTrace <https://cybertrace.sohatv.vn/>`_