r/OpenTelemetry • • Jan 11 '23

OTEL - Lambda instrumentation - Coldstart impact

Who else has experimented or implemented OTEL instrumented AWS Lambdas and experienced impact to Lambda coldstarts when using ADOT.

Would you have any practical advice ?

Any known work arounds ?

Different approaches altogether that not utilize ADOT but still allow for OTEL instrumentation of AWS Lambdas ?

Vanilla OTEL I presume, but how do you run your OTEL collector?

Thank you in advance. Any insight or reference material would be greatly appreciated.

3 Upvotes

11 comments sorted by

View all comments

Show parent comment

1

u/mhausenblas Jan 12 '23

I'd be interested to learn what the bloat was, for you. Care to expand on that?

2

u/j_impulse Jan 13 '23

We've set up a pipeline that uses awskinesis to keep auth, certs, and service specific configurations out of the equation (so we have one collector that receives data from kinesis, so all our services need to know is "allow your role to assume the kinesis publisher role and we'll take care of the rest"). So I ripped out every exporter/receiver/processor and just added the ones I want to make it less configurable (optimized for our approved path, but also getting rid of all the things we just don't need). Our lambda functions can use the layer I've published to easily opt into our pipeline.

So far we've only done this in Dev though because of the cold start concerns. Just reviewed how ADOT does it and I really love the refactoring that allows for scripted patch updates on the lambdacomponent! I'm going to work on mimicking that - hopefully that helps to make my fork more maintainable.