{"id":27154360,"url":"https://github.com/s71m/opentelemetry-loguru-telegram","last_synced_at":"2025-04-08T17:27:15.732Z","repository":{"id":265105138,"uuid":"895152191","full_name":"s71m/opentelemetry-loguru-telegram","owner":"s71m","description":"Custom otelcol-contrib with exporter to telegram. And handler for loguru","archived":false,"fork":false,"pushed_at":"2025-04-08T02:59:07.000Z","size":19,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-08T03:33:10.879Z","etag":null,"topics":["loguru","opentelemetry","opentelemetry-python","otelcol","telegram"],"latest_commit_sha":null,"homepage":"","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/s71m.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}},"created_at":"2024-11-27T16:47:09.000Z","updated_at":"2025-04-08T02:59:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"04e571b8-703b-43a0-9b3d-074a9f406a9b","html_url":"https://github.com/s71m/opentelemetry-loguru-telegram","commit_stats":null,"previous_names":["s71m/opentelemetry-loguru-telegram"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s71m%2Fopentelemetry-loguru-telegram","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s71m%2Fopentelemetry-loguru-telegram/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s71m%2Fopentelemetry-loguru-telegram/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s71m%2Fopentelemetry-loguru-telegram/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/s71m","download_url":"https://codeload.github.com/s71m/opentelemetry-loguru-telegram/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247890950,"owners_count":21013447,"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":["loguru","opentelemetry","opentelemetry-python","otelcol","telegram"],"created_at":"2025-04-08T17:27:15.105Z","updated_at":"2025-04-08T17:27:15.722Z","avatar_url":"https://github.com/s71m.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\nFor enabling telegram exporter need to build custom otelcol-contrib, how described here:\n[readme_otelcol_contrib.md](docs%2Freadme_otelcol_contrib.md)\n\nAfter that add this section to etc/otelcol-contrib/config.yaml \n\n```yaml\nexporters:\n    telegram:  \n        enabled: true  \n        bot_token: \"${TELEGRAM_BOT_TOKEN}\"  \n        chat_id: \"${TELEGRAM_CHAT_ID}\"  \n        max_message_length: 4096  \n        batch_enabled: true    # Enable/disable batching functionality  \n        batch_timeout: 5s       # Time to wait before sending a batch  \n        batch_size: 10           # Number of messages to accumulate before sending  \n        # channels section to support message routing by severity or channel  \n        channels:  \n            - name: \"ERROR\"  \n              message_thread_id: 4  \n              severities: [\"WARNING\", \"ERROR\", \"CRITICAL\"]  \n            - name: \"INFO\"  \n              message_thread_id: -1  \n              severities: [\"DEBUG\", \"INFO\", \"SUCCESS\"]  \n            - name: \"TRADE\"  \n              message_thread_id: 2\n```\nAnd example of tracing and logging in demo files:\n [demo_tracer.py](demo_tracer.py) [demo_logger.py](demo_logger.py)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fs71m%2Fopentelemetry-loguru-telegram","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fs71m%2Fopentelemetry-loguru-telegram","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fs71m%2Fopentelemetry-loguru-telegram/lists"}