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

#3095 AMQP 1.0 Output - Support for message body type #3096

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

timo102
Copy link

@timo102 timo102 commented Dec 19, 2024

See github issue for an explanation: #3095

The word "opaque" is mentioned in the documentation (https://docs.oasis-open.org/amqp/core/v1.0/os/amqp-core-messaging-v1.0-os.html#type-data); that is why I chose this word for the configuration option.

How to test

You need a broker with AMQP 1 support. Example: Apache ActiveMQ with docker-compose:

  activemq:
    container_name: activemq
    image: apache/activemq-classic:5.18.3
    restart: always
    ports:
      - 8161:8161
      - 5673:5672

Configuration to insert string messages:

input:
  generate:
    interval: '@every 2s'
    mapping: root = {"id":uuid_v4(),"a":"а, е, ё, и, о, у, ы, э, ю, я","c":"幸福","b":"äöüÄÖÜßabc"}

output:
  amqp_1:
    urls: [ amqp://localhost:5673/ ]
    target_address: DEMOQUEUE
    max_in_flight: 64
    content_type: string
    sasl:
      mechanism: anonymous
      user: ""
      password: ""
    metadata:
      exclude_prefixes: [ "demo" ]

Reading the messages again:

input:
  amqp_1:
    urls: [ amqp://localhost:5673/ ]
    source_address: "DEMOQUEUE"
    sasl:
      mechanism: anonymous
      user: ""
      password: ""

output:
  stdout:
    codec: lines

@CLAassistant
Copy link

CLAassistant commented Dec 19, 2024

CLA assistant check
All committers have signed the CLA.

@timo102 timo102 marked this pull request as ready for review December 19, 2024 17:40
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