Skip to content

feat(instrumentation-aws-sdk): inject trace context into Kinesis PutR…#3433

Open
mosheshaham-dash0 wants to merge 2 commits intoopen-telemetry:mainfrom
mosheshaham-dash0:instrument-kinesis-inject-context-v2
Open

feat(instrumentation-aws-sdk): inject trace context into Kinesis PutR…#3433
mosheshaham-dash0 wants to merge 2 commits intoopen-telemetry:mainfrom
mosheshaham-dash0:instrument-kinesis-inject-context-v2

Conversation

@mosheshaham-dash0
Copy link
Copy Markdown

Which problem is this PR solving?

  • This PR adds context propagation to kinesis records, to make it possible to link consumers to producers.

Short description of the changes

  • For PutRecord/PutRecords, the span kind is set to PRODUCER with semantic convention attributes (messaging.system, messaging.destination.name) and a send span name.
  • Trace context (traceparent) is injected into each record's Data field when the payload is valid JSON (both string and Uint8Array formats). Non-JSON payloads are left untouched.
  • Stream name extraction now also supports StreamARN (parsing the stream name from the ARN) in addition to StreamName.
  • Adds tests for PutRecord, PutRecords, ARN-based stream name extraction, and non-JSON data handling.

@mosheshaham-dash0 mosheshaham-dash0 requested a review from a team as a code owner March 13, 2026 12:56
@linux-foundation-easycla
Copy link
Copy Markdown

linux-foundation-easycla bot commented Mar 13, 2026

CLA Signed

The committers listed above are authorized under a signed CLA.

@mosheshaham-dash0 mosheshaham-dash0 force-pushed the instrument-kinesis-inject-context-v2 branch from 6ab70ea to cffe3bd Compare March 13, 2026 12:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants