Skip to content

Instrumentation for trace profiling #5260

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

Closed
wants to merge 15 commits into from

Conversation

ethercrow
Copy link
Contributor

@ethercrow ethercrow commented Apr 19, 2020

With these changes you can run stack with +RTS -l and then inspect the produced eventlog in trace profiling tools, it looks like this:

Screen Shot 2020-04-19 at 12 01 11 AM

or this:

Screen Shot 2020-04-24 at 10 12 17 PM

The second picture makes you wonder why there is a 85 millisecond long GC before even starting the build.

@ethercrow ethercrow force-pushed the opentelemetry branch 3 times, most recently from 05551ec to 284c2bb Compare April 24, 2020 09:26
@ethercrow ethercrow marked this pull request as ready for review April 24, 2020 20:15
@ethercrow ethercrow changed the title [WIP] Instrumentation for trace profiling Instrumentation for trace profiling Apr 24, 2020
@snoyberg
Copy link
Contributor

snoyberg commented May 5, 2020

I'm not familiar with opentelemetery. Is there some impact of this on normal users of Stack? Also, there's a merge conflict with master at this point.

@ethercrow
Copy link
Contributor Author

Is there some impact of this on normal users of Stack?

There should be none. Time overhead from this instrumentation is on an order of microsecond per instrumented span.

@ethercrow
Copy link
Contributor Author

A fresh screenshot

Screen Shot 2020-07-02 at 9 28 34 PM

@snoyberg
Copy link
Contributor

snoyberg commented Jul 5, 2020

Looks like some stack.yaml updates are needed, please see the build failures.

@snoyberg
Copy link
Contributor

snoyberg commented Aug 2, 2020

There are still build failures from stack.yaml issues

@mpilgrem
Copy link
Member

@ethercrow, are you able to get this pull request to pass the CI checks?

@ethercrow
Copy link
Contributor Author

I am not, sorry.

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

Successfully merging this pull request may close these issues.

3 participants