Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Track time-in-queue for AWS ALB via the X-Amzn-Trace-Id header #196

Closed
itsderek23 opened this issue May 30, 2018 · 6 comments
Closed

Track time-in-queue for AWS ALB via the X-Amzn-Trace-Id header #196

itsderek23 opened this issue May 30, 2018 · 6 comments
Assignees

Comments

@itsderek23
Copy link
Contributor

itsderek23 commented May 30, 2018

I believe we're unable to track time-in-queue for apps that directly receive traffic from AWS ALBs as these requests lack a supported x-request-start-like header.

However, it looks like we can parse this information from the X-Amzn-Trace-Id header.

Example:

X-Amzn-Trace-Id: Self=1-67891234-12456789abcdef012345678;Root=1-67891233-abcdef012345678912345678;CalledFrom=app

67891234 is the epoch time, in seconds.

Our parsing logic would need to be updated as this is a significantly different format.

@dlanderson dlanderson changed the title Track time-in-queue for AWS ELB via the X-Amzn-Trace-Id header Track time-in-queue for AWS ALB via the X-Amzn-Trace-Id header May 30, 2018
@cschneid cschneid assigned cschneid and naohiro-t and unassigned cschneid Sep 27, 2018
@nateberkopec
Copy link

Actually would this even be useful? Time since epoch in seconds isn't high-resolution enough.

@ioquatix
Copy link
Contributor

You are right, it doesn't seem to be very precise, is that actually the state of it today?

@emilyst
Copy link

emilyst commented May 30, 2019

Seems like a request for X-Request-Start has been hanging out for nine years: https://forums.aws.amazon.com/message.jspa?messageID=396283

@scalp42
Copy link

scalp42 commented Jul 5, 2019

We're running behind AWS ALBs and anything would help us.

@nateberkopec
Copy link

The only thing I've seen work is for you to run your own reverse proxy on each individual instance. e.g nginx, passenger standalone, apache, etc.

@dlanderson
Copy link
Contributor

Measuring in seconds is too granular and it doesn't look like AWS will be adding ms any time soon. Closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants