-
Notifications
You must be signed in to change notification settings - Fork 13
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
Improve context.runtime.file
when logtail
is called indirectly
#89
Comments
Hi @gustavopch, Thank you for reaching out! Here's an example of file
Note that you need to use Thanks again for your question! |
Hi @curusarn, thanks for the information. I think it's missing from the docs. I tried what you suggested, but it didn't point to the line/function that I was expecting. I ended up passing the source location manually to |
Hi @gustavopch, thanks for opening the issue 🙌 It's tru that there were some issues in how StackContextHint was handled at the moment. I've fixed them in #93 and added a usage example to our example project. I'm planning on mentioning it in the docs as well. I hope it would work for you after the changes, works nicely in example project. 🙏 The reason we're not using However, if |
Hi @PetrHeinz, got it, thanks for the explanation.
FWIW, source map supported (as asked in #63) would help on this specific part. |
Suppose I have a file named
utils/logging.ts
containing:If I import and call
log('Hello')
from a file namedfoo.js
, thecontext.runtime.file
is set toutils/logging.js
. I wanted it to befoo.js
instead.The text was updated successfully, but these errors were encountered: