Hello everyone! I hope this video has helped solve your questions and issues. This video is shared because a solution has been found for the question/problem. I create videos for questions that have solutions. If you have any other issues, feel free to reach out to me on Instagram: / ky.emrah
Below, you can find the text related to the question/problem. In the video, the question will be presented first, followed by the answers. If the video moves too fast, feel free to pause and review the answers. If you need more detailed information, you can find the necessary sources and links at the bottom of this description. I hope this video has been helpful, and even if it doesn't directly solve your problem, it will guide you to the source of the solution. I'd appreciate it if you like the video and subscribe to my channel!How To Forward Elastic APM to Golang Plugin [KrakenD]
I implemented the Elastic APM Go Agent on Lura's gin router. Lura is a Framework used by KrakenD. I use it on gin middleware:
Lura
KrakenD
endpointGroup.Use(apmgin.Middleware(r.cfg.Engine))
endpointGroup.Use(apmgin.Middleware(r.cfg.Engine))
The problem is, that the instrumentation only traces the HTTP request. It looks like this on Kibana:
I read that APM Go Agent doesn't support the instrumentation. So I want to add a manual APM span on several transactions like cache operation, etc. The problem is I want to add the APM span on the Go plugin, and it doesn't send any data to my APM server. I guess that the request lifecycle is not passed through the go plugin. I've tried to create a new APM instance and pass the APM context to go plugin but it doesn't work. How do I achieve it?
Tags: go,elastic-apm,krakendSource of the question:
https://stackoverflow.com/questions/7...
Question and source license information:
https://meta.stackexchange.com/help/l...
https://stackoverflow.com/