semvec/pypi-packages huggingface dataset:
rjs 0.1.2
Redis json stroage.
License: MIT
Keywords: rjs

rjs
===

.. image:: https://travis-ci.org/appstore-zencore/rjs.svg?branch=master
    :target: https://travis-ci.org/appstore-zencore/rjs

Reids json storage.

Install
-------

::

    pip install rjs

Class & Methods
-----

1. rjs.JsonStorage

   a. update
   b. get
   c. delete
   d. delete_field


Example
-----

::

    from rjs import JsonStorage

    connection = make_redis_connect(config)
    storage = JsonStorage(connection)
    data1 = {
        "a": 1,
        "b": 2,
    }
    storage.update(data1)
    data2 = {
        "b": 3,
        "c": 4,
    }
    storage.update(data2)
    data3 = storage.get(key)
opentracing-prometheus 0.1.5
OpenTracing Jaeger and Prometheus integration
License: MIT
Keywords: opentracing jaeger prometheus

# OpenTracing Prometheus

An integration for opentracing and prometheus.
It exposes the same metrics as jaeger and prometheus for golang.

This package contains a PrometheusReporter and PrometheusMetricsFactory

The reporter is used to report on metrics based on span contents
The factory is used to report on metrics from jaeger itself.

There is also a wsgi middleware that combines all the options.

## Middleware

```python
from flask import Flask, make_response
from opentracing_prometheus import TracerMiddleware

import logging
import sys

app = Flask('prometheus-tracing')

logging.basicConfig(stream=sys.stderr)
log_level = logging.DEBUG
logging.getLogger('').handlers = []
logging.basicConfig(format='%(asctime)s %(message)s', level=log_level)

app.wsgi_app = TracerMiddleware(app)
log = logging.getLogger()

@app.route('/')
def fetch_hello_world():
  resp = make_response('Hello, World!')
  resp.headers['Content-Type'] = 'text/plain'
  return resp

if __name__ == '__main__':
  app.run(host='0.0.0.0', port=5000)

```

You can then make a few requests to localhost:5000 and check the metrics at: http://localhost:5000/metrics