Skip to content

Support include message key to metadata#1239

Merged
shibd merged 1 commit intostreamnative:masterfrom
shibd:msg_key
Jul 16, 2025
Merged

Support include message key to metadata#1239
shibd merged 1 commit intostreamnative:masterfrom
shibd:msg_key

Conversation

@shibd
Copy link
Member

@shibd shibd commented Jul 15, 2025

Motivation

Support include message key to metadata

Modifications

  • Support include message key to metadata

Verifying this change

  • testExtractedMetadata will cover this change.
  • Integration test, send to S3 data like:
{
	"name": "test22",
	"age": 96,
	"email": "ass@gmail.com",
	"__message_metadata__": {
		"publishTime": 1752590253531,
		"messageKey": "key96",
		"schemaVersion": "AAAAAAAAAAA=",
		"messageId": "CKoJEGIYADAA",
		"topic": "persistent://public/default/s3-sink-partition-0",
		"properties": {}
	}
}

Documentation

Check the box below.

Need to update docs?

  • doc-required

    (If you need help on updating docs, create a doc issue)

  • no-need-doc

    (Please explain why)

  • doc

    (If this PR contains doc changes)

@shibd shibd requested a review from a team as a code owner July 15, 2025 14:39
@shibd shibd self-assigned this Jul 15, 2025
@github-actions github-actions bot added the doc This pr contains a document label Jul 15, 2025
@shibd shibd added release/4.0.6 and removed doc This pr contains a document labels Jul 15, 2025
@github-actions
Copy link

@shibd:Thanks for your contribution. For this PR, do we need to update docs?
(The PR template contains info about doc, which helps others know more about the changes. Can you provide doc-related info in this and future PR descriptions? Thanks)

@github-actions github-actions bot added the doc-info-missing This pr needs to mark a document option in description label Jul 15, 2025
@shibd shibd merged commit ce2b2f7 into streamnative:master Jul 16, 2025
3 checks passed
shibd added a commit that referenced this pull request Jul 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc-info-missing This pr needs to mark a document option in description release/4.0.6

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants