{"id":31581051,"url":"https://github.com/ghbihuy123/astrotel","last_synced_at":"2026-05-14T12:34:34.339Z","repository":{"id":315527279,"uuid":"1059865976","full_name":"ghbihuy123/astrotel","owner":"ghbihuy123","description":"Astrotel is a dump easy Opentelemetry wrapper to send traces, logs of multiple application into OTEL collector","archived":false,"fork":false,"pushed_at":"2025-10-18T08:22:23.000Z","size":51,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-19T04:18:31.821Z","etag":null,"topics":["fastapi","jaeger","opentelemetry","python","signoz"],"latest_commit_sha":null,"homepage":"https://astrotel.readthedocs.io/en/latest/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ghbihuy123.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-19T04:10:02.000Z","updated_at":"2025-10-18T08:22:28.000Z","dependencies_parsed_at":"2025-09-19T06:35:14.038Z","dependency_job_id":"7be02aa3-4442-409b-81bb-21675d2d5d30","html_url":"https://github.com/ghbihuy123/astrotel","commit_stats":null,"previous_names":["ghbihuy123/astrotel"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/ghbihuy123/astrotel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghbihuy123%2Fastrotel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghbihuy123%2Fastrotel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghbihuy123%2Fastrotel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghbihuy123%2Fastrotel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ghbihuy123","download_url":"https://codeload.github.com/ghbihuy123/astrotel/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghbihuy123%2Fastrotel/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33025148,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-14T02:00:06.663Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["fastapi","jaeger","opentelemetry","python","signoz"],"created_at":"2025-10-05T21:52:31.791Z","updated_at":"2026-05-14T12:34:34.332Z","avatar_url":"https://github.com/ghbihuy123.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Astrotel\n\nAstrotel sending OpenTelemetry tracing and logging integration for Python applications into Signoz, Jaeger, OTEL Collector,... with support for FastAPI, Celery, MCP,... application\n\n\n## Installation\n\nInstall with pip (requires Python 3.12+):\n\n```sh\npip install astrotel[fastapi]\n```\n\nFor FastAPI support:\n\n```sh\npip install astrotel[fastapi]\n```\n\n## Usage\n\n### Basic Usage\n\n```python\nfrom astrotel.provider.fastapi import FastAPIOpentelemetryTracing\nfrom fastapi import FastAPI\n\napp = FastAPI()\ntracer = FastAPIOpentelemetryTracing()\ntracer.configure_tracing(app)\n```\n\n### Logging Integration\n\n```python\nimport logging\n\ntracer = FastAPIOpentelemetryTracing()\nlogging_handler = tracer.configure_logging_handler()\n\n# Attach handler to root logger\nlogging.basicConfig(\n    level=logging.INFO, \n    handlers=[logging_handler, logging.StreamHandler()]  # also keep console logs\n)\n\n# Attach handler to FastAPI's logger too\nuvicorn_logger = logging.getLogger(\"uvicorn\")\nuvicorn_logger.addHandler(logging_handler)\n\nuvicorn_logger = logging.getLogger(\"uvicorn.access\")\nuvicorn_logger.addHandler(logging_handler)\n\nfastapi_logger = logging.getLogger(\"fastapi\")\nfastapi_logger.addHandler(logging_handler)\n```\n\n## Configuration\n\nYou can configure Astrotel via environment variables or by creating environment variables:\n\n### Meaning\n- `OTEL_SERVICE_NAME`: Set service name\n- `OTEL_DEPLOYMENT_ENVIRONMENT`: Set deployment environment name\n- `OTEL_MODE`: Send to exporter by `http` or `grpc`\n- `OTEL_GRPC_ENDPOINT`: gRPC OTEL collector endpoint (default: `http://localhost:4317`)\n- `OTEL_HTTP_ENDPOINT`: HTTP OTEL collector endpoint (default: `http://localhost:4318`)\n- `OTEL_LOGS_SHIP_LEVEL`: Minimum log level to ship (`DEBUG`, `INFO`, `WARNING`, `ERROR`, `CRITICAL`)\n\n### For example\n\n```\nOTEL_SERVICE_NAME=my-service\nOTEL_DEPLOYMENT_ENVIRONMENT=production\nOTEL_MODE=grpc\nOTEL_GRPC_ENDPOINT=http://otel-collector:4317\nOTEL_HTTP_ENDPOINT=http://otel-collector:4318\nOTEL_LOGS_SHIP_LEVEL=INFO\n```\n\n## Documentation\n\nSee the [docs/](docs/index.rst) or build the documentation locally:\n\n```sh\nmake -C docs html\n```\n\n## Development\n\n- Lint: `make lint`\n- Format: `make format`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghbihuy123%2Fastrotel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fghbihuy123%2Fastrotel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghbihuy123%2Fastrotel/lists"}