Comments (2)
Update: After reading aws-otel-collector/issues/1757, I realized that:
- This error was coming from the auto-instrumentation SDK
- However, within the SDK, it was not coming from the OTLP trace exporter, but rather from the OTLP metrics exporter (link)
Specifically, it looks like the auto-instrumentation SDK was exporting both traces and metrics but, since my collector only had a traces pipeline defined, the SDK metrics exporter was throwing a 404 error.
Once I added a metrics pipeline to my collector (in addition to the existing traces pipeline), the error went away.
So, for this collector config:
receivers:
otlp:
protocols:
grpc:
endpoint: 'localhost:4317'
http:
endpoint: 'localhost:4318'
exporters:
logging:
service:
pipelines:
metrics:
receivers: [otlp]
exporters: [logging]
traces:
receivers: [otlp]
exporters: [logging]
I get this lambda output:
...
START RequestId: 4b90dbd1-5f7f-4300-b89b-c54e36cf3637 Version: $LATEST
{
"level": "info",
"ts": 1687275266.5785906,
"msg": "TracesExporter",
"kind": "exporter",
"data_type": "traces",
"name": "logging",
"#spans": 1
}
END RequestId: 4b90dbd1-5f7f-4300-b89b-c54e36cf3637
...
So, at this point, I've gotten rid of the error messages, but I'm still facing an issue: The collector's logging
exporter only prints trace info when debug logging is enabled, and never prints metric info (regardless of whether debug logging is enabled or not). For simplicity though, I think I'll go ahead and close this issue, and move the remaining problem to a new issue.
from aws-otel-lambda.
So, at this point, I've gotten rid of the error messages, but I'm still facing an issue: The collector's logging exporter only prints trace info when debug logging is enabled, and never prints metric info (regardless of whether debug logging is enabled or not). For simplicity though, I think I'll go ahead and close this issue, and move the remaining problem to a new issue.
Update: Opened new issue #616 to deal with the remaining, real problem.
from aws-otel-lambda.
Related Issues (20)
- Documentation for included Processors is incorrect HOT 1
- Logging exporter does not log metrics or traces HOT 4
- node.js lambda -> aws-otel-lambda -> ADOT collector doesn't work HOT 10
- First set of counter value ignored after lambda cold boot
- Auto-instrumentation Agent only in Lambda HOT 5
- nodejs spans not exported when upgrading aws otel lambda layer to 1.15.0 HOT 7
- How to configure NodeJs auto-instrumentation to use tracecontext instead of xray? HOT 4
- Error invoking Lambda function after adding latest layer (1-28-1) for java HOT 5
- Steps to build and download a private Python lambda layer as a local .zip or .tar file? HOT 1
- Trace is broken in Lambda Java17 Runtime HOT 2
- Traces are not flushed to the server before the lambda terminates HOT 6
- Unable to access Lambda layer for Python with x86_64 architecture HOT 5
- docs: document of supported python version is old HOT 1
- 53612: bind: address already in use HOT 3
- [nodejs lambda layer] no metrics is exported to cloudwatch logs HOT 2
- Decouple processor needs to be added HOT 7
- Does not work with custom metrics HOT 2
- Request to include the awskinesisexporter HOT 2
- awsemf exporter won't create any log group, nor generating any metrics HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-otel-lambda.