You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
The application we are trying to instrument is sending a command through AWS SQS when an HTTP endpoint is hit. The command will then got picked up by a lambda handler.
We are following Message queue guide for sending the traceparent over to the SQS handler. The handler will attach the trace parent to the handler lifecycle and report to APM with the transaction created from the HTTP endpoint.
However, we also got auto instrumentation enabled. So when our lambda handler runs, there is already a transaction created by apm agent with a generated transaction ID.
I want a way to set my trace parent for a given transaction.
Describe the solution you'd like
The GenericSpan type (inherited by Transaction and Span) already got setParentSpanfunction in it. If this API is exposed, I can then solve the problem and correlate transactions correctly.
Describe alternatives you've considered
I tried to create a new transaction and attaching the trace parent I want to use. But that breaks kibana and report no child span inside the transaction. Kibana seems picking up the transaction generated by auto instrumentation.
I could disable auto instrumentation but that would be too much work from our end.
Additional context
I am opening this issue from the comment of #2885 (comment).
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
The application we are trying to instrument is sending a command through AWS SQS when an HTTP endpoint is hit. The command will then got picked up by a lambda handler.
We are following Message queue guide for sending the traceparent over to the SQS handler. The handler will attach the trace parent to the handler lifecycle and report to APM with the transaction created from the HTTP endpoint.
However, we also got auto instrumentation enabled. So when our lambda handler runs, there is already a transaction created by apm agent with a generated transaction ID.
I want a way to set my trace parent for a given transaction.
Describe the solution you'd like
The
GenericSpan
type (inherited byTransaction
andSpan
) already gotsetParentSpan
function in it. If this API is exposed, I can then solve the problem and correlate transactions correctly.Describe alternatives you've considered
I tried to create a new transaction and attaching the trace parent I want to use. But that breaks kibana and report no child span inside the transaction. Kibana seems picking up the transaction generated by auto instrumentation.
I could disable auto instrumentation but that would be too much work from our end.
Additional context
I am opening this issue from the comment of #2885 (comment).
The text was updated successfully, but these errors were encountered: