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

Export newExceptionTelemetry with skip #47

Open
talsheldon opened this issue Aug 16, 2020 · 1 comment
Open

Export newExceptionTelemetry with skip #47

talsheldon opened this issue Aug 16, 2020 · 1 comment

Comments

@talsheldon
Copy link

I have some abstractions on the telemetries functions, thus the "Failed method" will always be the abstractions, and not the actual failed method.

If I'll set the skip to 3, then it will ignore my abstraction methods in the call stack, and I will get my desired output.

Currently I'm setting the skip=3 by explicitly defining ExceptionTelemetry.

Any reason the skip argument shouldn't be exported?

Using ApplicationInsights-Go v0.4.3 on go1.13.

Thanks

@jjjordanmsft
Copy link
Contributor

Apologies, this came in while I was on leave.

Perhaps it ought to be, but GetCallstack is exported so as a workaround you could call it after NewExceptionTelemetry (after, i suppose, incurring a bit of additional overhead).

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

No branches or pull requests

2 participants