Open manikmagar opened 2 years ago
This doesn't seem to be feasible. The RequestHeader representing the default header entries, does not have a public constructor or setters.
Hi @manikmagar I was trying to set the traceparent
as a logging variable but Anypoint Studio isn't able to find the properties for OTEL_TRACE_CONTEXT
.
I was trying to follow the instructions here: https://medium.com/@jromasanta/part-2-integrating-dynatrace-using-mulesoft-4-22da37c24d58
I've tried using 1.5.0
and 2.0.0-M3
but neither one is working. What am I doing wrong here?
Hi @zedwards14276, I assume this is a warning in the Anypoint Studio only. You can safely ignore that since that variable is inserted by the module at runtime.
While auto-injection isn't supported (see Limitations ), the HTTP Request Context Injection approach requires users to be aware of what header entries need to be added.
Depending on the propagators configured, the list of header entries could vary. This need for explicit entries needs to be avoided.
We could provide a dataweave module function ,eg
otel.getHttpHeaders()
which returns HTTP default headers compatible map, that users could add in default headers -