Skip to content

Traces are not propagated from kafka connect to mongoDB  #12261

@jiten686

Description

@jiten686

Describe the bug

I am using Mongo kafka sink connector to send the data from kafka topic to MongoDB. I have set following environment variables on server where my connector is running. I am using Opentelemetry JavaAgent 2.6.0.

export JAVA_TOOL_OPTIONS=-javaagent:/otel_java_agent/opentelemetry-javaagent.jar
export OTEL_TRACES_EXPORTER=otlp
export OTEL_METRICS_EXPORTER=none
export OTEL_LOGS_EXPORTER=none
export OTEL_EXPORTER_OTLP_PROTOCOL=grpc
export OTEL_PROPAGATORS=tracecontext,baggage
export OTEL_EXPORTER_OTLP_ENDPOINT=http://...**

But I am not able to see the traces from kafka-connector to Mongo DB.

Steps to reproduce

Set the environment variable as per Description.
Run the Mongo kafka sink connect on server.

Expected behavior

Traces should be propagate in a single trace to the database.

Actual behavior

Traces are not propagated in a single trace to the database.

Javaagent or library instrumentation version

Opentelemetry JavaAgent 2.6.0

Environment

JDK:
OS:

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    contribution welcomeRequest makes sense, maintainers probably won't have time, contribution would be welcomeenhancementNew feature or requestnew instrumentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions