-
Notifications
You must be signed in to change notification settings - Fork 182
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
Unable to get logs shipped from lambda to Loki #1600
Comments
@gkaskonas Are you looking for auto capturing console logs statements by Node layer and export them to the target vendor over OTEL collector? If so, unfortunately, OTEL Node SDK doesn't capture console log statements automatically |
That would be ideal but I can't get pino to work either. Logs just get lost. It works when running the app locally. However, this might be due to esbuild |
Ok, I think it is because of missing pino instrumentation as it is not listed in the default instrumentation list. cc @tylerbenson |
Related to #1611 |
Can we add Pino to this layer or do I need to create a custom one? |
Describe the bug
I am unable to get logs to ship using opentelemetry. I tried pino http transport but with no avail.
Is there a way to configure opentelemetry to scrape stdout or lambda telemetry API?
Steps to reproduce
Configure a lambda with the instrumentation and collector layer. Log something in the lambda
What did you expect to see?
Logs in Loki.
What did you see instead?
Nothing. No errors either.
What version of collector/language SDK version did you use?
Instrumentation layer 0.11
Collector 0.12
What language layer did you use?
NodeJS
Additional context
Collector config:
I am getting lambda telemetry metadata in loki. Like faas.name and faas.max_memory hwever, the log line itself is empty. Is my collector config OK?
What am I doing wrong with application logs?
The text was updated successfully, but these errors were encountered: