krakend / krakend-ce

KrakenD Community Edition: High-performance, stateless, declarative, API Gateway written in Go.
https://www.krakend.io
Apache License 2.0
1.92k stars 452 forks source link

Pass Traceparent Header in custom http requests in lua scripts #921

Open crazy-stardusts opened 1 week ago

crazy-stardusts commented 1 week ago

I have opentelemetry configured in all my services.

Before every request goes to backend in krakend, I need to call an api A. Currently I am using lua script to call A, but traceid for that call A is different from rest of that flow. Upon banging my head for hours, I am unable to pass traceparent header to the request. I can pass traceparent header, if it is in the original request, though it is not my use case.

I want to access trace-id in lua scipt.

crazy-stardusts commented 1 week ago

I have experience in c++, java, python, js, though little experience in go. But I need this urgently, please guide me, how to contribute and setup and find the relevant files to make this change.