- Notifications
You must be signed in to change notification settings - Fork0
Custom otelcol-contrib with exporter to telegram. And handler for loguru
License
NotificationsYou must be signed in to change notification settings
s71m/opentelemetry-loguru-telegram
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
For enabling telegram exporter need to build custom otelcol-contrib, how described here:readme_otelcol_contrib.md
After that add this section to etc/otelcol-contrib/config.yaml
exporters:telegram:enabled:truebot_token:"${TELEGRAM_BOT_TOKEN}"chat_id:"${TELEGRAM_CHAT_ID}"max_message_length:4096batch_enabled:true# Enable/disable batching functionalitybatch_timeout:5s# Time to wait before sending a batchbatch_size:10# Number of messages to accumulate before sending# channels section to support message routing by severity or channelchannels: -name:"ERROR"message_thread_id:4severities:["WARNING", "ERROR", "CRITICAL"] -name:"INFO"message_thread_id:-1severities:["DEBUG", "INFO", "SUCCESS"] -name:"TRADE"message_thread_id:2
And example of tracing and logging in demo files:demo_tracer.pydemo_logger.py
About
Custom otelcol-contrib with exporter to telegram. And handler for loguru
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
No releases published
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.