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

Extended service information for non-consumer services #206

Merged
merged 7 commits into from
Feb 28, 2023

Conversation

psrok1
Copy link
Member

@psrok1 psrok1 commented Feb 21, 2023

It would be nice to have version information also for looping producers (feeders), log consumers and other services that are part of Karton pipeline.

In this PR I'm adding these informations as a part of client name in the following URI like format:

karton.producer?karton_version=5.1.0&service_version=1.0.0

Client name is currently used only by consumers to count the replicas and track for abandoned non-persistent queues, so it's not a breaking change if we include extra information for non-consumers. Information is included to client name only if KartonBase.with_service_info class attribute is set to True (False by default).

Attached version information can be then displayed in Karton Dashboard (see also CERT-Polska/karton-dashboard#72)

image

karton/core/backend.py Outdated Show resolved Hide resolved
karton/core/backend.py Outdated Show resolved Hide resolved
karton/core/backend.py Outdated Show resolved Hide resolved
karton/core/backend.py Show resolved Hide resolved
psrok1 and others added 2 commits February 27, 2023 12:34
Co-authored-by: Michał Praszmo <michalpr@cert.pl>
@psrok1 psrok1 requested a review from nazywam February 27, 2023 12:41
karton/core/backend.py Outdated Show resolved Hide resolved
Co-authored-by: Michał Praszmo <michalpr@cert.pl>
@psrok1 psrok1 merged commit 46e39ef into master Feb 28, 2023
@psrok1 psrok1 deleted the feature/service-info branch February 28, 2023 15:27
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