Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add code sample for AWS Lambda with additional instrumentation #1675

Open
davidkeaveny opened this issue Jan 22, 2025 · 0 comments
Open

Add code sample for AWS Lambda with additional instrumentation #1675

davidkeaveny opened this issue Jan 22, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@davidkeaveny
Copy link

The samples folder gives a basic example of adding OpenTelemetry to AWS Lambda functions in .NET, which works fine for existing third-party libraries. However, it does not illustrate how to add your own instrumentation to the collected data.

The examples folder for the AspNetCore does illustrate how to add custom instrumentation, but the configuration process is relatively different to that required by the AWS Lambda (registering services on the IServiceCollection rather than calling Sdk.CreateTracerProviderBuilder(), for example).

Has anyone been able to get custom instrumentation up and running with AWS Lambda, and if so, would they be able to provide sample code?

@davidkeaveny davidkeaveny added the enhancement New feature or request label Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant