Skip to content

feat: added support for @platformatic/kafka - #2751

Merged
abhilash-sivan merged 11 commits into
mainfrom
feat-platformatic-kafka
Sep 23, 2026
Merged

abhilash-sivan merged 11 commits into
mainfrom
feat-platformatic-kafka

Conversation

@abhilash-sivan

@abhilash-sivan abhilash-sivan commented Sep 9, 2026 •

Copy link
Copy Markdown
Contributor

refs https://jsw.ibm.com/browse/INSTA-113473

Summary

Adds OpenTelemetry-based tracing instrumentation for @platformatic/kafka using @platformatic/kafka-opentelemetry.
It maps producer operations as exit spans and consumer process operations as entry spans while handling W3C trace context propagation and span transformation into Instana spans.

Action plan:

Test results:

https://instana.rocks/s/KT_xjECIRZ6-Cq7Re6oeJg

Screenshot 2026-09-23 at 6 19 42 PM

@abhilash-sivan

Copy link
Copy Markdown
Contributor Author

waiting for nodejs/import-in-the-middle#290

@abhilash-sivan
abhilash-sivan marked this pull request as ready for review September 23, 2026 12:56
@abhilash-sivan
abhilash-sivan requested a review from a team as a code owner September 23, 2026 12:56
* the entry otel span will contain our Instana trace and parent information, which we have to
* extract and connect to our Instana spans to keep the correlation.
*/
module.exports.extractW3CTraceContext = (preparedData, otelSpan) => {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can add add a shared instrumentation helper later. No prio for now

Comment thread packages/core/package.json Outdated
kirrg001
kirrg001 previously approved these changes Sep 23, 2026

@kirrg001 kirrg001 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unblocking. One comment is important.

kirrg001
kirrg001 previously approved these changes Sep 23, 2026
@abhilash-sivan
abhilash-sivan enabled auto-merge (squash) September 23, 2026 13:21
}

// node bin/start-test-containers.js --zookeeper --kafka --kafka-topics
// Note: @platformatic/kafka is ESM-only. Run tests with RUN_ESM=true.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

qs: Why this condition here? I think you have to add this in currency.json.

Comment thread currencies.json Outdated

@aryamohanan aryamohanan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added comments

aryamohanan
aryamohanan previously approved these changes Sep 23, 2026
@abhilash-sivan
abhilash-sivan enabled auto-merge (squash) September 23, 2026 14:33
@abhilash-sivan
abhilash-sivan merged commit 998e341 into main Sep 23, 2026
106 of 115 checks passed
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.

3 participants