Skip to main content

Wrapper para trabalhar com a API do Cloud Logging

Procedimento para upload no Pypi

Pré requisitos

Instalar pacotes python python3 -m pip install --upgrade setuptools build wheel twine

Build e enviar ao PYPI

python3 -m build

python3 -m twine upload dist/*

Instalar o pacote no projeto

pip install fastapi-skywalking-trace

Utilização da biblioteca

Essa biblioteca espera que você passe o schema dos dados da tabela

Aconselho criar um arquivo de schema.py ou model.py onde seja definido a estrutura de dados da tabela.

Instanciar o Middleware

Com o schema definido, você deve instanciar um classe

from starlette.middleware import Middleware
from fastapi_skywalking_trace.middleware import SkywalkingMiddleware
middlewares = [
    Middleware(
        SkywalkingMiddleware,
        service_name='extractor',
        collector_address='35.266.138.244:15870',
        protocol = 'http'
    )
]

app = FastAPI(
    title='Iris Typification', 
    openapi_url="/api/v1/openapi.json",
    middleware=middlewares
    )

Download files

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

Source Distribution

fastapi-skywalking-trace-0.0.1.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

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

fastapi_skywalking_trace-0.0.1-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file fastapi-skywalking-trace-0.0.1.tar.gz.

File metadata

  • Download URL: fastapi-skywalking-trace-0.0.1.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

File hashes

Hashes for fastapi-skywalking-trace-0.0.1.tar.gz
Algorithm Hash digest
SHA256 47c6a5aa3ecd3b653a8d80570a1a6420edbf07fd5415ed4996b041c3952259e8
MD5 f0b63aea2f7575e73ee41d06f4172c78
BLAKE2b-256 78d7470ea4fcaabf6c62d544bfeb42e8e970b86f9a95dafd8f72b01cfc63d3f2

See more details on using hashes here.

File details

Details for the file fastapi_skywalking_trace-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: fastapi_skywalking_trace-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

File hashes

Hashes for fastapi_skywalking_trace-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4da50e1f566c5f0080933b3dd47ce2baf1ef21ebc1eae01ebea02c9782955932
MD5 2fa2f3789fada5afc1852e8a8e6d365a
BLAKE2b-256 b0861646fc7b71ced875f3d6025e2099591c3cf05cf84c9e8a5cb7118e7fd873

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 files

Supported by

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