Skip to content

Skip telemetry writes when no database is configured - #66

Draft
nickhuo wants to merge 1 commit into
mainfrom
jiajunh/can-283-deploy-logs-a-sqlalchemy-parse-error-every-5s-when-no
Draft

Skip telemetry writes when no database is configured#66
nickhuo wants to merge 1 commit into
mainfrom
jiajunh/can-283-deploy-logs-a-sqlalchemy-parse-error-every-5s-when-no

Conversation

@nickhuo

@nickhuo nickhuo commented Sep 2, 2026

Copy link
Copy Markdown
Collaborator

If we assume the database URL is a prerequisite, we can ignore this pr. @Saaketh0 @iidsample

With no database configured, every metrics poll tried to build a SQLAlchemy engine from the string ‎"None". It failed the same way every 5 seconds — ‎Could not parse SQLAlchemy URL from given URL string — burying the errors operators actually need to see.

Skip telemetry when there’s no database and fix URL resolution

With no `database` in the controller config, every metrics poll built an
engine from the string "None", so SQLAlchemy raised "Could not parse
SQLAlchemy URL from given URL string" once per instance every 5 seconds.

Telemetry has nowhere to go without a database, so the writes -- and the
metrics that only exist to feed them -- are now skipped, and the fact is
stated once at startup.
@coderabbitai

coderabbitai Bot commented Sep 2, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@nickhuo nickhuo changed the title [CAN-283] Skip telemetry writes when no database is configured Skip telemetry writes when no database is configured Sep 3, 2026

Saaketh0 commented Sep 3, 2026

Copy link
Copy Markdown
Collaborator

This doesn't look like the OTLP exporter branch? The telemetry writes you are skipping won't be used in the future

Saaketh0 commented Sep 3, 2026

Copy link
Copy Markdown
Collaborator

I just tagged Felipe somewhere about this but I can't find it lol, but if UI doesn't pull from that DB anymore you can just remove the code instead of adding a skip file from the telemetry_logger.py

Saaketh0 commented Sep 3, 2026

Copy link
Copy Markdown
Collaborator

The agent metrics doesn't currently have a OTLP reciever though so just remove the runtime_information table logic

@nickhuo

nickhuo commented Sep 3, 2026

Copy link
Copy Markdown
Collaborator Author

This doesn't look like the OTLP exporter branch? The telemetry writes you are skipping won't be used in the future

What is SQLAlchemy used for here?

The purpose of this PR is to keep the log from polling every five seconds and flooding other error msg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants