Comments (8)
Hi @NathanielRN, there are examples expanded in the pdf, does that have the info you need?
from aws-otel-lambda.
I should've mentioned I have enabled debug logging in collector.yaml.
Attached is the effect when the otel span created via the layer tracer is of the non-recording vs recording type.
As you can see, logging from the layer is missing when the otel span created via the layer tracer is of the non-recording type.
Extra logging appears in CloudWatch when the otel span created via the layer tracer is of the recording type.
I guess this isn't a surprise, but I should've mentioned it!
from aws-otel-lambda.
Hi thanks for your issue! In the follow up to this issue here open-telemetry/opentelemetry-lambda#201, the poster said these are the same issues. I thought it best to consolidate the issues and move the discussion to that one if that's okay with you?
Thanks for your through deep dive! The PDF is excellent for understanding your issue. I will be referencing them in that issue above.
from aws-otel-lambda.
Hi @NathanielRN - yes we're part of the same team, and I'm the one who raised the same issue with aws support that I believe you're also aware of, so it's fine to consolidate them.
from aws-otel-lambda.
@simonmarshall In the last 2 pictures you posted, could you expand the logs for the isRecording=
lines? I was hoping to see what the spanContext
was when those logs were sent.
from aws-otel-lambda.
@NathanielRN One thing I noticed today (based off what you said in my github issue) is that sometimes the amazon x-ray trace header is coming through with sampled 0. An example of this is in @simonmarshall's screenshot above the first image. Where sampled=0 is giving a isRecording=false span whereas sampled=1 is giving a isRecording=true. I haven't been able to check through all the instances that we've seen but I can definitely say I've seen the same thing multiple times.
I'm not entirely sure what sets this sampled field on the aws trace header as all of the events are coming from the same source. Would this have an impact?
from aws-otel-lambda.
Sorry for the delay in response @Ancient-Dragon, but in short yes, I believe this ;Sampled=0
would have a large effect as I mentioned in the other issue open-telemetry/opentelemetry-lambda#201. Posted my findings and suggested solution there.
Thanks @simonmarshall I found the information I was looking for!
from aws-otel-lambda.
Closing because we solved it in open-telemetry/opentelemetry-lambda#201.
Lambda has a default sampling rate of 5% which cannot be changed.
Instead, we can change the OTel Sampler to ALWAYS sample so we get traces.
from aws-otel-lambda.
Related Issues (20)
- [AWS Lambda Java]Unable to see the traces and logs HOT 3
- Support Java 17 runtime for Lambda Layers HOT 2
- Support for Python 3.10 HOT 2
- Allow the source of the parent context to be configurable. HOT 4
- Documentation for S3 Confmap Provider is incorrect HOT 4
- Documentation for included Processors is incorrect HOT 1
- Error exporting traces from Python lambda HOT 2
- 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
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.