Skip to content

This repo is an extension fromt he original to instrument the code using Open Telemetry and otel-collector

Notifications You must be signed in to change notification settings

jairoandrescastaneda/observability-fastapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Extension

The original project can be found here. This repo is an extension to instrument the code using Open Telemetry and otel-collector

Books API

A simple CRUD API created with FastAPI and SQLAlchemy for PostgreSQL

Available APIs

It is recommended to test the available APIs from [GET] /docs

  • [GET] / - Root (Check API status)
  • [POST] /books - Create Book
  • [GET] /books/{id} - Find Book
  • [GET] /books - Get Books
  • [PUT] /books - Update Book
  • [DELETE] /books - Delete Book

Usage

  1. Install poetry
  2. Copy .env.sample to create .env and fill the environment variables accordingly
  3. Run poetry install to install dependencies
  4. Run poetry run uvicorn app.main:app to serve the app

(note: you'll need to have python installed)

About

This repo is an extension fromt he original to instrument the code using Open Telemetry and otel-collector

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published