#9666 RabbitMQ + datagrepper : messages ID: please explain where msg-id-prefix comes from?
Closed: Fixed 3 years ago by astepano. Opened 3 years ago by astepano.

Hello,

Let's take a topic: org.fedoraproject.prod.copr.build.start

https://apps.fedoraproject.org/datagrepper/raw?topic=org.fedoraproject.prod.copr.build.start&delta=127800

https://apps.fedoraproject.org/datagrepper/id?id=2021-1ce3ddbc-d673-4d38-801f-9b6aaca21d5e&is_raw=true&size=extra-large

RabbitMQ-broker knew this message by ID: 1ce3ddbc-d673-4d38-801f-9b6aaca21d5e
But datagrepper knows this message by ID: 2021-1ce3ddbc-d673-4d38-801f-9b6aaca21d5e

I am trying to understand: why datagrepper has prefix: 2021-.

In rabbitmq application I do not have prefix.
How do I generate a http-link to datagrepper knowing only rabbitmq msg-id?
I know answer will be: just add a prefix: <year>-<rabbitmq-msg-id>.

Is there some implementation details? Thank you in advance for help.


@pingou thank you so much for quick help.

Metadata Update from @astepano:
- Issue close_status updated to: Fixed
- Issue status updated to: Closed (was: Open)

3 years ago

The year prefix was iirc just a way to find quickly out how old a message is/was.

Login to comment on this ticket.

Metadata