open-telemetry / opentelemetry-lambda

Create your own Lambda Layer in each OTel language using this starter code. Add the Lambda Layer to your Lamdba Function to get tracing with OpenTelemetry.
https://opentelemetry.io
Apache License 2.0
282 stars 170 forks source link

Auto-instrumentation layer for .NET #1422

Open harveyrendell opened 3 months ago

harveyrendell commented 3 months ago

We have a number of dotnet lambda functions which we would like to instrument via OpenTelemetry.

Auto-instrumentation for dotnet is now available, but there is no dotnet layer that supports auto-instrumentation. Is this functionality planned to be added at some point in the future?

This was raised previously here: https://github.com/open-telemetry/opentelemetry-lambda/issues/571

Thanks

tylerbenson commented 3 months ago

We don't have anyone with .NET experience participating in the SIG right now. If you'd like to contribute, we'd love your participation.

harveyrendell commented 3 months ago

I'll take a look at what's involved and see if I can get this added 👍

tylerbenson commented 3 months ago

See also: #532

harveyrendell commented 3 months ago

Looking for some guidance on an approach here. At the moment there isn't support for AWS SDK tracing inside opentelemetry-dotnet-instrumentation but the automatic instrumentation does work out of the box with lambda as a layer, but without a lot of useful telemetry.

Some pre-requisites I see are:

tylerbenson commented 3 months ago

Have you talked to the folks in the .NET SIG? If they're onboard, we can try to go over the Java instrumentation in the Lambda SIG and pick out some technical requirements for what you might need in .NET.