Custom TraceID in Elastic APM

Written by thamizh | Published 2020/08/01
Tech Story Tags: elastic-search | apm | golang | go | elasticsearch | http | elastic-apm | backend

TLDR Elastic APM is extensively useful in monitoring the lifecycle of a request in a system especially in µservices architecture. Golang is used in this article for code snippets but the concept can be extended to other languages as well. Elastic APM supports distributed tracing and it is OpenTracing compliant. The idea is to create a custom trace ID and expose that via header in response. Extracted TraceID can be logged and thus used in finding the request in APM dashboard. For example, I have used Traceid as the response header.via the TL;DR App

no story

Published by HackerNoon on 2020/08/01