cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

AWS trace id and dynatrace distributed traces

shawner
Frequent Guest

Basic question : I am wondering if there is a way to have dynatrace use the AWS trace header x-amzn-trace-id as the traceid in distributed traces. 

We have AWS setup using a ALB and api gateway. The gateway calls an authorizer lambda and then calls the api endpoint lambda.
AWS will generate a x-amzn-trace-id that correlates to these two lambda calls. However dynatrace shows each of these as separate Trace Ids in the distributed traces.

 

If I supply a traceparent header to my request, then I see both requests in the trace having the same traceid.

We cannot simply create the w3c tracing headers as we don't own the calling application, so we would need to inject them somehow or make dynatace use the standard AWS trace headers.
My preference being using the AWS trace headers.

If there is not a way is there a document that describes how the oneagent processes the headers supplied to create the trace id in dynatrace? I assume there is some sort of order of precendece of x-dynatrace traceparent, etc. Maybe there is a clue there on how I could map the amz trace headers.

1 REPLY 1

ChadTurner
DynaMight Legend
DynaMight Legend

@shawner were to able to get this working?  it might be easier if you target that as an attribute? 

-Chad