---
title: "AwsLambda"
description: "Adds instrumentation for AWS Lambda. (default)"
url: https://docs.sentry.io/platforms/javascript/guides/aws-lambda/configuration/integrations/awslambda/
---

# AwsLambda | Sentry for AWS Lambda

*Import name: `Sentry.awsLambdaIntegration`*

This integration is enabled by default. If you'd like to modify your default integrations, read [this](https://docs.sentry.io/platforms/javascript/guides/aws-lambda/configuration/integrations.md#modifying-default-integrations).

Adds instrumentation for AWS Lambda to automatically create spans. Powered by [`@opentelemetry/instrumentation-aws-lambda`](https://www.npmjs.com/package/@opentelemetry/instrumentation-aws-lambda).

```JavaScript
import * as Sentry from '@sentry/aws-serverless';

Sentry.init({
  integrations: [Sentry.awsLambdaIntegration()],
});
```
