{"id":18352367,"url":"https://github.com/plughacker/pytelemety","last_synced_at":"2025-04-10T00:38:18.178Z","repository":{"id":204906676,"uuid":"712904033","full_name":"plughacker/pytelemety","owner":"plughacker","description":null,"archived":false,"fork":false,"pushed_at":"2024-04-18T18:00:09.000Z","size":25,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-10T00:38:14.576Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/plughacker.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-01T12:52:34.000Z","updated_at":"2023-11-01T14:06:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"6a206005-e906-447f-9a74-d8c659dd803b","html_url":"https://github.com/plughacker/pytelemety","commit_stats":null,"previous_names":["plughacker/pytelemety"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plughacker%2Fpytelemety","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plughacker%2Fpytelemety/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plughacker%2Fpytelemety/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plughacker%2Fpytelemety/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/plughacker","download_url":"https://codeload.github.com/plughacker/pytelemety/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248138008,"owners_count":21053775,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-11-05T21:35:45.023Z","updated_at":"2025-04-10T00:38:18.163Z","avatar_url":"https://github.com/plughacker.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pytelemetry\n\nA simple and default open telemetry log formatter\n\n## Quick Start\n\n* Install\n```bash\npip install git+https://github.com/plughacker/pytelemety.git@v0.0.1\n```\n\n* Create an env var\n\n```\nNEW_RELIC_APP_NAME=your_project_name\nNEW_RELIC_ENVIRONMENT=development | production | None\nSERVICE_VERSION=0.0.1\nLOGGER_SAVE_TO_FILE=True | False # When True salve logs in app.\nLOGGER_LEVEL=DEBUG\n```\nor\n```\nSERVICE_NAME=your_project_name\nSERVICE_ENVIRONMENT=development | production | None\nSERVICE_VERSION=0.0.1\nLOGGER_SAVE_TO_FILE=True | False # When True salve logs in app.log file\n```\n\n* Import in your project\n\n```python\nfrom pytelemetry import create_logger\n\nlogger = create_logger('My Controller') # returns default python logger\n\nlogger.error('division by zero')\n\n```\n\nOutput\n```json\n{\"Timestamp\": 1698414960, \"TraceId\": \"a0909332-03a7-4ff5-84b1-7373793042ce\", \"SeverityText\": \"ERROR\", \"SeverityNumber\": 17, \"Body\": \"division by zero\", \"Resource\": {\"service_name\": \"service_not_named\", \"service_version\": \"0.0.1\", \"service_environment\": null}, \"InstrumentationScope\": \"Class or mehtod name\", \"Attributes\": []}\n```\n\n\n[Baseado em](https://github.com/diego-malga/pytelemetry)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplughacker%2Fpytelemety","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fplughacker%2Fpytelemety","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplughacker%2Fpytelemety/lists"}