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)
- 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 5
- [nodejs lambda layer] no metrics is exported to cloudwatch logs HOT 4
- Decouple processor needs to be added HOT 9
- Does not work with custom metrics HOT 4
- Request to include the awskinesisexporter HOT 3
- awsemf exporter won't create any log group, nor generating any metrics HOT 4
- Public ARN of aws-otel-nodejs-amd64 v1.18.1 is too large HOT 2
- Support for ES6 imports and exports when using aws-otel-nodejs lambda layer HOT 3
- Which version of the collector image contains https://github.com/open-telemetry/opentelemetry-lambda/pull/310? HOT 2
- ADOT Collector Dropping Exports in Lambda Environment HOT 4
- Question - ADOT Lambda Layer Nodejs - SQS AWSTraceHeader is not propogated to Lambda HOT 2
- mongodb spans not generated HOT 2
- Spans are broken if not using X-RAY HOT 2
- ADOT Lambda Layer local testing HOT 1
- Unable to get tracecontext or trace-id using SDK API | NodeJs
- NodeJS Lambda Layer: X-Ray propagation not working
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.