Skip to content

Commit d5e8cd2

Browse files
Merge pull request #37 from rabbitmq/lukebakken/allow-clobber-timestamp_in_ms
Allow overwriting timestamps
2 parents 8b1312c + a06cdc0 commit d5e8cd2

File tree

7 files changed

+435
-213
lines changed

7 files changed

+435
-213
lines changed

.travis.yml

Lines changed: 0 additions & 61 deletions
This file was deleted.

Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
PROJECT = rabbitmq_message_timestamp
22
PROJECT_DESCRIPTION = RabbitMQ Message Timestamp
3+
RABBITMQ_VERSION ?= v3.11.x
34

45
define PROJECT_APP_EXTRA_KEYS
56
{broker_version_requirements, ["3.11.0"]}
@@ -18,4 +19,10 @@ ERLANG_MK_REPO = https://github.com/rabbitmq/erlang.mk.git
1819
ERLANG_MK_COMMIT = rabbitmq-tmp
1920

2021
include rabbitmq-components.mk
22+
23+
dep_amqp_client = git_rmq-subfolder rabbitmq-erlang-client $(RABBITMQ_VERSION)
24+
dep_rabbit_common = git_rmq-subfolder rabbitmq-common $(RABBITMQ_VERSION)
25+
dep_rabbit = git_rmq-subfolder rabbitmq-server $(RABBITMQ_VERSION)
26+
dep_rabbitmq_ct_client_helpers = git_rmq-subfolder rabbitmq-ct-client-helpers $(RABBITMQ_VERSION)
27+
dep_rabbitmq_ct_helpers = git_rmq-subfolder rabbitmq-ct-helpers $(RABBITMQ_VERSION)
2128
include erlang.mk

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,20 @@ rabbitmq-plugins enable rabbitmq_message_timestamp
3636
The plugin will then hook into the `basic.publish` process in order to
3737
add the current timestamp as seen by the broker.
3838

39+
## Always overwrite timestamps ##
40+
41+
This plugin will not overwrite an existing timestamp on a message. To always
42+
overwrite, create an `advanced.config` file for RabbitMQ with the following
43+
content, or add the `rabbitmq_message_timestamp` term to your existing file:
44+
45+
```
46+
[
47+
{rabbitmq_message_timestamp, [
48+
{overwrite_timestamps, true}
49+
]}
50+
].
51+
```
52+
3953
## Limitations ##
4054

4155
The plugin hooks into the `basic.publish` path, so expect a small

0 commit comments

Comments
 (0)