Skip to main content

Send metrics to dedicated endpoint

Project description

install

pip install hfl-metrics

import

from metrics import metrics_middleware

use

from metrics import metrics_middleware
from fastapi import FastAPI, Request

app = FastAPI()
@app.middleware("http")
async def add_metrics(request: Request, call_next):
    return await metrics_middleware(request, call_next)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hfl_metrics-0.0.2.tar.gz (1.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hfl_metrics-0.0.2-py3-none-any.whl (1.7 kB view details)

Uploaded Python 3

File details

Details for the file hfl_metrics-0.0.2.tar.gz.

File metadata

  • Download URL: hfl_metrics-0.0.2.tar.gz
  • Upload date:
  • Size: 1.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.9

File hashes

Hashes for hfl_metrics-0.0.2.tar.gz
Algorithm Hash digest
SHA256 effdb5f9b2375f3c0f2f3eb2e8d4e76cbbd53c36d284094b5d8a0f735e1b9dac
MD5 838ccc735ab136f2bf1a20d6e9d1c498
BLAKE2b-256 2122eac46bb0b79652fb245775e99d6665671d62180ef6a54b28c6d81d129476

See more details on using hashes here.

File details

Details for the file hfl_metrics-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: hfl_metrics-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 1.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.9

File hashes

Hashes for hfl_metrics-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 408de5606bf15f6ee84f796d5f385a0375afe74d9c5cb425df140d7335f4b617
MD5 923152e37b5d0077e516e5342a93d6aa
BLAKE2b-256 ea193cfb3867ed7b53427e86992c8aa612a4bc9924f45d037f839d3572701c74

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page