Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add remaining metrics for message reliability #64

Merged
merged 4 commits into from
Oct 1, 2024

Conversation

adklempner
Copy link
Collaborator

@adklempner adklempner commented Oct 1, 2024

Adds the following metrics:

  • dial failures
  • missed messages
  • missed messages relevant to the user
  • sent messages which were successfully confirmed

CONSTRAINT dialFailure_unique UNIQUE (recordId, errorType, protocols, timestamp)
);

ALTER TABLE dialFailure ADD CONSTRAINT fk_dialFailure_telemetryRecord
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't there be a foreign key constraint for dial_error_types as well? Just to make sure we don't insert non-existant error types?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added this

errorMsg TEXT,
protocols TEXT NOT NULL,
timestamp INTEGER NOT NULL,
CONSTRAINT dialFailure_unique UNIQUE (recordId, errorType, protocols, timestamp)
Copy link
Member

@vpavlin vpavlin Oct 1, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this one is missing in the test_utils.go cleanup

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems to work without it but I added it anyways

Copy link
Member

@vpavlin vpavlin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left some comments, otherwise LGTM

@adklempner adklempner merged commit 4bdfc52 into master Oct 1, 2024
3 checks passed
@adklempner adklempner deleted the feat/message-reliability branch October 1, 2024 21:48
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