Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp